2 Replies Latest reply on Jul 9, 2010 6:57 PM by edwardjs

    CF Builder null pointer exceptions

    edwardjs

      Hello !

       

      I have been using the final release version of CF Builder for Windows and have been getting these random null pointer exception errors during the course of an editing session.  It's always the same type of error each time (probelms occurred when invoking code from plug-in org.eclipse.jface).  The screen shots below show the error and the stack dumps.  The circumstances under which I get these errors always seems to vary.  I have gotten them when editing a CFM page or CFC.  I have gotten them when I close a file, when I type something, or sometimes when I am not doing anything at all.  They don't always occur during every editing session but today I had this error three times during the same editing session that lasted under 1 hour.  I was editing a CFC that is about 250 lines long.

       

      What I have done so far is when I get these errors, I close the current file I am working on and reopen it again because if I don't, more NPE's get generated but I am getting tired of doing this.

       

      I am using CF Builder 1.0 with update 1 applied on MS Windows 7 home premium edition AMD Phenom II processor, 8 GB of RAM.  I am using the stand alone version of CFBuilder.  I have tried creating new workspaces but that doesn't seem to make any difference.

       

      Has anyone else by chance gotten these same types of errors ?  Any solutions ?  I'd like to know if anyone else has gotten this and if it is a bug.

       

      ScreenShot.png

       

      Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface".

       

      java.lang.NullPointerException

      at org.eclipse.swt.widgets.Control.menuShell(Control.java:1772)

      at org.eclipse.swt.widgets.Menu.<init>(Menu.java:102)

      at org.eclipse.jface.action.MenuManager.createContextMenu(MenuManager.java:176)

      at com.adobe.ide.coldfusion.appcodegeneration.runtime.OutlineViewMenuContributor.addContextM enu(OutlineViewMenuContributor.java:146)

      at com.adobe.ide.coldfusion.appcodegeneration.runtime.TreeFocusListner.selectionChanged(Tree FocusListner.java:65)

      at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)

      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

      at org.eclipse.core.runtime.Platform.run(Platform.java:888)

      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)

      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)

      at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)

      at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)

      at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1669)

      at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1124)

      at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:392)

      at com.adobe.ide.editor.cfml.EditorUpdaterThread$2.runInUIThread(EditorUpdaterThread.java:38 9)

      at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)

      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)

      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)

      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)

      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)

      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)

      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)

      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)

      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

      at com.adobe.ide.coldfusion.rcp.intro.Application.start(Unknown Source)

      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)

      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)

      at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

        

      Message: Unhandled event loop exception

       

      org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)

      at org.eclipse.swt.SWT.error(SWT.java:3884)

      at org.eclipse.swt.SWT.error(SWT.java:3799)

      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)

      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)

      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)

      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)

      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)

      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)

      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)

      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)

      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

      at com.adobe.ide.coldfusion.rcp.intro.Application.start(Unknown Source)

      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)

      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)

      at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

      Caused by: java.lang.NullPointerException

      at com.aptana.ide.editor.html.parsing.HTMLUtils.isStartTag(HTMLUtils.java:683)

      at com.aptana.ide.editor.html.parsing.HTMLUtils.isStartTagBalanced(HTMLUtils.java:355)

      at com.aptana.ide.editor.html.contentassist.HTMLContentAssistProcessor.getTagCompletionPropo sals(HTMLContentAssistProcessor.java:1013)

      at com.aptana.ide.editor.html.contentassist.HTMLContentAssistProcessor.computeInnerCompletio nProposals(HTMLContentAssistProcessor.java:231)

      at com.aptana.ide.editors.unified.contentassist.UnifiedContentAssistProcessor.computeComplet ionProposals(UnifiedContentAssistProcessor.java:425)

      at com.adobe.ide.editor.cfml.codeassist.CFMLCompletionProcessor.computeCompletionProposals(C FMLCompletionProcessor.java:712)

      at com.aptana.ide.editors.unified.MergingContentProcessor.computeCompletionProposals(Merging ContentProcessor.java:58)

      at com.adobe.ide.editors.codeassist.ContentAssistant.computeCompletionProposals(ContentAssis tant.java:2124)

      at com.adobe.ide.editors.codeassist.CompletionProposalPopup.computeProposals(CompletionPropo salPopup.java:354)

      at com.adobe.ide.editors.codeassist.CompletionProposalPopup.access$7(CompletionProposalPopup .java:348)

      at com.adobe.ide.editors.codeassist.CompletionProposalPopup$1.run(CompletionProposalPopup.ja va:301)

      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

      at com.adobe.ide.editors.codeassist.CompletionProposalPopup.showProposals(CompletionProposal Popup.java:294)

      at com.adobe.ide.editors.codeassist.ContentAssistant$AutoAssistListener$1.run(ContentAssista nt.java:483)

      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

      ... 22 more

       

      Thank you.

       

      Ed