org.apache.openjpa.persistence.EntityExistsException

An object of type "com.ibm.wdp.bss.party.entity.PartyObject" with oid "0" already exists in this context; another cannot be persisted. FailedObject: com.ibm.wdp.bss.party.entity.PartyObject@7aa47aa4

Solutions on the web33

  • via openjpa-users by Krishnaprasad Subbarao, 9 months ago
    An object of type "com.ibm.wdp.bss.party.entity.PartyObject" with oid "0" already exists in this context; another cannot be persisted. FailedObject: com.ibm.wdp.bss.party.entity.PartyObject@7aa47aa4
  • An object of type "ru.focusmedia.odp.server.datastore.jpa.entity.OdpObjectScheduleEntity" with oid "956101" already exists in this context; another cannot be persisted. FailedObject: ru.focusmedia.odp.server.datastore.jpa.entity.OdpObjectScheduleEntity@3ad41caa
  • An object of type "generate.Bsc" with oid "generate.Bsc-1:objname1" already exists in this context; another cannot be persisted. FailedObject: generate.Bsc@14b6bed at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2370) at
  • Stack trace

    • org.apache.openjpa.persistence.EntityExistsException: An object of type "com.ibm.wdp.bss.party.entity.PartyObject" with oid "0" already exists in this context; another cannot be persisted. FailedObject: com.ibm.wdp.bss.party.entity.PartyObject@7aa47aa4 at org.apache.openjpa.kernel.BrokerImpl.checkForDuplicateId(BrokerImpl.java:5080) at org.apache.openjpa.kernel.BrokerImpl.persistInternal(BrokerImpl.java:2653) at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2573) at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2556) at org.apache.openjpa.kernel.SingleFieldManager.preFlushPC(SingleFieldManager.java:800) at org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:621) at org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:589) at org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:505) at org.apache.openjpa.kernel.StateManagerImpl.preFlush(StateManagerImpl.java:3028) at org.apache.openjpa.kernel.PNewState.beforeFlush(PNewState.java:44) at org.apache.openjpa.kernel.StateManagerImpl.beforeFlush(StateManagerImpl.java:1042) at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2114) at org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:2074) at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1992) at org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:81) at org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1516) at org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:933) at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:570)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.