RE: Strange EOF exception
RE: Strange EOF exception
- Subject: RE: Strange EOF exception
- From: "Pierre Bernard" <email@hidden>
- Date: Mon, 26 Jan 2004 09:34:29 +0100
- Thread-topic: Strange EOF exception
Ben,
Nope. Deleting an updated EO in one event works as expected.
The problem occurs when the updated EO is deleted after there has been a failed attempt to save the changes. The editing context seems to be left in a dirty state where the EO is marked as both deleted and updated.
In the cleanup after the second call to saveChanges() the forgetObject() method is called. I guess this is because the EC knows it no longer has to keep track of the object as it has been deleted. Later on in the didSaveChanges() the method _setRecordIsInitialized() fails with a NullPionterException. My best guess is that this method attempts the refresh updated objects. Our EO being marked as both deleted and updated is no longer available at this point in time. Thus the failure.
Best,
Pierre
-----Original Message-----
From: Ben Trumbull [mailto:email@hidden]
Sent: Sunday, January 25, 2004 12:28 AM
To: Pierre Bernard
Cc: email@hidden; WebObjects Developers; Apple WO Dev
Subject: RE: Strange EOF exception
At 14:48 +0100 1/23/04, Pierre Bernard wrote:
>I have filed this as bug #3538032 on radar.
Does this only occur in the case when you update an EO and delete it
(or change an EO pending deletion) within the same event (saveChanges
operation) ?
--
-Ben
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
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.