[jboss-user] [JBoss jBPM] - Did any one use springmodules to integrate jbpm with spring?
bluesnails
do-not-reply at jboss.com
Wed Nov 7 02:59:42 EST 2007
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
More information about the jboss-user
mailing list