Looks like I was wrong: two users tried to save concurrently; they both locked their OSC's all right, but then I've got an exception
===
Caused by: java.lang.IllegalStateException: Failed to lock object:com.webobjects.eoaccess.EODatabaseContext@15e1e22b with gid:_EOIntegralKeyGlobalID[DBAuction (java.lang.Integer)1000409]
at com.webobjects.eoaccess.EODatabaseContext.lockObjectWithGlobalID(EODatabaseContext.java:3287)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.lockObjectWithGlobalID(EOObjectStoreCoordinator.java:525)
at com.webobjects.eocontrol.EOEditingContext.lockObjectWithGlobalID(EOEditingContext.java:4237)
at com.webobjects.eocontrol.EOEditingContext.lockObject(EOEditingContext.java:4461)
at er.extensions.eof.ERXEC.lockObject(ERXEC.java:1376)
at er.extensions.eof.ERXEC$lockObject$9.call(Unknown Source)
at components.sharedparts.BidsEditor$_addPriceOffer(BidsEditor.groovy:411) // this is the lockObject(tempau) // *
===
What am I doing wrong? Should I _not_ lock the objects I am working with when saving?
Thanks,
OC
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Help/Unsubscribe/Update your Subscription: