Copy link to clipboard
Copied
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.
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.addContextMenu(OutlineViewMenuContributor.java:146)
at com.adobe.ide.coldfusion.appcodegeneration.runtime.TreeFocusListner.selectionChanged(TreeFocusListner.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:389)
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(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: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(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: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.getTagCompletionProposals(HTMLContentAssistProcessor.java:1013)
at com.aptana.ide.editor.html.contentassist.HTMLContentAssistProcessor.computeInnerCompletionProposals(HTMLContentAssistProcessor.java:231)
at com.aptana.ide.editors.unified.contentassist.UnifiedContentAssistProcessor.computeCompletionProposals(UnifiedContentAssistProcessor.java:425)
at com.adobe.ide.editor.cfml.codeassist.CFMLCompletionProcessor.computeCompletionProposals(CFMLCompletionProcessor.java:712)
at com.aptana.ide.editors.unified.MergingContentProcessor.computeCompletionProposals(MergingContentProcessor.java:58)
at com.adobe.ide.editors.codeassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:2124)
at com.adobe.ide.editors.codeassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:354)
at com.adobe.ide.editors.codeassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:348)
at com.adobe.ide.editors.codeassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java:301)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at com.adobe.ide.editors.codeassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:294)
at com.adobe.ide.editors.codeassist.ContentAssistant$AutoAssistListener$1.run(ContentAssistant.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
Copy link to clipboard
Copied
I am getting the same annonying behavior.
Copy link to clipboard
Copied
Luis,
Since I first posted the issue on the forum, this problem appears to be related to the outline view. Specifically, if I close the outline view completely, the null pointer exception I was experiencing does not happen. You might want to try doing this. There is another outline option called 'Quick Outline' that is also available but I have not tried that long enough to see if this problem occurs when using that as well.
I hope this gets fixed.
Ed