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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to