3 Replies Latest reply on Mar 13, 2009 1:14 PM by kukeltje

    jBPM and Rules integration error

    buranylk

      I am currently debugging code I am not familiar with ...

      The error I am encoutering at runtime is:

      ERROR FieldInstantiator : couldn't parse set field 'objectNames' to value 'passwordStringconfirmPasswordPasswordObjectstatus'
      java.lang.NullPointerException
      at org.jbpm.instantiation.FieldInstantiator.setPropertyValue(FieldInstantiator.java:70)
      at org.jbpm.instantiation.FieldInstantiator.instantiate(FieldInstantiator.java:61)
      at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:163)
      at org.jbpm.graph.node.Decision.execute(Decision.java:87)
      at org.jbpm.graph.def.Node.enter(Node.java:318)
      at org.jbpm.graph.def.Transition.take(Transition.java:151)
      at org.jbpm.graph.def.Node.leave(Node.java:393)
      at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
      at org.jbpm.graph.def.Node.leave(Node.java:357)
      at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:190)
      at org.jbpm.graph.def.Node.enter(Node.java:318)
      at org.jbpm.graph.def.Transition.take(Transition.java:151)
      at org.jbpm.graph.def.Node.leave(Node.java:393)
      at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
      at org.jbpm.graph.exe.Token.signal(Token.java:192)
      at org.jbpm.graph.exe.Token.signal(Token.java:140)
      at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:270)
      at com.test.jbpm.process.ConfirmNewPasswordProcess.execute(ConfirmNewPasswordProcess.java:55)
      at com.test.JBPMController.execute(JBPMController.java:35)
      at com.test.JBPMController.main(JBPMController.java:114)

      The processdefinition.xml file block pertaining to the above code is:
      decision name="Confirm New Password Decision"
      controller
      variable access="read,write,required"
      name="passwordString">
      variable access="read,write,required"
      name="confirmPassword">
      variable access="read,write,required"
      name="PasswordObject">
      variable access="read,write,required" name="status">
      /controller>

      handler
      class="com.test.jbpm.process.ConfirmNewPasswordDecisionHandler">
      objectNames
      element>passwordString
      element>confirmPassword
      element>PasswordObject</element
      element>status
      /objectNames>
      ruleFile>../../Password Business Rules.drl
      /handler>

      transition to="Pause New Password" name="No">
      transition to="Exit Lost Password" name="Yes">

      /decision>

      The file was parsing the other day. I suspect it is a configuration issue? Any insight at all would be helpful. (Please ignore the missing tags.)

        • 1. Re: jBPM and Rules integration error
          kukeltje

           

          The file was parsing the other day


          What changed?

          • 2. Re: jBPM and Rules integration error
            zjsy1979

            23:28:19,531 ERROR [FieldInstantiator:73] couldn't parse set field 'id' to value
            '10213'
            java.lang.NullPointerException
            at org.jbpm.instantiation.FieldInstantiator.setPropertyValue(FieldInstan
            tiator.java:70)
            at org.jbpm.instantiation.FieldInstantiator.instantiate(FieldInstantiato
            r.java:61)
            at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:163)
            at org.jbpm.instantiation.Delegation$$FastClassByCGLIB$$6bae1598.invoke(
            )
            at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializ
            er.java:161)
            at org.jbpm.instantiation.Delegation$$EnhancerByCGLIB$$12c426e8.instanti
            ate()
            at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(Ta
            skMgmtInstance.java:266)
            at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInst
            ance.java:244)
            at org.jbpm.taskmgmt.exe.TaskMgmtInstance.getInitializedSwimlaneInstance
            (TaskMgmtInstance.java:227)
            at org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:191)
            at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtIns
            tance.java:197)
            at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:168)
            at org.jbpm.graph.def.Node.enter(Node.java:318)
            at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
            at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializ
            er.java:161)
            at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$fda3d2aa.enter()

            at org.jbpm.graph.def.Transition.take(Transition.java:151)
            at org.jbpm.graph.def.Node.leave(Node.java:393)
            at org.jbpm.graph.node.StartState.leave(StartState.java:70)
            at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
            at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializ
            er.java:161)
            at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$fda3d2aa.leave()

            at org.jbpm.graph.exe.Token.signal(Token.java:192)
            at org.jbpm.graph.exe.Token.signal(Token.java:140)
            at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:479)
            at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:393)
            at com.taihe.workflow.action.InitNextStepDealServlet.performTask(InitNex
            tStepDealServlet.java:63)
            at com.taihe.workflow.action.BaseServlet.doPost(BaseServlet.java:28)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:269)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:188)
            at com.taihe.base.util.filter.ChangeReqEncoding.doFilter(ChangeReqEncodi
            ng.java:33)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:215)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:188)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
            alve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
            alve.java:174)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
            ava:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
            ava:117)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
            ve.java:108)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
            a:174)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
            :874)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
            rocessConnection(Http11BaseProtocol.java:665)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
            int.java:528)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
            lowerWorkerThread.java:81)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
            ool.java:689)
            at java.lang.Thread.run(Thread.java:595)

            • 3. Re: jBPM and Rules integration error
              kukeltje

              cool... that's a stacktrace. You seldomly encounter one in the wild all by itself. They normally are accompanied by some text, relatex code where things go wrong and sometimes even a unittest. But always they show up in combination with a jBPM version, and other environmental.