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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via hivmr.com by Unknown author, 1 year ago
via hivmr.com by Unknown author, 1 year ago
You cannot commit during a managed transaction!
via hivmr.com by Unknown author, 1 year ago
You cannot commit during a managed transaction!
via Oracle Community by 666705, 1 year ago
You cannot commit during a managed transaction!
via Coderanch by Joydeep Ghatak, 11 months ago
You cannot commit with autocommit set!
via springframework by ryang5
, 1 year ago
You cannot commit during a managed transaction\!
java.sql.SQLException: You cannot commit during a managed transaction!
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:519)
at com.solarmetric.jdbc.DelegatingConnection.commit(DelegatingConnection.java:185)
at com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection.commit(LoggingConnectionDecorator.java:219)
at kodo.jdbc.schema.DBSequenceFactory.updateSequence(DBSequenceFactory.java:410)
at kodo.jdbc.schema.DBSequenceFactory.getNext(DBSequenceFactory.java:210)
at kodo.jdbc.schema.DBSequenceFactory.getNext(DBSequenceFactory.java:198)
at kodo.jdbc.runtime.JDBCStoreManager.nextSequenceValue(JDBCStoreManager.java:778)
at kodo.jdbc.runtime.JDBCStoreManager.assignObjectId(JDBCStoreManager.java:665)
at kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:605)
at kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:153)
at kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1159)
at kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1042)
at kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:969)
at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1384)
at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1076)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:296)
at org.jboss.tm.TxManager.commit(TxManager.java:200)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.