AnsweredAssumed Answered

NPE when 'Open Declaration'

Question asked by hbpost on May 14, 2013
Latest reply on Oct 1, 2013 by kingsheldor
Hi,

I'm getting a NPE when I try to open a declaration on an Activiti class.  I believe I have the source correctly installed in my maven repo.  I'm using Indigo SP2, with Activiti 5.11.  The error is as follows:

!ENTRY org.eclipse.ui 4 4 2013-05-13 21:32:03.786
!MESSAGE "Open Declaration" did not complete normally.  Please see the log for more information.

!ENTRY org.eclipse.ui 4 0 2013-05-13 21:32:03.787
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
   at org.activiti.designer.eclipse.editor.ActivitiDiagramMatchingStrategy.matches(ActivitiDiagramMatchingStrategy.java:20)
   at org.eclipse.ui.internal.EditorManager.findEditors(EditorManager.java:510)
   at org.eclipse.ui.internal.EditorManager.findEditors(EditorManager.java:457)
   at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:420)
   at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2887)
   at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
   at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
   at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
   at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:368)
   at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:174)
   at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
   at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:174)
   at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:279)
   at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
   at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
   at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
   at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
   at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
   at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
   at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
   at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
   at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
   at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
   at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
   at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
   at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
   at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
   at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
   at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1809)
   at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
   at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
   at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
   at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
   at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
   at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2531)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
   at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
   at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
   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:344)
   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:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

Outcomes