[jboss-user] [JBoss jBPM] - Re: when i end the TaskInstance, an LazyInitializationExcepti
foolpcman
do-not-reply at jboss.com
Wed Aug 1 21:28:31 EDT 2007
I mean that ,After create the TaskInstance
TaskInstance ti = pi.getTaskMgmtInstance().createStartTaskInstance();
Whether i save ti or close jbpmcontext ,the same exception always throwed.
| 09:27:24,765 [http8001-Processor25] ERROR DbPersistenceService : hibernate commit failed
| org.hibernate.SessionException: Session is closed
| at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:116)
| at org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:139)
| at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:115)
| at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:253)
| at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:211)
| at org.jbpm.svc.Services.close(Services.java:222)
| at org.jbpm.JbpmContext.close(JbpmContext.java:139)
| at buesiness.BusinessEngine.SaveGo(BusinessEngine.java:113)
| at buesiness.BusinessEngine.exectue(BusinessEngine.java:62)
| at org.apache.jsp.order_005fexec_jsp._jspService(order_005fexec_jsp.java:99)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
| at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
| at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:670)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:517)
| at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069858#4069858
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069858
More information about the jboss-user
mailing list