Evaluating a branch condition in a Diverging XOR Gateway causes 'target of method is null' exception

Solution Verified - Updated -

Issue

  • The following stack trace is thrown during the evaluation of a branch condition (MVEL expression for this scenario) on a Diverging XOR Gateway while exiting an Embedded Sub-Process. This is how the condition looks like. Here, _message is a process variable which is of the com.sample.test.fact.Message type.
(!(_message.status == "APPROVED"))
  • The thing to note here is that from within the Embedded Sub-Process there is a Signal Event which eventually signals to a Boundary Signal Event attached to the Embedded Sub-Process so that the process execution moves on, exiting the Embedded Sub-Process. The same process definition works fine while it is executed for a single instance, but when it is tested with multiple process instances, suddenly this issue comes up with the following exception and the process instances starts complaining this issue. How to troubleshoot and fix this kind of issue?
09:23:38,281 WARN  [org.drools.persistence.SingleSessionCommandService] Could not commit session: org.jbpm.workflow.instance.WorkflowRuntimeException: [SimpleEmbeddableProcess:650 - SubProcess Completion:35] -- cannot invoke method: getKnowledgeRuntime
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:188) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:48) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:155) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:337) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:296) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.JoinInstance.triggerCompleted(JoinInstance.java:259) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.JoinInstance.internalTrigger(JoinInstance.java:62) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:155) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:337) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:296) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:286) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:265) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:275) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:93) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:337) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:313) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:403) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:134) [drools-persistence-jpa-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:74) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:533) [drools-persistence-jpa-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:73) [drools-persistence-jpa-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:377) [drools-persistence-jpa-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:147) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.wih.ExternalTaskEventListener.processTaskState(ExternalTaskEventListener.java:75) [jbpm-human-task-workitems-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.wih.ExternalTaskEventListener.afterTaskCompletedEvent(ExternalTaskEventListener.java:119) [jbpm-human-task-workitems-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.events.TaskEventSupport.fireAfterTaskCompleted(TaskEventSupport.java:189) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.taskOperation(MVELLifeCycleManager.java:340) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.identity.UserGroupLifeCycleManagerDecorator.taskOperation(UserGroupLifeCycleManagerDecorator.java:46) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.impl.TaskInstanceServiceImpl.complete(TaskInstanceServiceImpl.java:142) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:70) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:37) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.commands.CompositeCommand.execute(CompositeCommand.java:38) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:54) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.services.task.impl.command.CommandBasedTaskService.execute(CommandBasedTaskService.java:128) [jbpm-human-task-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.kie.remote.services.cdi.ProcessRequestBean.doTaskOperation(ProcessRequestBean.java:249) [kie-services-remote-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.kie.remote.services.cdi.ProcessRequestBean.processCommand(ProcessRequestBean.java:121) [kie-services-remote-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.kie.remote.services.cdi.ProcessRequestBean$Proxy$_$$_WeldClientProxy.processCommand(ProcessRequestBean$Proxy$_$$_WeldClientProxy.java) [kie-services-remote-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.kie.remote.services.rest.ResourceBase.restProcessJaxbCommandsRequest(ResourceBase.java:69) [kie-services-remote-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.kie.remote.services.rest.RuntimeResource.execute(RuntimeResource.java:95) [kie-services-remote-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.kie.remote.services.rest.RuntimeResource$Proxy$_$$_WeldClientProxy.execute(RuntimeResource$Proxy$_$$_WeldClientProxy.java) [kie-services-remote-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at sun.reflect.GeneratedMethodAccessor224.invoke(Unknown Source) [:1.7.0_60]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_60]
    at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_60]
    at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167) [resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
    at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) [resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) [resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) [resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
    at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542) [resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524) [resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126) [resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
    at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65) [solder-impl-3.2.1.Final.jar:3.2.1.Final]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74) [solder-impl-3.2.1.Final.jar:3.2.1.Final]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.kie.remote.services.rest.jaxb.DynamicJaxbContextFilter.doFilter(DynamicJaxbContextFilter.java:29) [kie-services-remote-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) [jbpm-designer-backend-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266) [uberfire-security-server-0.3.3-redhat-4.jar:0.3.3-redhat-4]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
    at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:408) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
Caused by: java.lang.RuntimeException: cannot invoke method: getKnowledgeRuntime
    at org.mvel2.optimizers.impl.refl.nodes.MethodAccessor.getValue(MethodAccessor.java:63) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.optimizers.impl.refl.nodes.VariableAccessor.getValue(VariableAccessor.java:37) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:108) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.MVELRuntime.execute(MVELRuntime.java:86) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.MVEL.executeExpression(MVEL.java:930) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.drools.core.util.MVELSafeHelper$RawMVELEvaluator.executeExpression(MVELSafeHelper.java:481) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.process.instance.impl.MVELAction.execute(MVELAction.java:109) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:182) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    ... 93 more
