org.apache.openjpa.persistence.ArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • org.apache.openjpa.persistence.ArgumentException: Attempt to assign id "0" to new instance "my.package.A-0" failed; there is already an object in the L1 cache with this id. You must delete this object (in a previous transaction or the current one) before reusing its id. This error can also occur when a horizontally or vertically mapped classes uses auto-increment application identity and does not use a hierarchy of application identity classes. FailedObject: my.package.A-0 at org.apache.openjpa.kernel.ManagedCache.commitNew(ManagedCache.java:236) at org.apache.openjpa.kernel.BrokerImpl.setStateManager(BrokerImpl.java:4145) at org.apache.openjpa.kernel.StateManagerImpl.commit(StateManagerImpl.java:1164) at org.apache.openjpa.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2433)
    No Bugmate found.