org.apache.openjpa.util.InvalidStateException: Operation attempted on a deleted instance.

Oracle Community | 666705 | 9 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

    OpenJPA issue with deleting a record with timestamps

    Oracle Community | 9 years ago | 666705
    org.apache.openjpa.util.InvalidStateException: Operation attempted on a deleted instance.
  2. 0

    Open JPA issue with deleting a record with timestamps

    Coderanch | 9 years ago | Padma Prasad
    org.apache.openjpa.util.InvalidStateException: Operation attempted on a deleted instance.

    Root Cause Analysis

    1. org.apache.openjpa.util.InvalidStateException

      Operation attempted on a deleted instance.

      at org.apache.openjpa.kernel.PCState.error()
    2. OpenJPA Aggregate Jar
      DelegatingStoreManager.flush
      1. org.apache.openjpa.kernel.PCState.error(PCState.java:443)
      2. org.apache.openjpa.kernel.PDeletedState.beforeOptimisticWrite(PDeletedState.java:76)
      3. org.apache.openjpa.kernel.StateManagerImpl.dirty(StateManagerImpl.java:1445)
      4. org.apache.openjpa.kernel.StateManagerImpl.dirty(StateManagerImpl.java:1384)
      5. org.apache.openjpa.util.Proxies.dirty(Proxies.java:68)
      6. org.apache.openjpa.util.java$sql$Timestamp$proxy.setNanos(Unknown Source)
      7. org.apache.openjpa.jdbc.sql.DBDictionary.setTimestamp(DBDictionary.java:1054)
      8. org.apache.openjpa.jdbc.sql.DBDictionary.setTyped(DBDictionary.java:1194)
      9. org.apache.openjpa.jdbc.sql.RowImpl.flush(RowImpl.java:883)
      10. org.apache.openjpa.jdbc.sql.RowImpl.flush(RowImpl.java:843)
      11. org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushInternal(PreparedStatementManagerImpl.java:93)
      12. org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedStatementManagerImpl.java:71)
      13. org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager.flushPrimaryRow(OperationOrderUpdateManager.java:162)
      14. org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager.flush(OperationOrderUpdateManager.java:89)
      15. org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:89)
      16. org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:72)
      17. org.apache.openjpa.jdbc.kernel.JDBCStoreManager.flush(JDBCStoreManager.java:514)
      18. org.apache.openjpa.kernel.DelegatingStoreManager.flush(DelegatingStoreManager.java:130)
      18 frames