0 Replies Latest reply on Jan 21, 2009 10:21 AM by exe

    Hibernate exception in: at org.jbpm.command.TaskInstanceEndC

    exe

      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