• Post Reply Bookmark Topic Watch Topic
  • New Topic

org.apache.openjpa.persistence.EntityExistsException

 
Venkat Kommareddy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Caused By:
org.apache.openjpa.persistence.EntityExistsException: An object of type "com.x.dat.auth.CTSTrade" with oid "com.x.dat.auth.CTSTrade
-<FCAuthCTSKey>
<authSeq>1705307253</authSeq>
<ctsContractId>194413170</ctsContractId>
<ctsHedgeDealId>72116248</ctsHedgeDealId>
<tradeId>42307307</tradeId>
</FCAuthCTSKey>" already exists in this context; another cannot be persisted.
atorg.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2360)
atorg.apache.openjpa.kernel.AttachStrategy.persist(AttachStrategy.java:91)
atorg.apache.openjpa.kernel.VersionAttachStrategy.attach(VersionAttachStrategy.java:85)
atorg.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:236)
atorg.apache.openjpa.kernel.AttachStrategy.attachCollection(AttachStrategy.java:326)
atorg.apache.openjpa.kernel.AttachStrategy.replaceCollection(AttachStrategy.java:294)
atorg.apache.openjpa.kernel.AttachStrategy.attachField(AttachStrategy.java:216)
atorg.apache.openjpa.kernel.VersionAttachStrategy.attach(VersionAttachStrategy.java:137)
atorg.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:236)
atorg.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:97)
atorg.apache.openjpa.kernel.BrokerImpl.attach(BrokerImpl.java:3125)
atkodo.kernel.KodoBroker.attach(KodoBroker.java:245)


We are using openJpa 0.9 version in application. getting above exception when we do merge on entitymanager. Please help me out on this issue. Please let me know the root cause for this problem.

Thanks,
Venkat.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!