• 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: Error - lockRowComparingAttributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error - lockRowComparingAttributes


  • Subject: Re: Error - lockRowComparingAttributes
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Wed, 15 Jan 2003 23:12:39 +0000

From: Art Isbell <email@hidden>
To: email@hidden
Subject: Re: Error - lockRowComparingAttributes
Date: Wed, 15 Jan 2003 09:51:06 -1000

On Wednesday, January 15, 2003, at 07:07  AM, Jonathan Fleming wrote:

Can anyone explain why I'm getting this error? Basically when I have save an object to the database if I attempt to update it and then save it I get this error... has this got to do with locking the editingContext or something?

Error: com.webobjects.eoaccess.EOGeneralAdaptorException
Reason: lockRowComparingAttributes -- com.webobjects.jdbcadaptor.JDBCChannel: lock operation fetched row with different values than snapshot
Stack trace: File Line# Method Package

This looks like an optimistic locking error - i.e., the object updated has been updated in the database by another process since you last fetched it in your process. This has nothing to do with locking an editing context.

So what do i do to clear it? I don't think there are any other processes running but then I'm not sure so how do I debug this problem? The problem only seems to happen when I save something and then go back to edit it and try to save it again. To eliminate it I have to rebuild the application and then the same thing happens again.


Jonathan



Art
http://homepage.mac.com/aisbell/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Error - lockRowComparingAttributes
      • From: Chuck Hill <email@hidden>
    • Re: Error - lockRowComparingAttributes
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: Testing D2J
  • Next by Date: Re: Error - lockRowComparingAttributes
  • Previous by thread: Re: Error - lockRowComparingAttributes
  • Next by thread: Re: Error - lockRowComparingAttributes
  • Index(es):
    • Date
    • Thread