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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • db:: 5.14::XA Debug Level fc
    via by Unknown author,
  • How to manually commit a managed transaction
    via Stack Overflow by vz0
    ,
    • java.sql.SQLException: You cannot commit during a managed transaction! at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:519) at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:451) 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) at org.springframework.transaction.jta.UserTransactionAdapter.commit(UserTransactionAdapter.java:74)

    Users with the same issue

    Unknown visitor1 times, last one,