users@glassfish.java.net

Re: glassFishv2ur2:JDO76406: Concurrent access exception:

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 May 2008 19:53:51 PDT

IIRC the app simulates several client calling the entity in parallel using version consistency (check sun-ejb-jar.xml). Version consistency is implemented by caching data between transactions to avoid reload (ejbLoad call) on every transaction. If 2 or more threads try to update the same CMP, one succeeds, but all others fail because by their commit time, the version value in the database doesn't match the value that is in the CMP.

The app has been written to retry such failed calls. So when you run the app without any changes, the exceptions are there in the log, but the app itself succeeds.

HTH,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=274457