The relationship that's actually causing this is a relationship between 2 other models in the project, not the one in the error message.
Alan On 24-Apr-07, at 4:08 PM, Mike Schrag wrote:
I think you chopped the rest of that exception off, but where that exception ends up in your code, you should have access to an editingContext() the one from the object you're talking to there. Print out editingContext.rootObjectStore() and see what type of object it is.If it's an EODatabaseContext, cast it out and print out databaseContext.adaptor().name(), adaptor().canServiceModel (EOModelGroup.defaultModelGroup().modelNamed (themodelthatisfailing)). Then print out adaptor ().connectionDictionary() and thatModel.connectionDictionary() and make sure the keys "URL", "username", "password", "driver", "plugin" all match. These are basically the determining factors for that call to succeed. One of these things will be not true.ms On Apr 24, 2007, at 3:54 PM, Alan Zebchuk wrote:Yes the error message was edited. The model it actually refers to does exist.It's very odd that it only happens when I first try to access this relationship, and after that everything works fine.All of the model paths are correct. Alan On 24-Apr-07, at 3:14 PM, Mike Schrag wrote:All the entity names are unique. The model.adaptorName() is "JDBC" and the dabase context's adapter().name() is "JDBC". I've also removed the jdbc2Info dictionaries from all the models. However, the error still occurs.Do you actually have a model named MyEOModel or was that error message edited? That sounds a little suspicious given that MyEOModel is the default name Entity Modeler makes for a new model. I would enumerate in code in your app the default mode group's models, print out all the names, and the locations of the model folder and make sure the models are what you think/expect them to be.Alanms _______________________________________________ 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/azebchuk% 40protocolis.caThis 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/mschrag% 40mdimension.comThis 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/azebchuk% 40protocolis.caThis email sent to [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]
