• 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: Trying to clear a dead-lock of some type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to clear a dead-lock of some type


  • Subject: Re: Trying to clear a dead-lock of some type
  • From: Sacha Mallais <email@hidden>
  • Date: Thu, 19 May 2005 13:30:41 -0700

On May 19, 2005, at 1:06 pm, WebObjects wrote:

This is one error, a frustrating one. I'm locking the rows in the EO model
in just about every possible way, including the Pkey. What's the real
secret to this one?


Hmm... I assume this means you are setting the locking attributes in the model. These are for optimistic locking control, and will not themselves cause a deadlock.


com.webobjects.eoaccess.EOGeneralAdaptorException:
updateValuesInRowDescribedByQualifier --
com.webobjects.jdbcadaptor.JDBCChannel: method updated 2 rows, it is only
permitted to update 1 row


This indicates, as the message says, that you have 2 rows with the same values (the same values, that is, for those attributes you have marked as locking attributes in the model). This means that either you have deselected the PK from the locking attributes or your database is corrupted (the PK is not the PK, since you obviously cannot have 2 identical PKs).


sacha


-- Sacha Michel Mallais - 400 lb. chimp Global Village Consulting Inc.: http://www.global-village.net/ Choke on that, causality! -- the Professor, "Futurama"

_______________________________________________
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: 
 >Re: Trying to clear a dead-lock of some type (From: WebObjects <email@hidden>)

  • Prev by Date: Re: Trying to clear a dead-lock of some type
  • Next by Date: Re: Trying to clear a dead-lock of some type
  • Previous by thread: Re: Trying to clear a dead-lock of some type
  • Next by thread: Re: Trying to clear a dead-lock of some type
  • Index(es):
    • Date
    • Thread