Re: Null Pointer Exception in EOEditingContext._setRecordIsInitialized
Re: Null Pointer Exception in EOEditingContext._setRecordIsInitialized
- Subject: Re: Null Pointer Exception in EOEditingContext._setRecordIsInitialized
- From: Sébastien Gruhier <email@hidden>
- Date: Thu, 6 Jan 2005 17:01:17 +0100
Ok I am not sure about the version of WO on my server, I will apply
latest updates
Thank you
Seb
Le 6 janv. 05, à 11:22, <email@hidden> a écrit :
Hi!
I have seen this occur when trying to propagate to the database a
deletion of a modified object which failed saving its changes over
validation.
The bug is triggered with the following:
1. Fetching an existing object from the database
2. Marking the object a changed. Either by calling its willChange()
method or making an actual change
3. Attempting the saveChanges(). If this fails during validation, the
bug is triggered by the subsequent steps
4. The object is then marked for deletion
5. Saving is attempted again
The first saveChanges does not go through to the database. It fails at
validation time. The second one does. The exception is thrown after
the actual commit.
I believe this was fixed in one of the recent updates.
Pierre
-----Original Message-----
From: webobjects-dev-bounces+pierre.bernard=email@hidden
[mailto:webobjects-dev-
bounces+pierre.bernard=email@hidden]On Behalf Of Sébastien
Gruhier
Sent: Wednesday, January 05, 2005 10:14 PM
To: WebObjects Dev Apple
Subject: Null Pointer Exception in
EOEditingContext._setRecordIsInitialized
Hello
I have an error that some guys got it before me but I didn't read any
solution in the mailing list.
In a saveChanges of an EC I have a null pointer exception.
java.lang.NullPointerException at
com.webobjects.eocontrol.EOEditingContext._setRecordIsInitialized(EOEdi
tingContext.java:2592) at
com.webobjects.eocontrol.EOEditingContext._clearOriginalSnapshotAndInit
ializeRec(EOEditingContext.java:2584) at
com.webobjects.eocontrol.EOEditingContext.didSaveChanges(EOEditingConte
xt.java:3000) at
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.
java:3156) at LFItemsEditor.removeItem(LFItemsEditor.java:134) at
Is anybody has a solution or workaround for this?
Thanks
Seb
**********************************************************************
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
**********************************************************************
_______________________________________________
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