JBoss Community

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

created by Abdurrahman Nasr in jBPM Development - View the full discussion

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....?!

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community