when using spingmodules, i have got the object of JbpmTemplate, but ProcessInstance p =jbpmTemplate.findProcessInstance(1L); System.out.println("----"+p.getId());
it throws org.hibernate.LazyInitializationException, ----- ERROR [org.hibernate.LazyInitializationException] - <could not initialize proxy - the owning Session was closed> org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:60) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at org.jbpm.graph.exe.ProcessInstance$$EnhancerByCGLIB$$5d7ec21a.toString() ------------------ because in jbpmTemplate, it close the JbpmConxtex after the operation, and of course the session, but hibernate3 is lazy-initilization default :( how to solve this problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102418#4102418 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102418 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user