[jboss-user] [JBoss jBPM] - Re: when i end the TaskInstance, an LazyInitializationExcepti

vtysh do-not-reply at jboss.com
Thu Aug 2 01:15:13 EDT 2007


Try to debug this piece of code starting with some simple action gradually adding all other lines to see which code is broke your application. But it looks very strange, that after any write operation you get jbpmContext autoclose. Maybe something is wrong in hibernate or jbpm configuration? Do you use standart one, or some specific? And do you use last jbpm 3.2.1?

About closing context after creating process instance, i meant this


  |             ProcessInstance pi = pd.createProcessInstance();
  |             TaskInstance ti = pi.getTaskMgmtInstance().createStartTaskInstance();
  |             long id=ti.getId();
  |             jbpmContext.save(pi);
  |             jbpmContext.close();
  |             jbpmContext=jbpmConfiguration.createJbpmContext();
  |             ti=jbpmContext.getTaskMgmtSession().loadTaskInstance(id);
  | 

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

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



More information about the jboss-user mailing list