[jboss-user] [jBPM] - Re: MapBasedPersistenceTest issue
Donald Walters
do-not-reply at jboss.com
Tue Oct 25 21:08:29 EDT 2011
Donald Walters [http://community.jboss.org/people/dondragon2] created the discussion
"Re: MapBasedPersistenceTest issue"
To view the discussion, visit: http://community.jboss.org/message/633584#633584
--------------------------------------------------------------
I found the issue. I was using the drools MapPersistenceContext instead of the sample from
https://github.com/krisv/jbpm/blob/master/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/map/impl/MapBasedPersistenceTest.java https://github.com/krisv/jbpm/blob/master/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/map/impl/MapBasedPersistenceTest.java
But now I am getting the following error below sometimes. What could have caused this?
java.lang.NullPointerException
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:251)
at org.jbpm.marshalling.impl.AbstractProcessInstanceMarshaller.readProcessInstance(AbstractProcessInstanceMarshaller.java:382)
at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:133)
at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.getProcessInstance(JPAProcessInstanceManager.java:64)
at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstance(ProcessRuntimeImpl.java:190)
at org.drools.common.AbstractWorkingMemory.getProcessInstance(AbstractWorkingMemory.java:1113)
at org.drools.impl.StatefulKnowledgeSessionImpl.getProcessInstance(StatefulKnowledgeSessionImpl.java:283)
at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:24)
at org.jbpm.process.instance.ProcessRuntimeImpl.signalEvent(ProcessRuntimeImpl.java:355)
at org.drools.impl.StatefulKnowledgeSessionImpl.signalEvent(StatefulKnowledgeSessionImpl.java:321)
at org.drools.command.runtime.process.SignalEventCommand.execute(SignalEventCommand.java:91)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:292)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.signalEvent(CommandBasedStatefulKnowledgeSession.java:200)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/633584#633584]
Start a new discussion in jBPM at Community
[http://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/20111025/26d5c9c5/attachment.html
More information about the jboss-user
mailing list