[jboss-user] [JBoss jBPM] - Hibernate exception in: at org.jbpm.command.TaskInstanceEndC

exe do-not-reply at jboss.com
Wed Jan 21 10:21:29 EST 2009


I got an exception from the taskInstanceEnd command.
Is it a bug in the taskInstanceEnd command ? 

The stack trace: 

Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.jbpm.taskmgmt.def.Task.events, no session or session was closed
	at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
	at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
	at org.hibernate.collection.AbstractPersistentCollection.readElementByIndex(AbstractPersistentCollection.java:151)
	at org.hibernate.collection.PersistentMap.get(PersistentMap.java:146)
	at org.jbpm.graph.def.GraphElement.getEvent(GraphElement.java:88)
	at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:180)
	at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:169)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
	at org.jbpm.taskmgmt.def.Task$$EnhancerByCGLIB$$aa2f6f53.fireEvent()
	at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:452)
	at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:393)
	at org.jbpm.command.TaskInstanceEndCommand.execute(TaskInstanceEndCommand.java:70)


I got simmilar exception when i tried to get taskInstanceVariable (getTaskInstanceCommand without includeAllVariables=true). But there isn't includeAllVariables property in the TaskInstanceEndCommand object.



Thx,

Janos


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203677#4203677

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203677



More information about the jboss-user mailing list