AnswerDao.createAnswerGroup() has thrown an EntityExistsException

We found this prefix in 2 webpages.
MapChildren (2)Typical messages (2)TraceDetailed Map
  1. org.apache.openjpa.persistence.EntityExistsException
    1.   at org.apache.openjpa.kernel.BrokerImpl.checkForDuplicateId()
    2.   at org.apache.openjpa.kernel.BrokerImpl.persist()
    3.   at org.apache.openjpa.kernel.BrokerImpl.persist()
    4.   at org.apache.openjpa.kernel.SingleFieldManager.persist()
    5.   at org.apache.openjpa.kernel.StateManagerImpl.cascadePersist()
    6.   at org.apache.openjpa.kernel.BrokerImpl.persist()
    7.   at org.apache.openjpa.kernel.BrokerImpl.persist()
    8.   at org.apache.openjpa.kernel.DelegatingBroker.persist()
    9.   at org.apache.openjpa.persistence.EntityManagerImpl.persist()
    10.   at sun.reflect.NativeMethodAccessorImpl.invoke0()
    11.   at sun.reflect.NativeMethodAccessorImpl.invoke()
    12.   at sun.reflect.DelegatingMethodAccessorImpl.invoke()
    13.   at java.lang.reflect.Method.invoke()
    14.   at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke()
    15.   at $Proxy.persist()
    16.   at sun.reflect.NativeMethodAccessorImpl.invoke0()
    17.   at sun.reflect.NativeMethodAccessorImpl.invoke()
    18.   at sun.reflect.DelegatingMethodAccessorImpl.invoke()
    19.   at java.lang.reflect.Method.invoke()
    20.   at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke()
    21.   at $Proxy.persist()
    22.   at com.bsuir.survey.dao.AnswerDao.createAnswerGroup()
  1. ManyToOne persist fails after migration to OpenJPA (Object Relational Mapping forum at JavaRanch)

    First:2 years ago
    Last:2 years ago
  2. ManyToOne persist fails after migration to OpenJPA

    First:9 years ago
    Last:1 year ago
    Author:Vladlen Prohorov
MessageNumber of crashes
An object of type "org.apache.openjpa.enhance.com$bsuir$survey$model$Question$pcsubclass" with oid "com.bsuir.survey.model.Question-2" already exists in this context; another cannot be persisted. FailedObject: org.apache.openjpa.enhance.com$bsuir$survey$m1
An object of type "org.apache.openjpa.enhance.com$bsuir$survey$model$Question$pcsubclass" with oid "com.bsuir.survey.model.Question-2" already exists in this context; another cannot be persisted. FailedObject: org.apache.openjpa.enhance.com$bsuir$survey$mo1
  1. org.apache.openjpa.persistence.EntityExistsException
    1.   at org.apache.openjpa.kernel.BrokerImpl.checkForDuplicateId()
    2.   at org.apache.openjpa.kernel.BrokerImpl.persist()
    3.   at org.apache.openjpa.kernel.BrokerImpl.persist()
    4.   at org.apache.openjpa.kernel.SingleFieldManager.persist()
    5.   at org.apache.openjpa.kernel.StateManagerImpl.cascadePersist()
    6.   at org.apache.openjpa.kernel.BrokerImpl.persist()
    7.   at org.apache.openjpa.kernel.BrokerImpl.persist()
    8.   at org.apache.openjpa.kernel.DelegatingBroker.persist()
    9.   at org.apache.openjpa.persistence.EntityManagerImpl.persist()
    10.   at sun.reflect.NativeMethodAccessorImpl.invoke0()
    11.   at sun.reflect.NativeMethodAccessorImpl.invoke()
    12.   at sun.reflect.DelegatingMethodAccessorImpl.invoke()
    13.   at java.lang.reflect.Method.invoke()
    14.   at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke()
    15.   at $Proxy.persist()
    16.   at sun.reflect.NativeMethodAccessorImpl.invoke0()
    17.   at sun.reflect.NativeMethodAccessorImpl.invoke()
    18.   at sun.reflect.DelegatingMethodAccessorImpl.invoke()
    19.   at java.lang.reflect.Method.invoke()
    20.   at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke()
    21.   at $Proxy.persist()
    22.   at com.bsuir.survey.dao.AnswerDao.createAnswerGroup()