Re: EOModels occasionally loading too slowly?
Re: EOModels occasionally loading too slowly?
- Subject: Re: EOModels occasionally loading too slowly?
- From: Chuck Hill <email@hidden>
- Date: Tue, 3 Nov 2009 16:19:52 -0800
Find where those messages are coming from. This should be completed
BEFORE the app dispatches the first request. I also suspect that you
have done something odd that you don't see as odd. Missing a call to
super someplace? Not using ERXMainRunner?
Chuck
On Nov 3, 2009, at 4:02 PM, Paul Hoadley wrote:
On 04/11/2009, at 8:16 AM, Mike Schrag wrote:
if you have wonder source in your eclipse, you can add some debug
printlns into ERXModelGroup in loadModelsFromLoadedBundles and
resetConnectionDictionaryInModel and see when/what is being loaded.
OK, now I might be onto something—I also ramped up the logging for
ERXModelGroup. It starts off like this (I've cut some long lines
short):
ERXModelGroup.loadModelsFromLoadedBundles: ENTRY
Nov 04 10:18:34 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Loading bundles("ERExtensions", ...
Nov 04 10:18:34 PBF[54322] WARN er.extensions.eof.ERXModelGroup -
Clearing previous class descriptions
ERXModelGroup.resetConnectionDictionaryInModel: ENTRY
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Adjusting erprototypes
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
New Connection Dictionary for erprototypes: {...
ERXModelGroup.resetConnectionDictionaryInModel: ENTRY
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Adjusting erprototypes
ERXModelGroup.resetConnectionDictionaryInModel: ENTRY
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Adjusting Bookings
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
New Connection Dictionary for Bookings: {...
ERXModelGroup.resetConnectionDictionaryInModel: ENTRY
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Adjusting Bookings
ERXModelGroup.resetConnectionDictionaryInModel: ENTRY
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Adjusting ContactSet
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
New Connection Dictionary for ContactSet: {...
ERXModelGroup.resetConnectionDictionaryInModel: ENTRY
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Adjusting ContactSet
So the in-model connection dictionaries are being replaced with the
global overrides from Properties. So at that point it's handled 3
of the 8 models, and none of those is the model containing the
"Status" entity. The very next line is the error:
Nov 04 10:18:35 PBF[54322] WARN NSLog -
<er.extensions.appserver.ERXDirectActionRequestHandler>: Exception
while handling action named "default" on action class
"null" :java.lang.IllegalArgumentException: An object store for the
entity "Status" could not be found. Verify that the entity is
defined in an EOModel, and that the model is installed properly. To
see what models are loaded, you can try printing the return value of
EOModelGroup.defaultGroup() in your application.
And then it carries on adjusting the remaining models:
ERXModelGroup.resetConnectionDictionaryInModel: ENTRY
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Adjusting PBFAuth
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
New Connection Dictionary for PBFAuth: {...
ERXModelGroup.resetConnectionDictionaryInModel: ENTRY
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Adjusting PBFAuth
ERXModelGroup.resetConnectionDictionaryInModel: ENTRY
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Adjusting Auth
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
New Connection Dictionary for Auth: {...
ERXModelGroup.resetConnectionDictionaryInModel: ENTRY
Nov 04 10:18:35 PBF[54322] DEBUG er.extensions.eof.ERXModelGroup -
Adjusting Auth
It's the Auth model there that contains "Status". So presumably it
hasn't had its connection dictionary adjusted by the time that page
is ready to load. Again, on some runs it's fine (maybe the CD gets
adjusted just in time), and on others it fails like this. Any advice?
--
Paul.
w http://logicsquad.net/
h http://paul.hoadley.name/
_______________________________________________
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
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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