[jboss-user] [jBPM] - Weird problem with new JBPM 5.2 release

Marco Piraccini do-not-reply at jboss.com
Tue Dec 13 13:58:28 EST 2011


Marco Piraccini [http://community.jboss.org/people/mpiraccini] created the discussion

"Weird problem with new JBPM 5.2 release"

To view the discussion, visit: http://community.jboss.org/message/641348#641348

--------------------------------------------------------------
Hi, 
I have a very strange issue with the new JBPM 5.2 (with JPA persistence activated). In processes that end in the same call used to start the process  (for instance a process with only script task). In these case, indeed, I have this NPE:

java.lang.NullPointerException
    at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:172)
    at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138)
    at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1079)
    at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:306)
    at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:119)
    at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:38)
    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.startProcess(CommandBasedStatefulKnowledgeSession.java:223)

Debugging the JBPM code, it seems that in org.jbpm.process.instance.ProcessRuntimeImpl, when the process is started (and -subsequentially- ended), the Session reference goes to null (and then the NPE is thrown).
The very same process definitions work well with JBPM 5.1
It's a regression?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/641348#641348]

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/20111213/8c2d10aa/attachment.html 


More information about the jboss-user mailing list