org.apache.openjpa.persistence.PersistenceException: Cannot call commit when using distributed transactions

Oracle Community | 666705 | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    XA driver problem using WLS 9.2

    Oracle Community | 10 years ago | 666705
    org.apache.openjpa.persistence.PersistenceException: Cannot call commit when using distributed transactions
  2. 0

    Using PostgreSQL sequences with db user restrictions

    openjpa-users | 3 years ago | Anja
    org.apache.openjpa.persistence.PersistenceException: ERROR: current transaction is aborted, commands ignored until end of transaction block {prepstmnt 19606677 SELECT NEXTVAL('SEQ_DATEN')} [code=0, state=25P02]

    Root Cause Analysis

    1. org.apache.openjpa.persistence.PersistenceException

      Cannot call commit when using distributed transactions

      at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore()
    2. OpenJPA Aggregate Jar
      StateManagerImpl.accessingField
      1. org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:92)
      2. org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:64)
      3. org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:41)
      4. org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.closeConnection(AbstractJDBCSeq.java:163)
      5. org.apache.openjpa.jdbc.kernel.NativeJDBCSeq.nextInternal(NativeJDBCSeq.java:206)
      6. org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.next(AbstractJDBCSeq.java:54)
      7. org.apache.openjpa.util.ImplHelper.generateValue(ImplHelper.java:159)
      8. org.apache.openjpa.util.ImplHelper.generateFieldValue(ImplHelper.java:143)
      9. org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignField(JDBCStoreManager.java:554)
      10. org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:435)
      11. org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:420)
      12. org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignObjectId(JDBCStoreManager.java:538)
      13. org.apache.openjpa.kernel.DelegatingStoreManager.assignObjectId(DelegatingStoreManager.java:131)
      14. org.apache.openjpa.kernel.DelegatingStoreManager.assignObjectId(DelegatingStoreManager.java:131)
      15. org.apache.openjpa.kernel.StateManagerImpl.assignObjectId(StateManagerImpl.java:471)
      16. org.apache.openjpa.kernel.StateManagerImpl.assignField(StateManagerImpl.java:555)
      17. org.apache.openjpa.kernel.StateManagerImpl.beforeAccessField(StateManagerImpl.java:1354)
      18. org.apache.openjpa.kernel.StateManagerImpl.accessingField(StateManagerImpl.java:1337)
      18 frames