I encountered OptimisticLockException when running JPA app wich
enables session cache. I looked into the runtime and found that
the cause of OptimisticLockException seems to be related to the
session cache. and when I disabled session cache the app ran
I think this issue is related to the following.
and this problem is resolved by EclipseLink1.0.1
and the attached file is a simple sample(a SE app) for reproducing