Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OptimisticLockException, no version number in identity map

405173Aug 7 2005 — edited Aug 10 2005
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2005
Added on Aug 7 2005
1 comment
1,776 views