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

Solutions on the web

via Oracle Community by 3004, 1 year ago
You cannot commit during a managed transaction!
via Oracle Community by 3004, 1 year ago
You cannot commit during a managed transaction!
via Oracle Community by 3004, 1 year ago
A connection could not be obtained in the specified login time of 0 seconds.
via Oracle Community by 3004, 1 year ago
You cannot commit during a managed transaction!
via Oracle Community by 3004, 1 year ago
[Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
via Oracle Community by 3004, 1 year ago
You cannot commit with autocommit set!
java.sql.SQLException: You cannot commit during a managed transaction!
at com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal(SQLExceptions.java:58)
at com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.handle(SQLExceptions.java:43)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newDataStoreId(JDBCStoreManager.java:602)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFilter(PersistenceManagerImpl.java:1418)
at com.solarmetric.kodo.runtime.PersistFCOFieldManager.storeFirstClassObject(PersistFCOFieldManager.java:109)
at com.solarmetric.kodo.runtime.PersistFCOFieldManager.storeObjectField(PersistFCOFieldManager.java:78)
at com.solarmetric.kodo.runtime.StateManagerImpl.providedObjectField(StateManagerImpl.java:1370)
at day4.jdo.model.Publisher.jdoProvideField(Publisher.java)
at com.solarmetric.kodo.runtime.StateManagerImpl.provideFields(StateManagerImpl.java:2421)
at com.solarmetric.kodo.runtime.StateManagerImpl.preFlush(StateManagerImpl.java:2053)
at com.solarmetric.kodo.runtime.PNewState.beforeCommit(PNewState.java:39)
at com.solarmetric.kodo.runtime.StateManagerImpl.beforeCommit(StateManagerImpl.java:607)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.preCommitCallbacks(PersistenceManagerImpl.java:617)
at com.solarmetric.kodo.ee.EEPersistenceManager.beforeCompletion(EEPersistenceManager.java:210)
at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1416)
at org.jboss.tm.TxCapsule.commit(TxCapsule.java:368)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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