Re: Optimistic locking failure on insert
Re: Optimistic locking failure on insert
- Subject: Re: Optimistic locking failure on insert
- From: email@hidden
- Date: Tue, 14 Mar 2006 11:57:03 -0800
No problem, just use your SCC package to compare the current code to
the last known good version and see what has changed.
Oh, wait.....
<ducking and running>
janine :)
On Mar 13, 2006, at 10:09 PM, Ian Joyner wrote:
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
_______________________________________________
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