my guess was invalidating objects in some nasty way

On Dec 7, 2010, at 1:31 PM, Chuck Hill wrote:

> I will go with "doing something wrong".  I am not sure what.  Is there a 
> referential integrity problem in your database?
> 
> Chuck
> 
> 
> On Dec 7, 2010, at 10:14 AM, Ricardo J. Parada 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.eodatabasecont...@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.er...@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 protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>> 
>> This email sent to [email protected]
> 
> -- 
> Chuck Hill             Senior Consultant / VP Development
> 
> Practical WebObjects - for developers who want to increase their overall 
> knowledge of WebObjects or who are trying to solve specific problems.    
> http://www.global-village.net/products/practical_webobjects
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 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/mschrag%40pobox.com
> 
> This email sent to [email protected]

 _______________________________________________
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