openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <plins...@gmail.com>
Subject Re: EntityExistsException when updating
Date Tue, 03 Jul 2007 14:03:43 GMT
Hi,

Can you post the code for the transaction in question? That'll help us
get an idea of what is causing the problem.

-Patrick

On 7/3/07, Sreedhar.sirigiri <sreedhar.sirigiri@gmail.com> wrote:
>
> Hi,
>
> When I'm trying to update records, the following exception is viewed in log
> http://www.nabble.com/file/p11409813/Desktop.zip Desktop.zip . Please find
> the files attached. Kindly help
>
> Caused by:
> <0.9.7-incubating nonfatal store error>
> org.apache.openjpa.persistence.EntityExistsException: An object of type
> "com.vormetric.server.dao.user.RoleDTO" with oid
> "com.vormetric.server.dao.user.RoleDTO-5" already exists in this context;
> another cannot be persisted.
> FailedObject: com.vormetric.server.dao.user.RoleDTO@2efe2efe
>         at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2397)
>         at
> org.apache.openjpa.kernel.SingleFieldManager.preFlushPC(SingleFieldManager.java:757)
>         at
> org.apache.openjpa.kernel.SingleFieldManager.preFlushPCs(SingleFieldManager.java:732)
>         at
> org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:634)
>         at
> org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:559)
>         at
> org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:475)
>         at
> org.apache.openjpa.kernel.StateManagerImpl.preFlush(StateManagerImpl.java:2678)
>         at org.apache.openjpa.kernel.PDirtyState.beforeFlush(PDirtyState.java:37)
>         at
> org.apache.openjpa.kernel.StateManagerImpl.beforeFlush(StateManagerImpl.java:854)
>         at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:1903)
>         at org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1863)
>         at
> org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1781)
>         at
> org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1491)
>         at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1110)
>         at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324)
>         ... 33 more
> --
> View this message in context: http://www.nabble.com/EntityExistsException-when-updating-tf4017548.html#a11409813
> Sent from the OpenJPA Developers mailing list archive at Nabble.com.
>
>


-- 
Patrick Linskey
202 669 5907

Mime
View raw message