strange Exception while trying to delete EO...
strange Exception while trying to delete EO...
- Subject: strange Exception while trying to delete EO...
- From: "Thomas Engeroff" <email@hidden>
- Date: Wed, 11 Feb 2004 23:41:57 +0100
Dear List,
this is really strange!
I have a method which is called in Application.java after the WO app is
started.
Actually it's a separate thread which is called 30 seconds after the app has
been started.
It's supposed to delete certain Objects from a table of my Database (MySQL).
I have done similar tasks like this several times before, but this time it
just doesn't wanna work.
I do the following:
I use a WODisplaygroup to search for the row (the object) I want to delete.
I get the EOEditingContext of the eo like this: ec = myEO.editingContext();
The context is ok and not null. Then I delete the eo from the context like
this:
ec.deleteObject(myEO);
After that I try to save the ec and get the following exception.
ec.saveChanges();
I also tried to remove the eo from the DisplayGroup and then called
saveChanges, which produced the exact same Error!
Another time I locked the ec before removing and saving the Object. Same
problem!
I have no idea what is going on! Please help!
Any help is greatly appreciated!!!
Thanks,
Thomas E.
--> the Exception:
com.webobjects.eoaccess.EOGeneralAdaptorException:
deleteRowDescribedByQualifierEntity --
com.webobjects.jdbcadaptor.JDBCChannel: method failed to delete row in
database
at
com.webobjects.eoaccess.EODatabaseContext._exceptionWithDatabaseContextInfor
mationAdded(EODatabaseContext.java:4657)
at
com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.j
ava:6365)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContex
t(EOObjectStoreCoordinator.java:411)
at
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:
3148)
at
xmlImport.XMLFileToEOConverter.convertImmoObjectToEO(XMLFileToEOConverter.ja
va:217)
at
xmlImport.XMLFileToEOConverter.startProcessing(XMLFileToEOConverter.java:120
)
at
xmlImport.XMLFileToEOConverter.<init>(XMLFileToEOConverter.java:55)
at
xmlImport.AutomatedXMLImport.checkForNewZipInUploadFolder(AutomatedXMLImport
.java:101)
at xmlImport.AutomatedXMLImport.run(AutomatedXMLImport.java:59)
at java.lang.Thread.run(Thread.java:534)
2004-02-11 23:25:29,531 ERROR ImmoShopInternational[-:2734 0]
AutomatedXMLImport (AutomatedXMLImport.java:67) - Error --
com.webobjects.eoaccess.EOGeneralAdaptorException:
deleteRowDescribedByQualifierEntity --
com.webobjects.jdbcadaptor.JDBCChannel: method failed to delete row in
database
_______________________________________________
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.