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


On 24-Apr-07, at 11:17 AM, Mike Schrag wrote:

It means the model is not compatible with the EODatabaseContext being used in this instance. I would check to see if you have the same entity name declared in multiple models that might be confusing things. That method can fail if the model.adaptorName() does not match the adaptor().name(), or if you have different connection dictionaries in multiple models under certain circumstances. For grins, I would try removing the jdbc2Info dictionary from the connection dictionaries on all your models and see if that fixes this problem.

ms

On Apr 24, 2007, at 11:07 AM, Alan Zebchuk wrote:

Has anyone ever encountered this error?

After adding a particular relationship to my application, I'm now getting this error the first time I access this relationship. If I then go back and continue using the application, it works fine without any errors.

It's a cross model relationship, but the relationship doesn't even involve the EOModel that's mentioned in the exception.

2007-04-24 10:53:48,840 WARN MyApp[-:12345 1] NSLog (ERXNSLogLog4jBridge.java:41) - <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request: java.lang.IllegalStateException: registeredDatabaseContextForModel () Cannot register the database context for the model MyEOModel [2007-04-24 10:53:48 EDT] <WorkerThread3> java.lang.IllegalStateException: registeredDatabaseContextForModel () Cannot register the database context for the model Peripheral at com.webobjects.eoaccess.EODatabaseContext.registeredDatabaseContextFo rModel(EODatabaseContext.java:1144)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:354)
at com.webobjects.foundation.NSSelector._safeInvokeSelector (NSSelector.java:108) at com.webobjects.eoaccess.EODatabaseChannel.setEntity (EODatabaseChannel.java:113) at com.webobjects.eoaccess.EODatabaseChannel.setCurrentEntity (EODatabaseChannel.java:142) at com.webobjects.eoaccess.EODatabaseChannel._setCurrentEntityAndRelatio nshipWithFetchSpecification(EODatabaseChannel.java:722) at com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecificati onEditingContext(EODatabaseChannel.java:789) at com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpeci fication(EODatabaseChannel.java:215) at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificat ionEditingContext(EODatabaseContext.java:3205) at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecificati on(EODatabaseContext.java:3346) at com.webobjects.eoaccess.EODatabaseContext._fireFault (EODatabaseContext.java:4366) at com.webobjects.eoaccess.EOAccessFaultHandler.completeInitializationOf Object(EOAccessFaultHandler.java:85) at com.webobjects.eocontrol.EOCustomObject.willRead (EOCustomObject.java:1189) at com.webobjects.eocontrol._EOMutableKnownKeyDictionary $Initializer$_GenericRecordBinding.valueInObject (_EOMutableKnownKeyDictionary.java:519) at com.webobjects.eocontrol._EOMutableKnownKeyDictionary $Initializer$_LazyGenericRecordBinding.valueInObject (_EOMutableKnownKeyDictionary.java:559) at com.webobjects.eocontrol.EOCustomObject.storedValueForKey (EOCustomObject.java:1736)



Thanks,

Alan _______________________________________________
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.com

This 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.ca

This email sent to [EMAIL PROTECTED]

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to