Thanks to Oracle Suport and Didier Laurent a workaround is found to problem:
http://adfbugs.blogspot.com/2009/10/open-locks-in-optimistic-locking-bug.html
By Design optimistick locking locks before doCommit.
In order to remove locks and not loose entities data and to restore entity states, set the configuration parameter jbo.txn.handleafterpostexc to true.
Thanks Didier and Oracle Suport.
Test case:
http://adfbugs.googlecode.com/files/TestLockWorkaroundNew.zip
excellent!
ReplyDeleteDoes this exception happen in SOA High Available cluster or in single node server also?
ReplyDelete