2 Replies Latest reply on Sep 19, 2006 1:51 PM by Alejandro Guizar

    Jbpm + CMT + Hibernate : Session Is Closed..

    Jean Guyer Newbie


      Hi , i use Jbpm with CMT

      <property name="hibernate.connection.provider_class">org.hibernate.connection.DatasourceConnectionProvider</property>
      <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
      <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
      <property name="hibernate.session_factory_name">java:com/env/hibernate/SessionFactory</property>
      <property name="hibernate.transaction.flush_before_completion">true</property>
      <property name="hibernate.transaction.auto_close_session">true</property>


      I have an Action JSF which calls two method from a Stateless ejb facade.


      public String creer_testprocess1(){
       TestProcessFacade testProcessFacadeBean=testProcessFacadeFromJNDI();
      
       detailProcessEntity=null;
       entityBean.setUser1(this.user1);
       entityBean.setUser2(this.user2);
       entityBean=testProcessFacadeBean.testProcess1_create(entityBean);
       detailProcessEntity=testProcessFacadeBean.getTestProcess1_DetailProcess(entityBean);
       return "tr_to_WK_testProcess1_page2";
       }


      My stateless Ejb calls a Workflow layer over Jbpm.

      at the end of the first method i have this :

      System.out.println("testProcess1_create : Session Open : " + this.processMgr.getSessionFactory().getCurrentSession().isOpen());
      System.out.println("{RAF} testProcess1_create finished");
      return entityBean;


      And the beginning of the second , i have this :


      public DetailProcessEntity getTestProcess1_DetailProcess(TestProcess1Entity entityBean){
      if (entityBean==null)
      {
      return null;
      }
      System.out.println("getTestProcess1_DetailProcess : Session Open : " + this.processMgr.getSessionFactory().getCurrentSession().isOpen());


      the code of processMgr is like this :

      public SessionFactory getSessionFactory() {
       DbPersistenceService persServ=(DbPersistenceService)getJbpmContextInstance().getServices().getPersistenceService();
       return persServ.getSessionFactory();
      
       }




      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4745862726279168
      2006-09-19 11:24:52,158 INFO [STDOUT] testProcess1_create : Session Open : true
      2006-09-19 11:24:52,158 INFO [STDOUT] {RAF} testProcess1_create finished

      2006-09-19 11:24:52,158 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] processing flush-time cascades
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.SQL] select hibernate_sequence.nextval from dual
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.id.SequenceGenerator] Sequence identifier generated: 954
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 954, using strategy: org.hibernate.id.SequenceGenerator
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.SQL] select hibernate_sequence.nextval from dual
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.id.SequenceGenerator] Sequence identifier generated: 955
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 955, using strategy: org.hibernate.id.SequenceGenerator
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
      2006-09-19 11:24:52,158 DEBUG [org.hibernate.SQL] select hibernate_sequence.nextval from dual
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.id.SequenceGenerator] Sequence identifier generated: 956
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 956, using strategy: org.hibernate.id.SequenceGenerator
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.SQL] select hibernate_sequence.nextval from dual
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.id.SequenceGenerator] Sequence identifier generated: 957
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 957, using strategy: org.hibernate.id.SequenceGenerator
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] dirty checking collections
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.events#611], was: [org.jbpm.graph.def.ProcessDefinition.events#611] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.exceptionHandlers#611], was: [org.jbpm.graph.def.ProcessDefinition.exceptionHandlers#611] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.nodes#611], was: [org.jbpm.graph.def.ProcessDefinition.nodes#611] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.actions#611], was: [org.jbpm.graph.def.ProcessDefinition.actions#611] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.definitions#611], was: [org.jbpm.graph.def.ProcessDefinition.definitions#611] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.exe.ProcessInstance.instances#949], was: [<unreferenced>] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.file.def.FileDefinition.processFiles#621], was: [org.jbpm.file.def.FileDefinition.processFiles#621] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes#625], was: [org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes#625] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks#625], was: [org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks#625] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.TaskMgmtInstance.swimlaneInstances#951], was: [<unreferenced>] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.TaskMgmtInstance.taskInstances#951], was: [<unreferenced>] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.Swimlane.tasks#626], was: [org.jbpm.taskmgmt.def.Swimlane.tasks#626] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.Swimlane.tasks#627], was: [org.jbpm.taskmgmt.def.Swimlane.tasks#627] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.events#612], was: [org.jbpm.graph.def.Node.events#612] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.exceptionHandlers#612], was: [org.jbpm.graph.def.Node.exceptionHandlers#612] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.leavingTransitions#612], was: [org.jbpm.graph.def.Node.leavingTransitions#612] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.arrivingTransitions#612], was: [org.jbpm.graph.def.Node.arrivingTransitions#612] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Transition.events#613], was: [org.jbpm.graph.def.Transition.events#613] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Transition.exceptionHandlers#613], was: [org.jbpm.graph.def.Transition.exceptionHandlers#613] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.events#615], was: [org.jbpm.graph.def.Node.events#615] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.exceptionHandlers#615], was: [org.jbpm.graph.def.Node.exceptionHandlers#615] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.leavingTransitions#615], was: [org.jbpm.graph.def.Node.leavingTransitions#615] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.arrivingTransitions#615], was: [org.jbpm.graph.def.Node.arrivingTransitions#615] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.node.TaskNode.tasks#615], was: [org.jbpm.graph.node.TaskNode.tasks#615] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.Task.events#617], was: [org.jbpm.taskmgmt.def.Task.events#617] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.Task.exceptionHandlers#617], was: [org.jbpm.taskmgmt.def.Task.exceptionHandlers#617] (uninitialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.TaskInstance.pooledActors#953], was: [<unreferenced>] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.SwimlaneInstance.pooledActors#954], was: [<unreferenced>] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.SwimlaneInstance.pooledActors#956], was: [<unreferenced>] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.PooledActor.taskInstances#957], was: [<unreferenced>] (initialized)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 9 insertions, 3 updates, 0 deletions to 19 objects
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 7 (re)creations, 0 updates, 0 removals to 30 collections
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] listing entities:
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.def.Transition{to=org.jbpm.graph.def.Node#615, events=[], from=org.jbpm.graph.def.Node#612, exceptionHandlers=<uninitialized>, name=null, id=613, processDefinition=org.jbpm.graph.def.ProcessDefinition#611}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.def.Swimlane{assignmentDelegation=null, taskMgmtDefinition=org.jbpm.taskmgmt.def.TaskMgmtDefinition#625, actorIdExpression=null, pooledActorsExpression=null, tasks=<uninitialized>, name=Role2, id=626}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.PooledActor{actorId=plouf, swimlaneInstance=org.jbpm.taskmgmt.exe.SwimlaneInstance#956, taskInstances=[org.jbpm.taskmgmt.exe.TaskInstance#953], id=957}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.SwimlaneInstance{actorId=null, swimlane=org.jbpm.taskmgmt.def.Swimlane#626, taskMgmtInstance=org.jbpm.taskmgmt.exe.TaskMgmtInstance#951, name=Role2, pooledActors=[org.jbpm.taskmgmt.exe.PooledActor#955], id=954}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.context.exe.ContextInstance{processInstance=org.jbpm.graph.exe.ProcessInstance#949, id=952, tokenVariableMaps=null}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.node.StartState{events=[], leavingTransitions=[org.jbpm.graph.def.Transition#613], action=null, superState=null, exceptionHandlers=<uninitialized>, name=start, id=612, arrivingTransitions=<uninitialized>, isAsync=false, processDefinition=org.jbpm.graph.def.ProcessDefinition#611}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.def.ProcessDefinition{startState=org.jbpm.graph.def.Node#612, events=[], definitions=[org.jbpm.module.def.ModuleDefinition#621, org.jbpm.module.def.ModuleDefinition#624, org.jbpm.module.def.ModuleDefinition#625], actions=<uninitialized>, nodes=<uninitialized>, exceptionHandlers=<uninitialized>, isTerminationImplicit=false, name=WK_testProcess1, id=611, version=3}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.def.TaskMgmtDefinition{swimlanes=[org.jbpm.taskmgmt.def.Swimlane#626, org.jbpm.taskmgmt.def.Swimlane#627], startTask=null, tasks=<uninitialized>, name=org.jbpm.taskmgmt.def.TaskMgmtDefinition, id=625, processDefinition=org.jbpm.graph.def.ProcessDefinition#611}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.exe.Token{comments=null, processInstance=org.jbpm.graph.exe.ProcessInstance#949, subProcessInstance=null, start=2006-09-19 11:24:51, isSuspended=false, end=null, node=org.jbpm.graph.def.Node#0, id=950, version=0, nextLogIndex=5, name=null, isTerminationImplicit=false, children=null, isAbleToReactivateParent=true, parent=null, nodeEnter=2006-09-19 11:24:52}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.def.Task{swimlane=org.jbpm.taskmgmt.def.Swimlane#627, assignmentDelegation=null, startState=null, events=[], isBlocking=false, dueDate=null, taskMgmtDefinition=org.jbpm.taskmgmt.def.TaskMgmtDefinition#625, pooledActorsExpression=null, id=617, processDefinition=org.jbpm.graph.def.ProcessDefinition#611, taskNode=org.jbpm.graph.node.TaskNode#615, isSignalling=true, description=null, actorIdExpression=null, exceptionHandlers=<uninitialized>, taskController=null, name=assignRole1}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.file.def.FileDefinition{processFiles=<uninitialized>, name=org.jbpm.file.def.FileDefinition, id=621, processDefinition=org.jbpm.graph.def.ProcessDefinition#611}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.TaskInstance{comments=null, isBlocking=false, start=null, variableInstances=null, taskMgmtInstance=org.jbpm.taskmgmt.exe.TaskMgmtInstance#951, isSuspended=false, isOpen=true, end=null, swimlaneInstance=org.jbpm.taskmgmt.exe.SwimlaneInstance#956, dueDate=null, token=org.jbpm.graph.exe.Token#950, pooledActors=[org.jbpm.taskmgmt.exe.PooledActor#957], id=953, actorId=null, isSignalling=true, create=2006-09-19 11:24:52, description=null, isCancelled=false, task=org.jbpm.taskmgmt.def.Task#617, name=assignRole1, priority=3}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.node.TaskNode{signal=4, events=[], action=null, leavingTransitions=<uninitialized>, superState=null, tasks=[org.jbpm.taskmgmt.def.Task#617], id=615, createTasks=true, processDefinition=org.jbpm.graph.def.ProcessDefinition#611, isAsync=false, endTasks=false, exceptionHandlers=<uninitialized>, name=TaskUnoAssignToRole1, arrivingTransitions=<uninitialized>}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.exe.ProcessInstance{start=2006-09-19 11:24:51, instances=[org.jbpm.module.exe.ModuleInstance#951, org.jbpm.module.exe.ModuleInstance#952], runtimeActions=null, isSuspended=false, end=null, superProcessToken=null, rootToken=org.jbpm.graph.exe.Token#950, id=949, processDefinition=org.jbpm.graph.def.ProcessDefinition#611, version=1}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.SwimlaneInstance{actorId=null, swimlane=org.jbpm.taskmgmt.def.Swimlane#627, taskMgmtInstance=org.jbpm.taskmgmt.exe.TaskMgmtInstance#951, name=Role1, pooledActors=[org.jbpm.taskmgmt.exe.PooledActor#957], id=956}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.PooledActor{actorId=plouf, swimlaneInstance=org.jbpm.taskmgmt.exe.SwimlaneInstance#954, taskInstances=null, id=955}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.TaskMgmtInstance{processInstance=org.jbpm.graph.exe.ProcessInstance#949, taskMgmtDefinition=org.jbpm.taskmgmt.def.TaskMgmtDefinition#625, taskInstances=[org.jbpm.taskmgmt.exe.TaskInstance#953], swimlaneInstances=[org.jbpm.taskmgmt.exe.SwimlaneInstance#954, org.jbpm.taskmgmt.exe.SwimlaneInstance#956], id=951}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.def.Swimlane{assignmentDelegation=null, taskMgmtDefinition=org.jbpm.taskmgmt.def.TaskMgmtDefinition#625, actorIdExpression=null, pooledActorsExpression=null, tasks=<uninitialized>, name=Role1, id=627}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.pretty.Printer] org.jbpm.context.def.ContextDefinition{name=org.jbpm.context.def.ContextDefinition, id=624, processDefinition=org.jbpm.graph.def.ProcessDefinition#611}
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.SQL] insert into JBPM_TOKEN (VERSION_, NAME_, START_, END_, NODEENTER_, NEXTLOGINDEX_, ISABLETOREACTIVATEPARENT_, ISTERMINATIONIMPLICIT_, ISSUSPENDED_, NODE_, PROCESSINSTANCE_, PARENT_, SUBPROCESSINSTANCE_, ID_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.SQL] insert into JBPM_PROCESSINSTANCE (VERSION_, START_, END_, ISSUSPENDED_, PROCESSDEFINITION_, ROOTTOKEN_, SUPERPROCESSTOKEN_, ID_) values (?, ?, ?, ?, ?, ?, ?, ?)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.SQL] insert into JBPM_MODULEINSTANCE (PROCESSINSTANCE_, TASKMGMTDEFINITION_, CLASS_, ID_) values (?, ?, 'T', ?)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.SQL] insert into JBPM_MODULEINSTANCE (PROCESSINSTANCE_, CLASS_, ID_) values (?, 'C', ?)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.SQL] insert into JBPM_TASKINSTANCE (NAME_, DESCRIPTION_, ACTORID_, CREATE_, START_, END_, DUEDATE_, PRIORITY_, ISCANCELLED_, ISSUSPENDED_, ISOPEN_, ISSIGNALLING_, ISBLOCKING_, TASK_, TOKEN_, SWIMLANINSTANCE_, TASKMGMTINSTANCE_, CLASS_, ID_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'T', ?)
      2006-09-19 11:24:52,173 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.SQL] insert into JBPM_SWIMLANEINSTANCE (NAME_, ACTORID_, SWIMLANE_, TASKMGMTINSTANCE_, ID_) values (?, ?, ?, ?, ?)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.SQL] insert into JBPM_POOLEDACTOR (ACTORID_, SWIMLANEINSTANCE_, ID_) values (?, ?, ?)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.SQL] insert into JBPM_SWIMLANEINSTANCE (NAME_, ACTORID_, SWIMLANE_, TASKMGMTINSTANCE_, ID_) values (?, ?, ?, ?, ?)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.SQL] insert into JBPM_POOLEDACTOR (ACTORID_, SWIMLANEINSTANCE_, ID_) values (?, ?, ?)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.SQL] update JBPM_TOKEN set VERSION_=?, NAME_=?, START_=?, END_=?, NODEENTER_=?, NEXTLOGINDEX_=?, ISABLETOREACTIVATEPARENT_=?, ISTERMINATIONIMPLICIT_=?, ISSUSPENDED_=?, NODE_=?, PROCESSINSTANCE_=?, PARENT_=?, SUBPROCESSINSTANCE_=? where ID_=? and VERSION_=?
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.SQL] update JBPM_PROCESSINSTANCE set VERSION_=?, START_=?, END_=?, ISSUSPENDED_=?, PROCESSDEFINITION_=?, ROOTTOKEN_=?, SUPERPROCESSTOKEN_=? where ID_=? and VERSION_=?
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.SQL] update JBPM_TASKINSTANCE set NAME_=?, DESCRIPTION_=?, ACTORID_=?, CREATE_=?, START_=?, END_=?, DUEDATE_=?, PRIORITY_=?, ISCANCELLED_=?, ISSUSPENDED_=?, ISOPEN_=?, ISSIGNALLING_=?, ISBLOCKING_=?, TASK_=?, TOKEN_=?, SWIMLANINSTANCE_=?, TASKMGMTINSTANCE_=? where ID_=?
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] Inserting collection: [org.jbpm.graph.exe.ProcessInstance.instances#949]
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.SQL] update JBPM_MODULEINSTANCE set PROCESSINSTANCE_=?, NAME_=? where ID_=?
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] reusing prepared statement
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.SQL] update JBPM_MODULEINSTANCE set PROCESSINSTANCE_=?, NAME_=? where ID_=?
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] done inserting collection: 2 rows inserted
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] Inserting collection: [org.jbpm.taskmgmt.exe.TaskInstance.pooledActors#953]
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 2
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 1
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.SQL] insert into JBPM_TASKACTORPOOL (TASKINSTANCE_, POOLEDACTOR_) values (?, ?)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] done inserting collection: 1 rows inserted
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
      2006-09-19 11:24:52,189 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
      2006-09-19 11:24:52,205 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization
      2006-09-19 11:24:52,205 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4745862726471680
      2006-09-19 11:24:52,205 INFO [STDOUT] getTestProcess1_DetailProcess : Session Open : true
      2006-09-19 11:24:52,220 ERROR [STDERR] org.hibernate.SessionException: Session is closed!

      at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
      at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:867)
      at org.hibernate.impl.SessionImpl.get(SessionImpl.java:808)
      at org.hibernate.impl.SessionImpl.get(SessionImpl.java:801)
      at org.jbpm.db.GraphSession.getProcessInstance(GraphSession.java:291)
      at org.jbpm.JbpmContext.getProcessInstance(JbpmContext.java:331)
      at fr.cpage.fmk.workflow.impl.jbpm.manager.WkfProcessMgrImpl.getProcessIntance(WkfProcessMgrImpl.java:200)
      at fr.cpage.testprocess.facade.impl.TestProcessFacadeBean.getTestProcess1_DetailProcess(TestProcessFacadeBean.java:120)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
      at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
      at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:59)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
      at $Proxy77.getTestProcess1_DetailProcess(Unknown Source)
      at fr.test.TestProcess1WebBean.creer_testprocess1(TestProcess1WebBean.java:66)
      at fr.test.TestProcess1WebBean$$EnhancerByCGLIB$$28da51bf.CGLIB$creer_testprocess1$5(<generated>)
      at fr.test.TestProcess1WebBean$$EnhancerByCGLIB$$28da51bf$$FastClassByCGLIB$$8360d413.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
      at org.jboss.seam.interceptors.JavaBeanInterceptor$1.proceed(JavaBeanInterceptor.java:80)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      at org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:64)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:30)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:39)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:59)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:58)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:34)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.ConversationalInterceptor.checkConversationForConversationalBean(ConversationalInterceptor.java:80)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
      2006-09-19 11:24:52,220 ERROR [STDERR] ethod)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:40)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.ejb.SeamInterceptor.aroundInvokeInContexts(SeamInterceptor.java:85)
      at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:57)
      at org.jboss.seam.interceptors.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:51)
      at org.jboss.seam.interceptors.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:39)
      at fr.test.TestProcess1WebBean$$EnhancerByCGLIB$$28da51bf.creer_testprocess1(<generated>)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
      at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
      at javax.faces.component.UICommand.broadcast(UICommand.java:106)
      at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
      at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Unknown Source)
      2006-09-19 11:24:52,220 ERROR [org.jbpm.db.GraphSession] org.hibernate.SessionException: Session is closed!
      2006-09-19 11:24:52,314 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.provider.url=localhost:1099, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2006-09-19 11:24:52,330 ERROR [org.jboss.seam.interceptors.ExceptionInterceptor] redirecting to debug page
      javax.ejb.EJBException: org.jbpm.JbpmException: couldn't get process instance '949'
      at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
      at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:59)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
      at $Proxy77.getTestProcess1_DetailProcess(Unknown Source)
      at fr.test.TestProcess1WebBean.creer_testprocess1(TestProcess1WebBean.java:66)
      at fr.test.TestProcess1WebBean$$EnhancerByCGLIB$$28da51bf.CGLIB$creer_testprocess1$5(<generated>)
      at fr.test.TestProcess1WebBean$$EnhancerByCGLIB$$28da51bf$$FastClassByCGLIB$$8360d413.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
      at org.jboss.seam.interceptors.JavaBeanInterceptor$1.proceed(JavaBeanInterceptor.java:80)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      at org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:64)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:30)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:39)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:59)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:58)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:34)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.ConversationalInterceptor.checkConversationForConversationalBean(ConversationalInterceptor.java:80)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:40)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.ejb.SeamInterceptor.aroundInvokeInContexts(SeamInterceptor.java:85)
      at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:57)
      at org.jboss.seam.interceptors.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:51)
      at org.jboss.seam.interceptors.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:39)
      at fr.test.TestProcess1WebBean$$EnhancerByCGLIB$$28da51bf.creer_testprocess1(<generated>)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
      at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
      at javax.faces.component.UICommand.broadcast(UICommand.java:106)
      at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
      at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Unknown Source)
      Caused by: org.jbpm.JbpmException: couldn't get process instance '949'
      at org.jbpm.db.GraphSession.getProcessInstance(GraphSession.java:296)
      at org.jbpm.JbpmContext.getProcessInstance(JbpmContext.java:331)
      at fr.cpage.fmk.workflow.impl.jbpm.manager.WkfProcessMgrImpl.getProcessIntance(WkfProcessMgrImpl.java:200)
      at fr.cpage.testprocess.facade.impl.TestProcessFacadeBean.getTestProcess1_DetailProcess(TestProcessFacadeBean.java:120)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
      at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      ... 141 more
      Caused by: org.hibernate.SessionException: Session is closed!
      at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
      at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:867)
      at org.hibernate.impl.SessionImpl.get(SessionImpl.java:808)
      at org.hibernate.impl.SessionImpl.get(SessionImpl.java:801)
      at org.jbpm.db.GraphSession.getProcessInstance(GraphSession.java:291)
      ... 157 more



        • 1. Re: Jbpm + CMT + Hibernate : Session Is Closed..
          Jean Guyer Newbie

          the line that raise the error is just after the sysout on the session :

          this.procInstance_testProcess1= this.processMgr.getProcessIntance(entityBean.getProcessIntanceId());

          the first method commit well in the database , but in the second , i don't understand why the session is closed , while it's said that it's open.

          • 2. Re: Jbpm + CMT + Hibernate : Session Is Closed..
            Alejandro Guizar Master

            jBPM is not aware of the current Hibernate session. It merely creates a new one if none is set in the jbpmContext. The session returned by:

            sessionFactory.getCurrentSession()

            differs from the one in
            jbpmContext.getSession()

            unless you call
            jbpmContext.setSession(sessionFactory.getCurrentSession())

            before you do any persistent operation with the jbpmContext. Otherwise, the jbpmContext opens a separate Hibernate session.

            In your case it seems the current session remains open, while the jbpm-mantained session has already been closed.

            Note that when you inject an external session (with jbpmContext.setSession()) jBPM no longer closes the session for you. This is definitely what you want in a managed environment. Hibernate takes care of closing the session when the JTA transaction completes.