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

Marco Piraccini do-not-reply at jboss.com
Wed Dec 14 03:08:47 EST 2011

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

"Re: Weird problem with new JBPM 5.2 release"

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

I answer  to my own question. In my code, to avoid to dipose the session "manually", I manage the afterProcessCompleted event:

public void afterProcessCompleted(ProcessCompletedEvent event)
        // Dispose the session.
        // Commented with JBPM 5.2
        ((StatefulKnowledgeSession) event.getKnowledgeRuntime()).dispose();

That turns to null the session. 
With JBPM 5.2, after the process is completed, the InternalKnowledgeRuntime.endOperation is executed, soi a NPE is thrown.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111214/076c02aa/attachment.html 

More information about the jboss-user mailing list