openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Udi <>
Subject OptimisticLockException problem
Date Mon, 02 Nov 2009 09:27:16 GMT

My application have few EntityManagers.
Each EM, works on a different Thread.
I configured openjpa.Optimistic to false and openjpa.Multithreaded to true.
(Though Im not sure its related)
I get the following exception (sorry for not pasting the full stack... I
just can't):

org.apache.openjpa.persistence.OptimisticLockException: an optimistic lock
violation was detected when flushing objects instance "bla.A-110" to the
data store. This indicates that the object was cocurrently modified in
another transaction.
failed object:
at or.apache...BatchingPreparedStatementManagerImpl.checkUpdateCount(284)

How can I get this concurrent modification if any EM uses different thread
and connection?

I'm using OpenJPA 1.2.0, btw...

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message