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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to