• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cannot register the database context for the model?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot register the database context for the model?


  • Subject: Re: Cannot register the database context for the model?
  • From: Mike Schrag <email@hidden>
  • Date: Tue, 24 Apr 2007 11:17:32 -0400

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.registeredDatabaseContextFor Model(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._setCurrentEntityAndRelation shipWithFetchSpecification(EODatabaseChannel.java:722)
at com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecificatio nEditingContext(EODatabaseChannel.java:789)
at com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecif ication(EODatabaseChannel.java:215)
at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificati onEditingContext(EODatabaseContext.java:3205)
at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecificatio n(EODatabaseContext.java:3346)
at com.webobjects.eoaccess.EODatabaseContext._fireFault (EODatabaseContext.java:4366)
at com.webobjects.eoaccess.EOAccessFaultHandler.completeInitializationOfO bject(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@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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cannot register the database context for the model?
      • From: Alan Zebchuk <email@hidden>
References: 
 >Cannot register the database context for the model? (From: Alan Zebchuk <email@hidden>)

  • Prev by Date: Cannot register the database context for the model?
  • Next by Date: Re: strange SQL error
  • Previous by thread: Cannot register the database context for the model?
  • Next by thread: Re: Cannot register the database context for the model?
  • Index(es):
    • Date
    • Thread