[
http://jira.jboss.com/jira/browse/JBESB-1236?page=comments#action_12386804 ]
Tom Baeyens commented on JBESB-1236:
------------------------------------
"
The cause of the error is an attempt by the ESB integration code to deserialise and access
jBPM variables without creating a jBPM context.
"
that explains it. if you fetch a part of the graph (e.g. the process execution with
variable instances), then close the connection (cause you say you deserialize the variable
outside of the jbpm context), and then get the variable, hibernate can't do lazy
loading any more
probably this has to do with the way the esb integration uses transactions.
What is needed is a command that fetches the variables *inside* the transaction. Now, I
assume there is a command that gets the process execution. Then when the process execution
is at the client, it is navigated. That is not good. You need to find/create a command
that returns a hashmap containing the actual values of the variables.
regards, tom.
bpm_orchestration4 - LazyInitializationException
------------------------------------------------
Key: JBESB-1236
URL:
http://jira.jboss.com/jira/browse/JBESB-1236
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Examples
Affects Versions: 4.2.1
Reporter: Jaroslaw Kijanowski
Assigned To: Kurt Stam
Fix For: 4.2.1 CP1
I clicked on "Save & close" in the jbpm console and after the Discount
Services finished I got:
12:45:51,012 INFO [STDOUT] ************ END ORDER DISCOUNT FIXER ************
12:45:51,148 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.node.TaskNode -
this operation breaks ==
12:45:51,332 ERROR [LazyInitializationException] could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira