Optimistic locking failure on insert
Optimistic locking failure on insert
- Subject: Optimistic locking failure on insert
- From: Ian Joyner <email@hidden>
- Date: Tue, 14 Mar 2006 17:09:16 +1100
I have been running this model for six months and saving this entity
just fine. Suddenly, I am getting an optimistic locking failure when
doing an insert of a new record (that's right insert, not update). In
fact is the trace below, I show that the offending record is in the
editing contexts insertedObjects and it has a EOTemporaryGlobalID
which means it has not been written to the database yet.
No SQL commands are being executed in the SQL trace. I have turned
off locking on every attribute for this entity in EOModeler. Other
entities are still saving fine. So what's going on? How can I get
around this problem?
[2006-03-14 16:53:56 EST] <AWT-EventQueue-0>
xxx.client.Member_interface_controller save inserted ({values =
{details = <com.webobjects.foundation.NSKeyValueCoding$Null>;
begin_date = 2006-03-14 05:53:51 Etc/GMT; position =
<com.webobjects.foundation.NSKeyValueCoding$Null>; member =
"<com.sportstec.member.client.Member f1156e <EOTemporaryGlobalID: 0 0
-64 -88 0 7 0 0 -15 83 1 0 0 0 1 9 -9 81 65 -102 58 -107 -26 -116>>";
end_date = <com.webobjects.foundation.NSKeyValueCoding$Null>; group =
"<com.sportstec.group.client.Group 47545b groups =
("<com.sportstec.group.client.Group_Member 8dacbb
<EOTemporaryGlobalID: 0 0 -64 -88 0 7 0 0 -15 83 2 0 0 0 1 9 -9 81 65
-102 58 -107 -26 -116>>"); person = "null"; title =
"<com.webobjects.eocontrol.EOGenericRecord dd1d62
_EOIntegralKeyGlobalID[Title (java.lang.Integer)1]>"; telephones =
(); modification_date = 2006-03-14 05:53:51 Etc/GMT; }; this =
"<com.sportstec.member.client.Member f1156e <EOTemporaryGlobalID: 0 0
-64 -88 0 7 0 0 -15 83 1 0 0 0 1 9 -9 81 65 -102 58 -107 -26 -116>>"; })
[2006-03-14 16:53:56 EST] <AWT-EventQueue-0>
xxx.client.Member_interface_controller save updated (Gq)
[2006-03-14 16:53:56 EST] <AWT-EventQueue-0>
xxx.client.Member_interface_controller save deleted ()
[2006-03-14 16:53:56 EST] <AWT-EventQueue-0>
xxx.client.Member_interface_controller EditingContext saveChanges
failed Server exception: Optimistic locking failure: The object with
global ID <EOTemporaryGlobalID: 0 0 -64 -88 0 7 0 0 -15 83 1 0 0 0 1
9 -9 81 65 -102 58 -107 -26 -116> has been changed by another client
Thanks
Ian Joyner
Sportstec
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden