Abdurrahman Nasr [
http://community.jboss.org/people/abdu_nasr] created the discussion
"java.sql.SQLException: You cannot commit during a managed transaction!"
To view the discussion, visit:
http://community.jboss.org/message/560029#560029
--------------------------------------------------------------
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
[
http://community.jboss.org/message/560029#560029]
Start a new discussion in jBPM Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]