2 Replies Latest reply on Feb 18, 2008 3:51 AM by stuart grassie

    Exceptions after calling jbpmContext.close - Please Help

    pras mn Newbie

      After business processing (creating a new process instance, and signalling twice), I close the jbpmContext and see these errors. Please help me in understanding what they might be about.

      I also have a Hibernate Session in the same class, injected by Seam and set this session in jbpmContext using setSession, while creating jbpmContext.

      --------------------------------------


      15:30:05,968 INFO [STDOUT] jbpm context closed********
      15:30:08,602 ERROR [JDBCTransaction] exception calling user Synchronization

      java.lang.RuntimeException: exception invoking: getTaskInstance
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:135)
      at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
      at org.jboss.seam.Component.unwrap(Component.java:2100)
      at org.jboss.seam.Component.getInstance(Component.java:1879)
      at org.jboss.seam.Component.getInstance(Component.java:1844)
      at org.jboss.seam.Component.getInstance(Component.java:1821)
      at org.jboss.seam.Component.getInstance(Component.java:1816)
      at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
      at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
      ssProcessContext.java:231)
      at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
      ontext.java:145)
      at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
      text.java:114)
      at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
      sactionCompletion(JDBCTransaction.java:228)
      at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
      :109)
      at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
      action.java:107)
      at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
      at org.jboss.seam.bpm.TaskInstance.getTaskInstance(TaskInstance.java:39)

      at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
      at org.jboss.seam.Component.unwrap(Component.java:2100)
      at org.jboss.seam.Component.getInstance(Component.java:1879)
      at org.jboss.seam.Component.getInstance(Component.java:1844)
      at org.jboss.seam.Component.getInstance(Component.java:1821)
      at org.jboss.seam.Component.getInstance(Component.java:1816)
      at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
      at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
      ssProcessContext.java:231)
      at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
      ontext.java:145)
      at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
      text.java:114)
      at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
      sactionCompletion(JDBCTransaction.java:228)
      at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
      :109)
      at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
      action.java:107)
      at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
      at org.jboss.seam.bpm.TaskInstance.getTaskInstance(TaskInstance.java:39)

      at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
      at org.jboss.seam.Component.unwrap(Component.java:2100)
      at org.jboss.seam.Component.getInstance(Component.java:1879)
      at org.jboss.seam.Component.getInstance(Component.java:1844)
      at org.jboss.seam.Component.getInstance(Component.java:1821)
      at org.jboss.seam.Component.getInstance(Component.java:1816)
      at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
      at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
      ssProcessContext.java:231)
      at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
      ontext.java:145)
      at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
      text.java:114)
      at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
      sactionCompletion(JDBCTransaction.java:228)
      at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
      :109)
      at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
      action.java:107)
      at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
      at org.jboss.seam.bpm.TaskInstance.getTaskInstance(TaskInstance.java:39)

      at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
      at org.jboss.seam.Component.unwrap(Component.java:2100)
      at org.jboss.seam.Component.getInstance(Component.java:1879)
      at org.jboss.seam.Component.getInstance(Component.java:1844)
      at org.jboss.seam.Component.getInstance(Component.java:1821)
      at org.jboss.seam.Component.getInstance(Component.java:1816)
      at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
      at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
      ssProcessContext.java:231)
      at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
      ontext.java:145)
      at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
      text.java:114)
      at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
      sactionCompletion(JDBCTransaction.java:228)
      at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
      :109)
      at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
      action.java:107)
      at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
      at org.jboss.seam.bpm.TaskInstance.getTaskInstance(TaskInstance.java:39)

      at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
      at org.jboss.seam.Component.unwrap(Component.java:2100)
      at org.jboss.seam.Component.getInstance(Component.java:1879)
      at org.jboss.seam.Component.getInstance(Component.java:1844)
      at org.jboss.seam.Component.getInstance(Component.java:1821)
      at org.jboss.seam.Component.getInstance(Component.java:1816)
      at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
      at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
      ssProcessContext.java:231)
      at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
      ontext.java:145)
      at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
      text.java:114)
      at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
      sactionCompletion(JDBCTransaction.java:228)
      at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
      :109)
      at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
      action.java:107)
      at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
      at org.jboss.seam.bpm.TaskInstance.getTaskInstance(TaskInstance.java:39)

      at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
      at org.jboss.seam.Component.unwrap(Component.java:2100)
      at org.jboss.seam.Component.getInstance(Component.java:1879)
      at org.jboss.seam.Component.getInstance(Component.java:1844)
      at org.jboss.seam.Component.getInstance(Component.java:1821)
      at org.jboss.seam.Component.getInstance(Component.java:1816)
      at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
      at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
      ssProcessContext.java:231)
      at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
      ontext.java:145)
      at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
      text.java:114)
      at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
      sactionCompletion(JDBCTransaction.java:228)
      at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
      :109)
      at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
      action.java:107)
      at org.jboss.seam.util.Work.workInTransaction(Work.java:44)