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

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 2931183, 1 year ago
Cannot call commit when using distributed transactions Error Code: 0
via Oracle Community by sono99, 1 year ago
via Oracle Community by 778446, 1 year ago
This is already a proxy session Error Code: 17149 Call: SELECT ID FROM TABLE Query: ReadAllQuery(name="Table.findAll" referenceClass=Table sql="SELECT ID FROM TABLE")
via Stack Overflow by Poyraz
, 2 years ago
Statement has already been closed Error Code: 0 Call: SELECT ID, FIRST_NAME, ISBLOCKED, LAST_NAME, MODIFIED, MSISDN, VERSION, OWNER_ID, CONTACT_ID FROM CONTACTS WHERE (OWNER_ID = ?) bind => [1 parameter bound] Query: ReadAllQuery(name
via nabble.com by Unknown author, 1 year ago
via Stack Overflow by der_wolle
, 2 years ago
The exception 'java.lang.ClassCastException: java.nio.file.NoSuchFileException cannot be cast to java.lang.RuntimeException' was thrown while evaluating an expression. Error Code: 20000 Call: CALL SYSCS_UTIL.SYSCS_BACKUP_DATABASE(?) bind => [1 parameter bound] Query: ResultSetMappingQuery()
java.sql.SQLException: Cannot call commit when using distributed transactions Error Code: 0
at weblogic.jdbc.wrapper.JTAConnection.commit(JTAConnection.java:377)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicCommitTransaction(DatabaseAccessor.java:437)
at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:331)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicCommitTransaction(DatabaseAccessor.java:445)
at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.commitTransaction(DatasourceAccessor.java:405)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.commitTransaction(DatabaseAccessor.java:427)
at org.eclipse.persistence.internal.sessions.AbstractSession.basicCommitTransaction(AbstractSession.java:761)
at org.eclipse.persistence.sessions.server.ClientSession.basicCommitTransaction(ClientSession.java:174)
at org.eclipse.persistence.internal.sessions.AbstractSession.commitTransaction(AbstractSession.java:965)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransaction(UnitOfWorkImpl.java:1600)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1461)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1531)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitRootUnitOfWork(UnitOfWorkImpl.java:1351)
at oracle.soa.tracking.fabric.persistence.InstanceTrackingPersistenceManagerImpl.doAllocateKeyRange(InstanceTrackingPersistenceManagerImpl.java:1362)
at oracle.soa.tracking.fabric.persistence.InstanceTrackingPersistenceManagerImpl.allocateKeyRange(InstanceTrackingPersistenceManagerImpl.java:1300)

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

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