cant analyse illegalstateexception
cant analyse illegalstateexception
- Subject: cant analyse illegalstateexception
- From: Wolfram Stebel <email@hidden>
- Date: Wed, 17 May 2006 13:09:32 +0200
- Thread-topic: cant analyse illegalstateexception
Hi List,
i have a problem to analyse the following error:
java.lang.IllegalStateException: A valid global ID could not be obtained for
entity named Class_Hour, relationship named location_Rooms, primary key
dictionary {fk_location_room = 5; fk_class = 26; }
Stack:
EODatabaseContext.java 5062
databaseOperationForIntermediateRowFromSourceObject
com.webobjects.eoaccess
EODatabaseContext.java 5086
recordDeleteForIntermediateRowFromSourceObjectRelationshipDestinationObject
com.webobjects.eoaccess
EODatabaseContext.java 5139
nullifyAttributesInRelationshipSourceObjectDestinationObject
com.webobjects.eoaccess
EODatabaseContext.java 5166
nullifyAttributesInRelationshipSourceObjectDestinationObjects
com.webobjects.eoaccess
EODatabaseContext.java 6056 recordChangesInEditingContext
com.webobjects.eoaccess
EOObjectStoreCoordinator.java 412 saveChangesInEditingContext
com.webobjects.eocontrol
EOEditingContext.java 3187 saveChanges com.webobjects.eocontrol
OneClassPage.java 166 deleteClass
....
Code in deleteClass:
theClass.validateForDelete (); // does not raise!
ec.deleteObject ( theClass );
ec.saveChanges ();
The entities are:
Relations: Class<-->>ClassHour<<-->location_Room<<-->Location
<<-------------------->
Optional: opt opt opt
opt
Delete Rule: casc-> null <-casc
null
"fk_location_room" and "fk_class" from the error primary key dictionary are
both in "ClassHour".
The relation "location_Rooms" from the error message is from "Class" to
"Class_Hours.location_Room", "Class_Hours" is from "Class" to "ClassHours"
When i delete a "Class" with a "ClassHour" assigned, that points to a
"Location" and a "location_Room" i get the above mentioned error. (A
"location_Room" can only be assigned when a "Location" is assigned before.)
Any ideas for a solution?
Wolfram
_______________________________________________
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