java.sql.SQLException: Cannot call commit when using distributed transactions

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 666705, 1 year ago
Cannot call commit when using distributed transactions
via Oracle Community by 771808, 1 year ago
Cannot call commit when using distributed transactions
via Oracle Community by 669236, 1 year ago
Cannot call commit when using distributed transactions
via spring.io by Unknown author, 1 year ago
Cannot call commit when using distributed transactions
via Stack Overflow by Lucia Manescau
, 1 year ago
via Oracle Community by 2931183, 1 year ago
Cannot call commit when using distributed transactions
java.sql.SQLException: Cannot call commit when using distributed transactions
at weblogic.jdbc.wrapper.JTAConnection.commit(JTAConnection.java:321)
at org.apache.openjpa.lib.jdbc.DelegatingConnection.commit(DelegatingConnection.java:201)
at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator$LoggingConnection.commit(LoggingConnectionDecorator.java:253)
at org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.closeConnection(AbstractJDBCSeq.java:161)
at org.apache.openjpa.jdbc.kernel.NativeJDBCSeq.nextInternal(NativeJDBCSeq.java:206)
at org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.next(AbstractJDBCSeq.java:54)
at org.apache.openjpa.util.ImplHelper.generateValue(ImplHelper.java:159)
at org.apache.openjpa.util.ImplHelper.generateFieldValue(ImplHelper.java:143)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignField(JDBCStoreManager.java:555)
at org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:390)
at org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:375)
at kodo.jdbc.kernel.KodoJDBCStoreManager.assignObjectId(KodoJDBCStoreManager.java:33)
at org.apache.openjpa.kernel.DelegatingStoreManager.assignObjectId(DelegatingStoreManager.java:131)
at org.apache.openjpa.kernel.DelegatingStoreManager.assignObjectId(DelegatingStoreManager.java:131)
at org.apache.openjpa.kernel.StateManagerImpl.assignObjectId(StateManagerImpl.java:472)
at org.apache.openjpa.kernel.StateManagerImpl.assignField(StateManagerImpl.java:556)
at org.apache.openjpa.kernel.StateManagerImpl.beforeAccessField(StateManagerImpl.java:1339)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
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.