Problems with Stale Data
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