8 Replies Latest reply on Mar 22, 2006 6:45 AM by elvishou

    Help running HelloTest...

    tvaughan77

      Hi,

      I know this is noob question, but I'm out of ideas...

      When I follow all the steps in the "Guided Tour of JBoss JBPM GPD" (http://docs.jboss.com/jbpm/v3/gpd/completing.html) and I go to add an action to the "to auction" transition, I get an error when confirming the class to use as an action handler (look at figures 4.6 and 4.7 to see where I get stuck).

      My Eclipse 3.1.1 barfs with this error message:
      !ENTRY org.eclipse.jface 4 0 2006-02-21 10:07:49.575
      !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:862)
      at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
      at org.eclipse.core.runtime.Platform.run(Platform.java:783)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
      at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:842)
      at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:296)
      at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:227)
      at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
      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:843)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
      at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
      at org.eclipse.jface.window.Window.open(Window.java:787)
      at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:157)
      at org.jbpm.ui.action.PropertyDialogActionDelegate.run(Unknown Source)
      at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
      at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
      at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
      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:334)
      at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
      at org.eclipse.core.launcher.Main.run(Main.java:973)
      at org.eclipse.core.launcher.Main.main(Main.java:948)


      Any ideas??

      Thanks!
      Tom

        • 1. Re: Help running HelloTest...
          boerse

          Try creating a new workspace and import the other proyect.

          • 2. Re: Help running HelloTest...
            tvaughan77

            Hmmm...no dice. I created a new workspace and imported the old project into the workspace and get the very same error.

            Next?

            • 3. Re: Help running HelloTest...
              kiamfei

              Hi Tom,
              are you using Windows ? and what is the version ? Just wonder !
              I am using N2K 5.00.2195 SP4.
              rgds,
              KiamFei

              • 4. Re: Help running HelloTest...
                kiamfei

                Hi,
                Created a new workspace, and import the hello.par into its src/process folder, giving the same error, did not work for me as well.
                rgds,
                KiamFei

                • 5. Re: Help running HelloTest...
                  kiamfei

                  Hi Tom,
                  It works for me now, just modify the source, it should work, neglect the gui.
                  rgds,
                  KiamFei

                  • 6. Re: Help running HelloTest...
                    koen.aers

                    Tom and KiamFei,

                    This is actually a bug we oversaw at the release. It is already corrected in CVS. It is also rather harmless. Modifying the values in the sourcepane is indeed the recommended workaround.

                    Regards,
                    Koen

                    • 7. Re: Help running HelloTest...
                      criess

                      If you want to get the jBPM GUI Eclipse plugin to work properly you can:

                      - Check out the jbpm.ide module from CVS
                      - Rebuild the org.jbpm.ui package (you are going to new Eclipse WST support to do this)
                      - Take the class files from org.jbpm.ui and create a ui.jar file
                      - Drop the new ui.jar file into your eclipse plugin directory: C:\eclipse-eclipse-3.1\plugins\org.jbpm.ui_3.0.8

                      Of course it would be nicer if the JBoss team just released a new version of the plugin.

                      • 8. Re: Help running HelloTest...
                        elvishou

                         

                        "criess" wrote:
                        If you want to get the jBPM GUI Eclipse plugin to work properly you can:

                        - Check out the jbpm.ide module from CVS
                        - Rebuild the org.jbpm.ui package (you are going to new Eclipse WST support to do this)
                        - Take the class files from org.jbpm.ui and create a ui.jar file
                        - Drop the new ui.jar file into your eclipse plugin directory: C:\eclipse-eclipse-3.1\plugins\org.jbpm.ui_3.0.8

                        Of course it would be nicer if the JBoss team just released a new version of the plugin.


                        Hi, criess:
                        After i did these steps as u mentioned, i still got the same error message. i don't know how shoud i do now. i am using windows xp sp2,
                        jdk1.5.0_05, Eclipse 3.1.1. Could u send me the well-done ui.jar by email (hou.kelin@gmail.com), thanks a lot.