cancel
Showing results for 
Search instead for 
Did you mean: 

Extending designer: random error Nullpointer

esseti
Champ in-the-making
Champ in-the-making
Hi all,
i'm trying to extend the editor with some task that i've to implment.
The problem is that sometimes it works, sometimes i have this error:


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


java.lang.NullPointerException
   at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3095)
   at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:3003)
   at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2985)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2981)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2940)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2931)
   at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
   at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
   at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
   at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
   at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
   at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
   at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
   at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
   at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
   at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
   at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
   at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
   at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
   at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
   at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
   at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
   at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
   at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
   at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
   at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
   at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4134)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
   at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3980)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3619)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   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:353)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
   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:629)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

this is the code i'm using: https://github.com/esseti/CroCo-Activiti-Task-UIs

PS: the editor wants to have access to the task implementation? beacuse i've to separated projects, so in the designer i just put the task classes.

ciao.
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
Moved to designer forum.

tiesebarrell
Champ in-the-making
Champ in-the-making
This looks like some conflict between JDT and Designer when using the "link with editor" button in the project explorer. Can you test for us whether turning off that option solves the problem? It would help track down the problem, if we can do anything about it.

esseti
Champ in-the-making
Champ in-the-making
hello.
actually i don't have the problem anymore. i think it may be related with the icon of a task that i made. Icon that was not 16x16. may that be the case?

tiesebarrell
Champ in-the-making
Champ in-the-making
Could be, but from that particular stacktrace it seems unlikely.