• 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
Problems with Stale Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with Stale Data


  • Subject: Problems with Stale Data
  • From: "Chris Hoyt" <email@hidden>
  • Date: Mon, 28 Jan 2008 15:19:01 -0500

One of my applications has started throwing errors due to stale data. such as:

Error: com.webobjects.eoaccess.EOGeneralAdaptorException exception
Reason:
com.webobjects.eoaccess.EOGeneralAdaptorException: lockRowComparingAttributes -- com.webobjects.jdbcadaptor.JDBCChannel: lock operation failed to select any rows

and 

java.lang.IllegalStateException: cannot update primary-key 'assignmentID' form '52067' to '52067' on object

I have had these problems before and they are always related to old cached data, I have gotten around them in the past with editingContext.refetch(); and now I am trying editingContext.refaultAllObjects();

Is there a better way to force data to refresh?
 _______________________________________________
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

  • Follow-Ups:
    • Re: Problems with Stale Data
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: locations of DST information
  • Next by Date: Strange WOServletAdaptor hanging problem
  • Previous by thread: Re: ClassCastException ERXValidationFactory... ??
  • Next by thread: Re: Problems with Stale Data
  • Index(es):
    • Date
    • Thread