Re: [SOLVED] App hangs on 1st access to DB
Re: [SOLVED] App hangs on 1st access to DB
- Subject: Re: [SOLVED] App hangs on 1st access to DB
- From: Chuck Hill <email@hidden>
- Date: Thu, 25 Mar 2004 14:36:20 -0800
I forget, was this in the Application constructor? If so that might
explain the silent death.
Chuck
On Mar 25, 2004, at 1:46 PM, Baiss Eric Magnusson wrote:
I added:
NSLog.allowDebugLoggingForGroups( NSLog.DebugGroupSQLGeneration );
NSLog.allowDebugLoggingForGroups( NSLog.DebugGroupDatabaseAccess );
And saw:
com.webobjects.eoaccess.EOObjectNotAvailableException:
objectMatchingValueForKeyEntityNamed: No Regions found with key
regionName matching Seattle_&_Eastside
Why, (throw mud on face):
I did not put a try-catch around the
<EOUtilities.objectMatchingKeyAndValue> call because the regions were
hard-coded DB values.
But, there was a 1 character difference between the default region
name in the DB on the development box and the deploy box.
Thanks to Chuck for the prodding, and to Marc Repass for answering Kaj
Helner's question about how to show the generated SQL.
Footnote:
Curious that no death was reported, that there was no server log
entry, and the app just hung with no HTML sent at all.
On Mar 24, 2004, at 6:11 PM, Chuck Hill wrote:
Can you run the equivalent SQL for that? Perhaps exporting and
re-importing the data might help. Can you tell if a request is being
made of the DB server? Is it hanging there, or before or after the
select?
Chuck
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.