• 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
Re: Null Pointer Exception in EOEditingContext._setRecordIsInitialized
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >RE: Null Pointer Exception in EOEditingContext._setRecordIsInitialized (From: <email@hidden>)

  • Prev by Date: RE: Null Pointer Exception in EOEditingContext._setRecordIsInitialized
  • Next by Date: WO/Javascript
  • Previous by thread: RE: Null Pointer Exception in EOEditingContext._setRecordIsInitialized
  • Next by thread: Is there a way to send email(s) from a web object app?
  • Index(es):
    • Date
    • Thread