1 Reply Latest reply on Sep 3, 2010 9:06 AM by Maciej Swiderski

    java.sql.SQLException: You cannot commit during a managed transaction!

    Abdurrahman Nasr Newbie

      Dears.

      while i'm getting process engine in jbpm 4 using the following line

      ProcessEngine processEngine = new Configuration().setResource("my.jbpm.cfg.xml").buildProcessEngine();

      I encounter this problem

       

      java.sql.SQLException: You cannot commit during a managed transaction!

      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:659)

      at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:486)

      at org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:170)

      at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:146)

      at org.jbpm.pvm.internal.tx.HibernateSessionResource.commit(HibernateSessionResource.java:64)

      at org.jbpm.pvm.internal.tx.StandardTransaction.commit(StandardTransaction.java:139)

      at org.jbpm.pvm.internal.tx.StandardTransaction.complete(StandardTransaction.java:64)

      at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:57)

      at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)

      and many more...

       

       

      does any one know what is that exception about....?!