[jboss-user] [jBPM] - NullPointerException when try to getProcessInstance
liliana.iovanovici
do-not-reply at jboss.com
Mon May 14 11:09:25 EDT 2012
liliana.iovanovici [https://community.jboss.org/people/liliana.iovanovici] created the discussion
"NullPointerException when try to getProcessInstance"
To view the discussion, visit: https://community.jboss.org/message/735403#735403
--------------------------------------------------------------
Hello,
I am trying to start a process and after a while to send a signal to process.
I got the an exception:
java.lang.NullPointerException
at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:128)
at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.getProcessInstance(JPAProcessInstanceManager.java:82)
at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstance(ProcessRuntimeImpl.java:204)
at org.drools.common.AbstractWorkingMemory.getProcessInstance(AbstractWorkingMemory.java:1097)
at org.drools.impl.StatefulKnowledgeSessionImpl.getProcessInstance(StatefulKnowledgeSessionImpl.java:283)
at org.drools.command.runtime.process.SignalEventCommand.execute(SignalEventCommand.java:93)
at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:345)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.signalEvent(CommandBasedStatefulKnowledgeSession.java:210)
at com.aciworldwide.aps.adf.core.adapter.orchestration.jbpm5.JbpmApiHelperLocalImpl.signalProcess(JbpmApiHelperLocalImpl.java:86)
at com.aciworldwide.aps.adf.core.adapter.orchestration.jbpm5.OrchestrationAdapterJbpmImpl.completeTask(OrchestrationAdapterJbpmImpl.java:203)
at com.aciworldwide.aps.adf.core.service.orchestration.HumanTaskServiceImpl.completeTask(HumanTaskServiceImpl.java:103)
at com.aciworldwide.aps.adf.core.service.orchestration.OrchestrationServiceImpl.completeTask(OrchestrationServiceImpl.java:170)
at com.dev.test.biz.payment.PaymentServiceImpl.completeSubmitPaymentTask(PaymentServiceImpl.java:259)
at com.dev.test.biz.payment.PaymentServiceImpl.submitPaymentTask(PaymentServiceImpl.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy41.submitPaymentTask(Unknown Source)
at com.dev.test.web.impl.delegate.payment.PaymentServiceDelegateImpl.submitPayment(PaymentServiceDelegateImpl.java:215)
at com.dev.test.web.impl.controller.payment.PaymentActionControllerImpl.handleSubmitPayment(PaymentActionControllerImpl.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
I saw that when try to get process instances in ProcessInstanceInfo class, processInstanceByteArray is null.
This is happening only when I send the signal after a while, not immediatly.
Note: I am using openjpa for persistence.
Thanks for help,
Liliana
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/735403#735403]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120514/546cecec/attachment.html
More information about the jboss-user
mailing list