org.apache.openjpa.util.StoreException: Attempt to update the sequence table "OPENJPA_SEQUENCE_TABLE" failed. The sequence table is typically created when you run the mappingtool's refresh action on any datastore identity class. If you have not run the mappingtool but want to create the sequence table, run: java org.apache.openjpa.jdbc.kernel.TableJDBCSeq -action add

Oracle Community | 647944 | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Using GenerationType.AUTO failes to create OPENJPA_SEQUENCE_TABLE

    Oracle Community | 8 years ago | 647944
    org.apache.openjpa.util.StoreException: Attempt to update the sequence table "OPENJPA_SEQUENCE_TABLE" failed. The sequence table is typically created when you run the mappingtool's refresh action on any datastore identity class. If you have not run the mappingtool but want to create the sequence table, run: java org.apache.openjpa.jdbc.kernel.TableJDBCSeq -action add
  2. 0

    Using GenerationType.AUTO failes to create OPENJPA_SEQUENCE_TABLE

    Oracle Community | 8 years ago | 647944
    org.apache.openjpa.util.StoreException: Attempt to update the sequence table "OPENJPA_SEQUENCE_TABLE" failed. The sequence table is typically created when you run the mappingtool's refresh action on any datastore identity class. If you have not run the mappingtool but want to create the sequence table, run: java org.apache.openjpa.jdbc.kernel.TableJDBCSeq -action add
  3. 0

    Using GenerationType.AUTO failes to create OPENJPA_SEQUENCE_TABLE

    Oracle Community | 8 years ago | 647944
    org.apache.openjpa.util.StoreException: Attempt to update the sequence table "OPENJPA_SEQUENCE_TABLE" failed. The sequence table is typically created when you run the mappingtool's refresh action on any datastore identity class. If you have not run the mappingtool but want to create the sequence table, run: java org.apache.openjpa.jdbc.kernel.TableJDBCSeq -action add
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NEED URGENT HELP WITH ENTITY

    Oracle Community | 5 years ago | 929102
    org.apache.openjpa.util.StoreException: Attempt to update the sequence table "OPENJPA_SEQUENCE_TABLE" failed. The sequence table is typically created when you run the mappingtool's refresh action on any datastore identity class. If you have not run the mappingtool but want to create the sequence table, run: java org.apache.openjpa.jdbc.kernel.TableJDBCSeq -action add

    Root Cause Analysis

    1. java.sql.SQLException

      There is no row for mapping "com.thunderhead.backend.entities.JobMessage" in sequence table "OPENJPA_SEQUENCE_TABLE", and the attempt to insert a row has apparently failed.

      at org.apache.openjpa.jdbc.kernel.TableJDBCSeq.allocateSequence()
    2. OpenJPA Aggregate Jar
      JDBCStoreManager.assignObjectId
      1. org.apache.openjpa.jdbc.kernel.TableJDBCSeq.allocateSequence(TableJDBCSeq.java:395)
      2. org.apache.openjpa.jdbc.sql.SQLExceptions.narrow(SQLExceptions.java:146)
      3. org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4150)
      4. org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:102)
      5. org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:80)
      6. org.apache.openjpa.jdbc.kernel.TableJDBCSeq.allocateSequence(TableJDBCSeq.java:401)
      7. org.apache.openjpa.jdbc.kernel.TableJDBCSeq.nextInternal(TableJDBCSeq.java:266)
      8. org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.next(AbstractJDBCSeq.java:60)
      9. org.apache.openjpa.util.ImplHelper.generateValue(ImplHelper.java:160)
      10. org.apache.openjpa.util.ImplHelper.generateFieldValue(ImplHelper.java:144)
      11. org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignField(JDBCStoreManager.java:592)
      12. org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:464)
      13. org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:440)
      14. org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignObjectId(JDBCStoreManager.java:576)
      14 frames
    3. kodo.jdbc.kernel
      KodoJDBCStoreManager.assignObjectId
      1. kodo.jdbc.kernel.KodoJDBCStoreManager.assignObjectId(KodoJDBCStoreManager.java:33)
      1 frame
    4. OpenJPA Aggregate Jar
      BrokerImpl.beforeCompletion
      1. org.apache.openjpa.kernel.DelegatingStoreManager.assignObjectId(DelegatingStoreManager.java:134)
      2. org.apache.openjpa.kernel.DelegatingStoreManager.assignObjectId(DelegatingStoreManager.java:134)
      3. org.apache.openjpa.kernel.StateManagerImpl.assignObjectId(StateManagerImpl.java:517)
      4. org.apache.openjpa.kernel.StateManagerImpl.preFlush(StateManagerImpl.java:2814)
      5. org.apache.openjpa.kernel.PNewState.beforeFlush(PNewState.java:39)
      6. org.apache.openjpa.kernel.StateManagerImpl.beforeFlush(StateManagerImpl.java:957)
      7. org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:1945)
      8. org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1905)
      9. org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1823)
      9 frames
    5. weblogic.transaction.internal
      ServerTransactionImpl.internalCommit
      1. weblogic.transaction.internal.ServerSCInfo.doBeforeCompletion(ServerSCInfo.java:1217)
      2. weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:1195)
      3. weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:118)
      4. weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:1302)
      5. weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:2114)
      6. weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:263)
      6 frames