• 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
Cannot register the database context for the model?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot register the database context for the model?


  • Subject: Cannot register the database context for the model?
  • From: Alan Zebchuk <email@hidden>
  • Date: Tue, 24 Apr 2007 11:07:42 -0400

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.registeredDatabaseContextForMo del(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._setCurrentEntityAndRelationsh ipWithFetchSpecification(EODatabaseChannel.java:722)
at com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecificationE ditingContext(EODatabaseChannel.java:789)
at com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecific ation(EODatabaseChannel.java:215)
at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecification EditingContext(EODatabaseContext.java:3205)
at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification( EODatabaseContext.java:3346)
at com.webobjects.eoaccess.EODatabaseContext._fireFault (EODatabaseContext.java:4366)
at com.webobjects.eoaccess.EOAccessFaultHandler.completeInitializationOfObj ect(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

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

  • Follow-Ups:
    • Re: Cannot register the database context for the model?
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: strange SQL error
  • Next by Date: Re: Cannot register the database context for the model?
  • Previous by thread: Re: strange SQL error
  • Next by thread: Re: Cannot register the database context for the model?
  • Index(es):
    • Date
    • Thread