Re: Attempt to insert null key into a com.webobjects.foundation.NSMutableDictionary
Re: Attempt to insert null key into a com.webobjects.foundation.NSMutableDictionary
- Subject: Re: Attempt to insert null key into a com.webobjects.foundation.NSMutableDictionary
- From: Jonathan Rochkind <email@hidden>
- Date: Wed, 14 May 2003 15:25:16 -0500
Posting the entire stack trace from the error might help some of us guess
what it is.
But here are two guesses:
1) Flattened relationships, in my experience, do not work accross models.
Are both the entities involved in the same model, or are they in different
models? In my experience, if they are in different models, it won't work,
you can't used the flattened relationship feature. (Although if the
connection dictionaries for both models are EXACTLY the same, it MIGHT work).
2) Be careful about editing contexts. You can't make relationships from an
object in one EC to an object in another. If you are only using the
standard session default EC, this isn't an issue, but if you are dealing
with multiple ECs, it could be. Be careful, make sure you fault an EO into
the proper EC before putting it in relation to another EC (or trying to
remove it from relation with another EC, potentially!).
--Jonathan
At 01:57 PM 5/14/2003 -0600, Jevon Hills wrote:
I'm having some problems and the only Info I get is Attempt to insert
null key into a com.webobjects.foundation.NSMutableDictionary.
I have looked at a the other articles/ pages I could find, but I am
still unable to determine why I get this error.
I have a flattened relationship between CollectionDescription and
Content.
I am attempting to remove elements from this relationship by selecting
a Content obj from a list, finding which CollectionDescription it is in
and then using the following
collectionDesc.removeObjectFromBothSidesOfRelationshipWithKey(tempCont,"
collections_content");
This appears to work, but when I call
aCollection.editingContext().saveChanges();
I get the above error.
I have an editing context to use, and as far as I know both my objects
are != null
I have checked the EOModel, but cant see anything wrong with it.
Any suggestions
Jevon K. Hills
Developer - Zymeta Media Promotion Systems
_______________________________________________
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.
_______________________________________________
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.