Hi Paul, On 13/08/2012, at 07:14, Paul Hoadley <[email protected]> wrote:
> Hi Henrique, > > I am using a TemporaryEditingContext to test a group of related EOs. To try > and debug a test failure, I am saving the EC after the creation of each new > EO. At the point where I'm getting an IllegalArgumentException, the only new > EO inserted into the EC is a subclass by horizontal inheritance of a parent > EO. Inserting the subclass and saving throws this: > Could you describe the primary key(s) used in these entities? Is it a composite primary key? Is it an Integer field? > Caused by: java.lang.IllegalArgumentException: Attempt to insert null object > into an com.webobjects.foundation.NSMutableDictionary. > at > com.webobjects.foundation.NSMutableDictionary.setObjectForKey(NSMutableDictionary.java:68) > at > com.webobjects.eoaccess.EODatabaseContext.commitChanges(EODatabaseContext.java:6348) > at > com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:386) > at > com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192) > at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1110) > at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1032) > > As noted, the only relevant difference I can see is the inheritance. Would > you expect the TemporaryEditingContext (or the memory adaptor) to have a > problem with (horizontal) inheritance? > Probably. I've created a sample model here to replicate your problem. I still need more information since the tests I wrote worked as expected. Cheers, Henrique _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
