A project using TopLink is getting the following exception randomly. Any suggestion on what might cause the exception?
Local Exception Stack:
Exception [TOPLINK-5004] (OracleAS TopLink - 10g (9.0.4.4) (Build 040627)):
oracle.toplink.exceptions.OptimisticLockException
Exception Description: An attempt was made to update the object
[com.ford.mss.wdmo.wiqs.business.model.VehicleConfigurationOptionEconomics
(CR Key: 0; Row Num: 0; Code: ; Desc: ;)], but it has no version number in the
identity map.
It may not have been read before the update was attempted.
Class> com.ford.mss.wdmo.wiqs.business.model.VehicleConfigurationOptionEconomics
Primary Key> [null, 0]
The problem seems to occur after certain sequence of operation: update an object
in a graph and commit; update another object in a graph and commit; fails in
commit when trying to update the graph by inserting a new object in the graph.
The problem does not occur whey only trying to update the graph by inserting the
new object in the graph.
It appears that some 'empty object' (i.e. PK null, other attributes not set) got
registered in the UnitOfWork, though we have not determined how it happened.
Just wondering if anyone has experienced the exception or knows what can cause the exception...
I appreciate your comments.
Haiwei