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&...]