Re: Cannot register the database context for the model?
Re: Cannot register the database context for the model?
- Subject: Re: Cannot register the database context for the model?
- From: Alan Zebchuk <email@hidden>
- Date: Wed, 25 Apr 2007 10:42:17 -0400
Unfortunately they're all true, so I'm still at a loss as to what's
causing this.
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.
Alan
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.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40protocolis.ca
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40protocolis.ca
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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