• 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: Cannot delete object that has not been fetched from the database
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot delete object that has not been fetched from the database


  • Subject: Re: Cannot delete object that has not been fetched from the database
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Wed, 08 Dec 2010 00:23:57 -0500

Thanks for all the responses.  I followed Chuck's advise.  This object model was created in the days of EOModeler.  I recreated the many-to-many and 1-to-many relationships, etc. using the Entity Modeler in WOLips, And now everything works! Problem solved!

Thanks



On Dec 7, 2010, at 4:04 PM, Farrukh Ijaz wrote:

> Hi Ricardo,
>
> Can you share what was above parent.delete()? Perhaps you have invalidated the parent prior to invoke saveChanges(). I don't thing the problem is happening for to-many relationship.
>
> Farrukh
>
> Sent from my iPhone
>
> On 7, دسمبر 2010, at 9:14 PM, "Ricardo J. Parada" <email@hidden> wrote:
>
>>
>> I have some of the to-many relationships set to cascade when the parent is deleted:
>>
>> parent.delete();
>> parent.editingContext().saveChanges();
>>
>> and that seems to trigger an exception as shown below.  Does this mean that I have to fault in the to-many relationships first?  Or am i doing something else wrong? :-)   I'm using Wonder.  Anyways, thanks for any guesses / advise.
>>
>> Caused by: java.lang.IllegalStateException: recordDeleteForObject: com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@488d12e4 failed to find a snapshot for EO with Global ID:_EOIntegralKeyGlobalID[ReportSpecificationColumn (java.lang.Integer)10297] that has been deleted from er.extensions.eof.ERXECer.extensions.eof.ERXEC@7daf3aa0. Cannot delete an object that has not been fetched from the database
>> 	at com.webobjects.eoaccess.EODatabaseContext.recordDeleteForObject(EODatabaseContext.java:4732)
>> 	at com.webobjects.eoaccess.EODatabaseContext.recordChangesInEditingContext(EODatabaseContext.java:5890)
>> 	at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373)
>> 	at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
>> 	at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1085)
>> 	at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1007)
>> 	at com.mpv.webcomponents.MPVWOSession.saveChangesWithUserMessages(MPVWOSession.java:579)
>> 	... 135 more
>>
>> _______________________________________________
>> 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

 _______________________________________________
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

  • Follow-Ups:
    • Re: Cannot delete object that has not been fetched from the database
      • From: David Avendasora <email@hidden>
References: 
 >Cannot delete object that has not been fetched from the database (From: "Ricardo J. Parada" <email@hidden>)
 >Re: Cannot delete object that has not been fetched from the database (From: Farrukh Ijaz <email@hidden>)

  • Prev by Date: Re: JVMOptions in ClassPath.txt files
  • Next by Date: Re: Running through Apache, and testing in VMWare/Windows
  • Previous by thread: Re: Cannot delete object that has not been fetched from the database
  • Next by thread: Re: Cannot delete object that has not been fetched from the database
  • Index(es):
    • Date
    • Thread