• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Optimistic locking failure on insert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Optimistic locking failure on insert


  • Subject: Re: Optimistic locking failure on insert
  • From: "Jerry W. Walker" <email@hidden>
  • Date: Tue, 14 Mar 2006 16:59:13 -0500

Oooh!!!  What a shot!   :-)

Regards,
Jerry

On Mar 14, 2006, at 2:57 PM, email@hidden wrote:

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
_______________________________________________

--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems


    email@hidden
    203 278-4085        office



_______________________________________________
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


References: 
 >Optimistic locking failure on insert (From: Ian Joyner <email@hidden>)
 >Re: Optimistic locking failure on insert (From: email@hidden)

  • Prev by Date: Re: Generating reports in excel?
  • Next by Date: Re: boolean changing value in a RR loop
  • Previous by thread: Re: Optimistic locking failure on insert
  • Next by thread: Re: Optimistic locking failure on insert
  • Index(es):
    • Date
    • Thread