6 Replies Latest reply on Aug 23, 2006 3:26 AM by Diana Veerman

    NullPointerException while trying to add ActionHandler

    Diana Veerman Newbie

      Hey,

      I am trying work with GPD 3.0.8 on Eclipse 3.2

      I've followed the steps of the "getting started" of GPD, till 4.2 "integrating Hello Action" because I click 'add action' and get a pop-up in which I can fill in the name and browse to the preferred action class but when I click oke I get the message to look in de log file because of an error:

      !ENTRY org.eclipse.jface 4 0 2006-08-22 11:16:15.312
      !MESSAGE java.lang.NullPointerException
      !STACK 0
      java.lang.NullPointerException
      at org.jbpm.ui.properties.ActionHandlerPropertyPage.performOk(Unknown Source)
      at org.eclipse.jface.preference.PreferenceDialog$11.run(PreferenceDialog.java:889)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      at org.eclipse.core.runtime.Platform.run(Platform.java:843)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
      at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:869)
      at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:377)
      at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:230)
      at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
      at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
      at org.eclipse.jface.window.Window.open(Window.java:796)
      at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:156)
      at org.jbpm.ui.part.tree.ElementTreeEditPart.openPropertyDialog(Unknown Source)
      at org.jbpm.ui.part.tree.ElementTreeEditPart.performRequest(Unknown Source)
      at org.jbpm.ui.outline.DesignerOutlineViewer.handleDoubleClick(Unknown Source)
      at org.jbpm.ui.outline.DesignerOutlineViewer.access$3(Unknown Source)
      at org.jbpm.ui.outline.DesignerOutlineViewer$4.mouseDoubleClick(Unknown Source)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:141)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
      at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
      at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
      at org.eclipse.core.launcher.Main.run(Main.java:977)
      at org.eclipse.core.launcher.Main.main(Main.java:952)

      Also tried it with the added MessageActionHandler class which was already in the GPD package but got the same error.

      Does anyone have a clue what might be the problem?

      thanks in advance!


      p.s. I found that with my configuration the JpdlXmlReader.parseProcessDefinition method used in the HelloTest.java in the tutorial does not exist, so I had to change code into:

      import org.xml.sax.InputSource;
      :
      :
      InputSource inputsource =
      new InputSource("src/java/hello.par/processdefinition.xml");

      JpdlXmlReader reader = new JpdlXmlReader(inputsource);
      ProcessDefinition definition = reader.readProcessDefinition();