[jboss-user] [jBPM] - Null cmdScopedEntityManager during stateful session load

Bira Neto do-not-reply at jboss.com
Thu Jun 28 15:22:52 EDT 2012


Bira Neto [https://community.jboss.org/people/biraneto] created the discussion

"Null cmdScopedEntityManager during stateful session load"

To view the discussion, visit: https://community.jboss.org/message/744900#744900

--------------------------------------------------------------
I am getting a nullpointerexception during ksession load due to a null cmdScopedEntityManager (from JpaPersistenceContextManager).

First I created a conditional event and executed a instance of this workflow (which results in an active workflow waiting for a condition) 
After restarting my server, the session load will fire (or try to fire) an ActivationCreatedEventImpl for my pending rule (named after my process.... RuleFlowStateNode-conditionalTest_2_0-7)

The problem though.... is that when calling getProcessInstancesWaitingForEvent it will try to call a getProcessPersistenceContext() implementation which tries to return a new JpaProcessPersistenceContext( cmdScopedEntityManager );
This cmdScopedEntityManager was not initialized yet though. It seems to be lazy initialized during beginCommandScopedEntityManager (from JpaPersistenceContextManager).

Is that a bug or is there some way or something else I need to add to my environment to use this properly?
--------------------------------------------------------------

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

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/20120628/0a984618/attachment.html 


More information about the jboss-user mailing list