1 Reply Latest reply on Jan 30, 2006 5:43 PM by brianmb99

    Null pointer exception using process-state

    brianmb99

      Hello,

      I'm attempting to use process-states and subprocesses in my definitions, but I'm encountering a problem during execution.

      Here is the process-state spec from my process def document:

      <process-state name="SubProcessName">
       <sub-process name="SubProcessName"></sub-process>
       </process-state>

      The subprocess is specified elsewhere, is loaded in the jbpm database, and runs fine on its own. When the superprocess hits this node in its graph, however, I'm getting this exception:
      Caused by: java.lang.NullPointerException
       at org.jbpm.graph.def.Transition.fireSuperStateEnterEvents(Transition.java:103)
       at org.jbpm.graph.def.Transition.take(Transition.java:82)
       at org.jbpm.graph.def.Node.leave(Node.java:349)
       at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:167)
       at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke(<generated>)
       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
       at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:137)
       at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$430d7fc8.leave(<generated>)
       at org.jbpm.graph.exe.Token.signal(Token.java:127)
       at org.jbpm.graph.exe.Token.signal(Token.java:92)
       at org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke(<generated>)
       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
       at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:137)
       at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$1ed5f17c.signal(<generated>)
       at org.jbpm.webapp.bean.ProcessInstanceBean.signal(ProcessInstanceBean.java:271)
       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)

      I've been reading through the 3.0.2 source to try to find the cause of this, and am getting a little frustrated, so if anyone has ideas, I'd appreciate them.

      I'm using version 3.0.2 - the latest compiled release.

      Thanks!

      -Brian

        • 1. Re: Null pointer exception using process-state
          brianmb99

          Oh, I do have a transition in the process-state def, too, so it really looks like this:

          <process-state name="SubProcessName">
           <sub-process name="SubProcessName"></sub-process>
           <transition name="default" to="nextnode"></transition>
           </process-state>


          I don't know what I'm doing wrong!