4 Replies Latest reply on Jan 22, 2007 4:44 AM by nikusa

    NullPointerException when adding ActionHandlers with GPD?

    nikusa

      Hello,

      I'm using JBoss IDE 1.5.1 bundle and the GPD which comes pre-installed with it.

      I'm trying to add my own ActionHandlers to some actions I've created. I enter my ActionHandler implementation to the 'Class' field using the 'Browse' function, press OK and get an error dialog "An error has occurred. See error log for more details".

      The error log has a NullPointerException in it:

      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)
      etc...

      I get the exception regardless of the configuration type I'm using.

      I have to add the ActionHandler class manually to the process definition XML. Is this a known issue (tried to search this forum) or am I doing something wrong?


      regards,

      Saku

        • 1. Re: NullPointerException when adding ActionHandlers with GPD
          koen.aers

          Hi Saku,

          This is indeed a known issue AFAIR. Try and use a different GPD version from the one that comes with JBoss IDE 1.5.1. Or else enter the name manually using the XML source page.

          Regards,
          Koen

          • 2. Re: NullPointerException when adding ActionHandlers with GPD
            nikusa

             

            "koen.aers@jboss.com" wrote:
            This is indeed a known issue AFAIR. Try and use a different GPD version from the one that comes with JBoss IDE 1.5.1. Or else enter the name manually using the XML source page.

            Ok, thanks. I will try to live with the older version of GPD for now since I had some trouble deploying my process properly with a newer version.

            regards,

            Saku

            • 3. Re: NullPointerException when adding ActionHandlers with GPD
              koen.aers

              Strange. What deployment trouble did you have with the newer version and what version would that be?

              Regards,
              Koen

              • 4. Re: NullPointerException when adding ActionHandlers with GPD
                nikusa

                 

                "koen.aers@jboss.com" wrote:
                Strange. What deployment trouble did you have with the newer version and what version would that be?


                I wasn't able to deploy the process I created by following the instructions in the Wiki JbpmGettingStarted article. There were no errors or anything (after some initial problems were solved), but the new process just wasn't visible in the web user interface.

                Here is some discussion of the problem:

                http://www.jboss.com/index.html?module=bb&op=viewtopic&t=97651

                I was using Eclipse 3.2.1 and I think the GPD was from the starter's kit version 3.1.3, although the default deployment URL offered by GPD apparently suggested otherwise. I did a fresh re-install after that, so I cannot verify the version numbers anymore.

                regards,

                Saku