Re: IllegalState Exception
Re: IllegalState Exception
- Subject: Re: IllegalState Exception
- From: Chuck Hill <email@hidden>
- Date: Fri, 14 May 2004 09:30:26 -0700
Have you searched the app log for OutOfMemory? That is the only way to
tell if this is happening.
You say "gives the IllegalStateException error when I try to search for
a records that meet a certain criteria"
What is the criteria? Does this happen every time? The second time?
Sometimes?
Are you doing any locking of your own in the application? Have you
left a lower level EOF object (e.g. EODatabaseContext) locked?
Chuck
On May 14, 2004, at 9:23 AM, Thusitha Jayawardana wrote:
Below is the stack trace for this exception. I have only one model
for this applicaiton. JVM is running OK.
Error: java.lang.IllegalStateException: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@17cec96: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
Reason: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@17cec96: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
Stack trace: File Line# Method Package
-----------------------------------------------------------------------
---------
EODatabaseContext.java 2115 _obtainOpenChannel com.webobjects.eoaccess
EODatabaseContext.java 3176
_objectsWithFetchSpecificationEditingContext com.webobjects.eoaccess
EODatabaseContext.java 3318 objectsWithFetchSpecification
com.webobjects.eoaccess
EOObjectStoreCoordinator.java 535 objectsWithFetchSpecification
com.webobjects.eocontrol
EOEditingContext.java 4012 objectsWithFetchSpecification
com.webobjects.eocontrol
EODatabaseDataSource.java 633 fetchObjects com.webobjects.eoaccess
WODisplayGroup.java 2191 fetch com.webobjects.appserver
D2WListPage.java 196 setDataSource com.webobjects.directtoweb
D2WQueryAllEntitiesPage.java 88 queryAction com.webobjects.directtoweb
NativeMethodAccessorImpl.java NA invoke0 sun.reflect
NativeMethodAccessorImpl.java NA invoke sun.reflect
DelegatingMethodAccessorImpl.java NA invoke sun.reflect
Method.java NA invoke java.lang.reflect
NSKeyValueCoding.java 684 methodValue com.webobjects.foundation
NSKeyValueCoding.java 1160 valueInObject com.webobjects.foundation
NSKeyValueCoding.java 1268 valueForKey com.webobjects.foundation
WOComponent.java 1544 valueForKey com.webobjects.appserver
NSKeyValueCoding.java 498 valueForKey com.webobjects.foundation
NSKeyValueCodingAdditions.java 212 valueForKeyPath
com.webobjects.foundation
WOComponent.java 1605 valueForKeyPath com.webobjects.appserver
WOKeyValueAssociation.java 46 valueInComponent
com.webobjects.appserver._private
WOActiveImage.java 255 invokeAction com.webobjects.appserver._private
WODynamicGroup.java 101 invokeChildrenAction
com.webobjects.appserver._private
WODynamicGroup.java 110 invokeAction com.webobjects.appserver._private
WOForm.java 82 invokeAction com.webobjects.appserver._private
WODynamicGroup.java 101 invokeChildrenAction
com.webobjects.appserver._private
WOGenericContainer.java 23 invokeAction
com.webobjects.appserver._private
WODynamicGroup.java 101 invokeChildrenAction
com.webobjects.appserver._private
WODynamicGroup.java 110 invokeAction com.webobjects.appserver._private
WORepetition.java 196 invokeAction com.webobjects.appserver._private
WODynamicGroup.java 101 invokeChildrenAction
com.webobjects.appserver._private
WOGenericContainer.java 23 invokeAction
com.webobjects.appserver._private
WODynamicGroup.java 101 invokeChildrenAction
com.webobjects.appserver._private
WODynamicGroup.java 110 invokeAction com.webobjects.appserver._private
WOComponentContent.java 31 invokeAction
com.webobjects.appserver._private
WODynamicGroup.java 101 invokeChildrenAction
com.webobjects.appserver._private
WODynamicGroup.java 110 invokeAction com.webobjects.appserver._private
WOComponent.java 950 invokeAction com.webobjects.appserver
WOComponentReference.java 113 invokeAction
com.webobjects.appserver._private
WOSwitchComponent.java 171 invokeAction
com.webobjects.appserver._private
WOComponent.java 950 invokeAction com.webobjects.appserver
WOSession.java 1136 invokeAction com.webobjects.appserver
WOApplication.java 1313 invokeAction com.webobjects.appserver
WOComponentRequestHandler.java 196 _dispatchWithPreparedPage
com.webobjects.appserver._private
WOComponentRequestHandler.java 287 _dispatchWithPreparedSession
com.webobjects.appserver._private
WOComponentRequestHandler.java 322 _dispatchWithPreparedApplication
com.webobjects.appserver._private
WOComponentRequestHandler.java 358 _handleRequest
com.webobjects.appserver._private
WOComponentRequestHandler.java 432 handleRequest
com.webobjects.appserver._private
WOApplication.java 1244 dispatchRequest com.webobjects.appserver
WOWorkerThread.java 167 runOnce com.webobjects.appserver._private
WOWorkerThread.java 248 run com.webobjects.appserver._private
Thread.java NA run java.lang
-----------------------------------------------------------------------
---------
NA : Non applicable, JIT activated
Thanks,
Thusitha
-----Original Message-----
From: Chuck Hill [mailto:email@hidden]
Sent: Thursday, May 13, 2004 7:47 PM
To: Thusitha Jayawardana
Cc: Jake MacMullin; email@hidden
Subject: Re: IllegalState Exception
Well, that last bit was important to tell us. What does the whole
exception stack trace look like? Do you have more than one model? Is
you JVM running out of memory?
Chuck
On May 13, 2004, at 6:11 PM, Thusitha Jayawardana wrote:
Well, the database is running fine and I am able to query the database
via EOModeler. The JDBC driver is installed in the application's
classpath. I am not sure, why it works fine with the EOModeler and
gives the IllegalStateException error when I try to search for a
records that meet a certain criteria from a Direct to Web search form.
Any ideas?
Thanks
Thusitha
-----Original Message-----
From: Jake MacMullin [mailto:email@hidden]
Sent: Thursday, May 13, 2004 5:57 PM
To: Thusitha Jayawardana
Cc: email@hidden
Subject: Re: IllegalState Exception
If this is the first time you've seen this error and the application
has been running fine - I'd say that the database has fallen over. If
this is the first time you've started the application (and you've
never
been able to connect to the DB) - this may well be because the
WebObjects application can not find the JDBC driver that it needs.
To troubleshoot this:
See what connection string is set in the EOModel
Check that the DB is running
Check that the JDBC driver is installed somewhere in your
application's
classpath
HTH,
Jake MacMullin
On 14 May 2004, at 8:49 AM, Thusitha Jayawardana wrote:
java.lang.IllegalStateException: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@171f189: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
_______________________________________________
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.
_______________________________________________
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.