[jboss-user] [jBPM] - failed to lazily initialize a collection of role: org.jbpm.pvm.internal.model.ExecutionImpl.variables, no session or session was closed

Michael Wohlfart do-not-reply at jboss.com
Fri Jul 9 08:17:26 EDT 2010


Michael Wohlfart [http://community.jboss.org/people/mwohlf] replied to the discussion

"failed to lazily initialize a collection of role: org.jbpm.pvm.internal.model.ExecutionImpl.variables, no session or session was closed"

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

--------------------------------------------------------------
Hi Felix,

you might need this in  jbpm.cfg.xml:

also maybe your SpeaddWorkFlow.StartWorkFlow() method needs a @Transactional annotation?

and finally you can try to do whatever you do in line 245 of SpeaddWorkFlow.java within a command like described by HuiSheng in this  http://community.jboss.org/thread/153892?tstart=0 thread:
> processEngine.execute(*new* Command() {
>     *public* Object execute(Environment env) {
>         // do something.
>         *return* *null*;
>     }
> });
> 


--------------------------------------------------------------

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

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/20100709/211b55ff/attachment.html 


More information about the jboss-user mailing list