Caused by: java.lang.RuntimeException: cannot invoke method: signalEvent
    at org.mvel2.optimizers.impl.refl.nodes.MethodAccessor.getValue(MethodAccessor.java:63) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.optimizers.impl.refl.nodes.MethodAccessor.getValue(MethodAccessor.java:45) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    ... 102 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_60]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_60]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_60]
    at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_60]
    at org.mvel2.optimizers.impl.refl.nodes.MethodAccessor.getValue(MethodAccessor.java:48) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    ... 103 more
Caused by: org.drools.core.RuntimeDroolsException: Unexpected exception executing action org.jbpm.process.instance.event.DefaultSignalManager$SignalAction@492068f0
    at org.drools.core.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1241) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.core.impl.StatefulKnowledgeSessionImpl.executeQueuedActions(StatefulKnowledgeSessionImpl.java:892) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.process.instance.event.DefaultSignalManager.signalEvent(DefaultSignalManager.java:73) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:37) [jbpm-persistence-jpa-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.process.instance.ProcessRuntimeImpl.signalEvent(ProcessRuntimeImpl.java:448) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.core.impl.StatefulKnowledgeSessionImpl.signalEvent(StatefulKnowledgeSessionImpl.java:381) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    ... 108 more
Caused by: org.jbpm.workflow.instance.WorkflowRuntimeException: [SimpleEmbeddableProcess:656 - :8] -- Exception when trying to evaluate constraint reject in split 
    at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:67) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:155) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:337) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:296) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.EventNodeInstance.triggerCompleted(EventNodeInstance.java:73) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.EventNodeInstance.signalEvent(EventNodeInstance.java:54) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.BoundaryEventNodeInstance.signalEvent(BoundaryEventNodeInstance.java:45) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:417) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.process.instance.event.DefaultSignalManager.internalSignalEvent(DefaultSignalManager.java:81) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.process.instance.event.DefaultSignalManager$SignalAction.execute(DefaultSignalManager.java:181) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.drools.core.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1239) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    ... 113 more
Caused by: java.lang.RuntimeException: Exception when trying to evaluate constraint reject in split 
    at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:93) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    ... 124 more
Caused by: java.lang.RuntimeException: unable to execute ReturnValueEvaluator: 
    at org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator.evaluate(ReturnValueConstraintEvaluator.java:131) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:86) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    ... 125 more
Caused by: java.lang.RuntimeException: unable to invoke method: com.sample.test.fact.Message.getStatus: target of method is null
    at org.mvel2.optimizers.impl.refl.nodes.GetterAccessor.getValue(GetterAccessor.java:66) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.optimizers.impl.refl.nodes.VariableAccessor.getValue(VariableAccessor.java:37) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:108) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:114) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:38) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.ast.Substatement.getReducedValueAccelerated(Substatement.java:44) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.ast.Or.getReducedValueAccelerated(Or.java:34) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:38) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.ast.Substatement.getReducedValueAccelerated(Substatement.java:44) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:38) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.ast.Negation.getReducedValueAccelerated(Negation.java:48) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:38) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.ast.Substatement.getReducedValueAccelerated(Substatement.java:44) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.MVELRuntime.execute(MVELRuntime.java:86) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.mvel2.MVEL.executeExpression(MVEL.java:930) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    at org.drools.core.util.MVELSafeHelper$RawMVELEvaluator.executeExpression(MVELSafeHelper.java:481) [drools-core-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.process.instance.impl.MVELReturnValueEvaluator.evaluate(MVELReturnValueEvaluator.java:114) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    at org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator.evaluate(ReturnValueConstraintEvaluator.java:129) [jbpm-flow-6.0.3-redhat-4.jar:6.0.3-redhat-4]
    ... 126 more
Caused by: java.lang.NullPointerException
    at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source) [:1.7.0_60]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_60]
    at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_60]
    at org.mvel2.optimizers.impl.refl.nodes.GetterAccessor.getValue(GetterAccessor.java:43) [mvel2-2.1.9.Final-redhat-9.jar:2.1.9.Final-redhat-9]
    ... 145 more

Environment

  • Red Hat JBoss BPM Suite (BPMS)
    • 6.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In