Re: Problem with IE 6 throwing exception
Re: Problem with IE 6 throwing exception
- Subject: Re: Problem with IE 6 throwing exception
- From: Chuck Hill <email@hidden>
- Date: Mon, 3 Oct 2005 10:10:58 -0700
On Oct 2, 2005, at 6:00 PM, Greg wrote:
In my main component I have a subcomponent that fetches from the
database to create some menus. In testing IE 6 is causing the
server to throw an exception while Safari and Firefox do not cause
it. I am really struggling to find out why this is occuring.
I am using the default editing context of the session object to
fetch these objects. No editing or saving of objects occurs in the
RR loop of this page.
At least some of that must be false. The error originates in the
constructor of au.com.shoebox.consumer.ConsumerNavigator at line 33.
This line calls
au.com.shoebox.businesslogic.ProductCategory.allOrderedCategoriesWithPro
ducts eventually results in a call to
au.com.shoebox.businesslogic.ProductCategory.orderedChildren which
triggers a fetch (probably firing the products() relationship on a
ProductCategory.
Somewhere in there you do have two editing contexts. And it appears
that you have a connection (in Java) between two objects which live
in different editing contexts. Is it possible that you have a
relation from an EO in the shared EC _out_ to an object not in the
shared EC? This is not allowed. Only relationships from non-shared
to shared EOs are allowed.
As to why this only happens in IE, I cannot guess. It must be
something in your code. Override dispatchRequest in Application and
log out the URI and headers from the requests. What is different
between the IE request and the other requests? Perhaps you are
getting two request from IE where you are expecting only one? Are you
mishandling a favicon.ico request?
I have no object named Accessories which makes it all the more
baffling.
That is, indeed, baffling. I'd suggest logging out the names of all
the models in the model group, and of all the entity names in each
model. You may get a surprise!
If anyone can offer suggestions would be greatly appreciated.
Hope that helps.
Chuck
Regards,
Greg
com.webobjects.foundation.NSForwardException for
java.lang.IllegalStateException: Cannot obtain globalId for an
object which is registered in an other than the databaseContext's
active editingContext, object: Accessories, databaseContext:
com.webobjects.eoaccess.EODatabaseContext@a55e63, object's
editingContext: er.extensions.ERXEC@d38628, databaseContext's
active editingContext: er.extensions.ERXEC@559caa
at com.webobjects.eoaccess.EODatabaseContext._globalIDForObject
(EODatabaseContext.java:4838)
at
com.webobjects.eoaccess.EODatabaseContext.databaseOperationForObject
(EODatabaseContext.java:4955)
at com.webobjects.eoaccess.EODatabaseContext.valuesForKeys
(EODatabaseContext.java:6692)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys
(EOObjectStoreCoordinator.java:341)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$_KeyValueQualifierSupport.schemaBasedQualifierWithRootEntity
(EOQualifierSQLGeneration.java:418)
at er.extensions.ERXPrimaryKeyListQualifier
$KeyValueQualifierSQLGenerationSupport.schemaBasedQualifierWithRootEnt
ity(ERXPrimaryKeyListQualifier.java:61)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$Support._schemaBasedQualifierWithRootEntity
(EOQualifierSQLGeneration.java:165)
at
com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecif
ication(EODatabaseChannel.java:210)
at
com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificati
onEditingContext(EODatabaseContext.java:3196)
at
com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecificatio
n(EODatabaseContext.java:3337)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpec
ification(EOObjectStoreCoordinator.java:539)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecificatio
n(EOEditingContext.java:4053)
at er.extensions.ERXEC.objectsWithFetchSpecification(ERXEC.java:
557)
at
com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID
(EODatabaseContext.java:4251)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlob
alID(EOObjectStoreCoordinator.java:682)
at
com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID
(EOEditingContext.java:3904)
at er.extensions.ERXEC.objectsForSourceGlobalID(ERXEC.java:527)
at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault
(EODatabaseContext.java:4418)
at
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializati
onOfObject(EOAccessArrayFaultHandler.java:70)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead
(_EOCheapCopyMutableArray.java:38)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.count
(_EOCheapCopyMutableArray.java:92)
at
com.webobjects.eocontrol.EOSortOrdering._sortUsingKeyOrderArray
(EOSortOrdering.java:173)
at
com.webobjects.eocontrol.EOSortOrdering.sortedArrayUsingKeyOrderArray(
EOSortOrdering.java:238)
at au.com.shoebox.businesslogic.ProductCategory.orderedChildren
(ProductCategory.java:63)
at
au.com.shoebox.businesslogic.ProductCategory.allOrderedCategories
(ProductCategory.java:129)
at
au.com.shoebox.businesslogic.ProductCategory.allOrderedCategoriesWithP
roducts(ProductCategory.java:135)
at au.com.shoebox.consumer.ConsumerNavigator.<init>
(ConsumerNavigator.java:33)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.webobjects.foundation._NSUtilities.instantiateObject
(_NSUtilities.java:575)
at
com.webobjects.appserver._private.WOComponentDefinition._componentInst
anceInContext(WOComponentDefinition.java:488)
at
com.webobjects.appserver._private.WOComponentDefinition.componentInsta
nceInContext(WOComponentDefinition.java:594)
at
com.webobjects.appserver._private.WOComponentReference._pushComponentI
nContext(WOComponentReference.java:70)
at
com.webobjects.appserver._private.WOComponentReference.appendToRespons
e(WOComponentReference.java:110)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespo
nse(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse
(WODynamicGroup.java:130)
at
com.webobjects.appserver._private.WOComponentContent.appendToResponse(
WOComponentContent.java:43)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespo
nse(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse
(WODynamicGroup.java:130)
at com.webobjects.appserver.WOComponent.appendToResponse
(WOComponent.java:992)
at
com.webobjects.appserver._private.WOComponentReference.appendToRespons
e(WOComponentReference.java:111)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespo
nse(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse
(WODynamicGroup.java:130)
at com.webobjects.appserver.WOComponent.appendToResponse
(WOComponent.java:992)
at
au.com.shoebox.woapplication.ShoeBoxComponent.appendToResponse
(ShoeBoxComponent.java:55)
at au.com.shoebox.woapplication.Main.appendToResponse(Main.java:
40)
at com.webobjects.appserver.WOSession.appendToResponse
(WOSession.java:1198)
at er.extensions.ERXSession.appendToResponse(ERXSession.java:510)
at com.webobjects.appserver.WOApplication.appendToResponse
(WOApplication.java:1418)
at er.extensions.ERXApplication.appendToResponse
(ERXApplication.java:604)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedPage(WOComponentRequestHandler.java:230)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedSession(WOComponentRequestHandler.java:287)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedApplication(WOComponentRequestHandler.java:322)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReq
uest(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ
est(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at er.extensions.ERXApplication.dispatchRequest
(ERXApplication.java:633)
at au.com.shoebox.woapplication.Application.dispatchRequest
(Application.java:296)
at com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:552)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
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