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

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
Operation attempted on a deleted instance.
via Coderanch by Padma Prasad, 1 year ago
Operation attempted on a deleted instance.
org.apache.openjpa.util.InvalidStateException: Operation attempted on a deleted instance.
at org.apache.openjpa.kernel.PCState.error(PCState.java:443)
at org.apache.openjpa.kernel.PDeletedState.beforeOptimisticWrite(PDeletedState.java:76)
at org.apache.openjpa.kernel.StateManagerImpl.dirty(StateManagerImpl.java:1445)
at org.apache.openjpa.kernel.StateManagerImpl.dirty(StateManagerImpl.java:1384)
at org.apache.openjpa.util.Proxies.dirty(Proxies.java:68)
at org.apache.openjpa.util.java$sql$Timestamp$proxy.setNanos(Unknown Source)
at org.apache.openjpa.jdbc.sql.DBDictionary.setTimestamp(DBDictionary.java:1054)
at org.apache.openjpa.jdbc.sql.DBDictionary.setTyped(DBDictionary.java:1194)
at org.apache.openjpa.jdbc.sql.RowImpl.flush(RowImpl.java:883)
at org.apache.openjpa.jdbc.sql.RowImpl.flush(RowImpl.java:843)
at org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushInternal(PreparedStatementManagerImpl.java:93)
at org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedStatementManagerImpl.java:71)
at org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager.flushPrimaryRow(OperationOrderUpdateManager.java:162)
at org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager.flush(OperationOrderUpdateManager.java:89)
at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:89)
at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:72)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.flush(JDBCStoreManager.java:514)
at org.apache.openjpa.kernel.DelegatingStoreManager.flush(DelegatingStoreManager.java:130)

Users with the same issue

You are the first who have seen this exception.

Write tip

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