Re: Occasional EOObjectNotAvailableException
Re: Occasional EOObjectNotAvailableException
- Subject: Re: Occasional EOObjectNotAvailableException
- From: "Lawson, Ben" <email@hidden>
- Date: Tue, 24 Nov 2009 10:11:28 +0100
- Acceptlanguage: en-US
- Thread-topic: Occasional EOObjectNotAvailableException
WebObjects is embedded, and here's the full stack trace: :)
2009-11-23 17:27:46,048 FATAL -[7345:2020 3] Application (?:?) - Application -1 handled exception: No com.chello.dbkit.eo.CBPageTemplate found with globalID: <PageTemplate: [templateId: '1011'] >
er.extensions.eof.ERXDatabaseContextDelegate$ObjectNotAvailableException: No com.chello.dbkit.eo.CBPageTemplate found with globalID: <PageTemplate: [templateId: '1011'] >
at er.extensions.eof.ERXDatabaseContextDelegate.databaseContextFailedToFetchObject(ERXDatabaseContextDelegate.java:295)
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._safeInvokeMethod(NSSelector.java:122)
at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:167)
at com.webobjects.eoaccess.EODatabaseContext._fireFault(EODatabaseContext.java:4205)
at com.webobjects.eoaccess.EOAccessFaultHandler.completeInitializationOfObject(EOAccessFaultHandler.java:89)
at com.webobjects.eocontrol.EOCustomObject.willRead(EOCustomObject.java:1172)
at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_GenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:570)
at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
at com.chello.eof.CMGenericRecord.storedValueForKey(Unknown Source)
at com.chello.dbkit.eo._CBTemplate.name(Unknown Source)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636)
at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
at com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)
at com.chello.eof.CMGenericRecord.valueForKey(Unknown Source)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com.webobjects.eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1588)
at com.chello.eof.CMGenericRecord.valueForKeyPath(Unknown Source)
at com.webobjects.foundation.NSKeyValueCodingAdditions$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
at com.webobjects.eocontrol.EOSortOrdering$_SingleSortValueHolder.<init>(EOSortOrdering.java:415)
at com.webobjects.eocontrol.EOSortOrdering._sortUsingKeyOrderArray(EOSortOrdering.java:194)
at com.webobjects.eocontrol.EOSortOrdering.sortedArrayUsingKeyOrderArray(EOSortOrdering.java:249)
at er.extensions.foundation.ERXArrayUtilities.sortedArraySortedWithKey(ERXArrayUtilities.java:922)
at er.extensions.foundation.ERXArrayUtilities.sortedArraySortedWithKey(ERXArrayUtilities.java:908)
at com.chello.eof.kvcoding.CMArrayUtilities.sortedArraySortedWithKey(Unknown Source)
at com.chello.dbkit.eo.CBPageTemplate.allPageTemplates(Unknown Source)
at com.chello.dbkit.eo.CBPageTemplate.allComponentLayoutTemplates(Unknown Source)
at com.chello.cms.components.editorial.EditRenderedComponentGroup.availableTemplates(Unknown Source)
at com.chello.cms.components.editorial.EditRenderedComponentGroup.getFirstAvailableTemplate(Unknown Source)
at com.chello.cms.components.editorial.EditRenderedComponentGroup.addComponentGroup(Unknown Source)
at com.chello.cms.components.editorial.CB_CE_Grouping.appendToResponse(Unknown Source)
at com.webobjects.appserver._private.WOComponentReference.appendToResponse(WOComponentReference.java:135)
at er.extensions.components._private.ERXSwitchComponent.appendToResponse(ERXSwitchComponent.java:132)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
at com.webobjects.appserver._private.WOConditional.appendToResponse(WOConditional.java:94)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
at er.extensions.components._private.ERXWOForm.appendChildrenToResponse(ERXWOForm.java:280)
at er.extensions.components._private.ERXWOForm.appendToResponse(ERXWOForm.java:430)
at com.chello.cms.components.core.CBXWOForm.appendToResponse(Unknown Source)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
at er.extensions.components.ERXComponent.appendToResponse(ERXComponent.java:107)
at com.chello.cms.components.core.CMSComponent.appendToResponse(Unknown Source)
at com.chello.cms.components.Editor.appendToResponse(Unknown Source)
at com.chello.cms.components.editorial.CB_EditComponent.appendToResponse(Unknown Source)
at com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:1574)
at com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.java:1543)
at com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1538)
at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:278)
at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:124)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:595)
Thanks for taking a look!
-Ben
On Nov 23, 2009, at 10:53 PM, Chuck Hill wrote:
>
> On Nov 23, 2009, at 6:59 AM, Lawson, Ben wrote:
>
>> Hey guys, hoping maybe one of you can shed light on this issue we've
>> been having intermittently:
>>
>> We start by fetching all the rows out of a table using
>> EOUtilities.objectsForEntityNamed(editingContext, entityName), and
>> then filter that array with
>> ERXArrayUtilities.sortedArraySortedWithKey(array, key). The problem
>> is that occasionally the sorting trips up
>> ERXDatabaseContextDelegate.databaseContextFailedToFetchObject when
>> faulting an element in the array (shouldn't this already have
>> happened when building the NSArray from objectsForEntityNamed?).
>
> I am not sure that I believe you. :-) Can you paste in the full
> error message and complete stack trace?
>
>
>> The objects we are fetching are the same as that throwing the error,
>> so it's not a relationship fault that is causing the problem. I'm
>> curious why this problem would occur in the sort instead of the fetch.
>>
>> Finally, this problem only manifests itself in our test environment
>> (a Solaris box) and not on our local development machines (iMacs).
>> The application is built with all the frameworks embedded, and the
>> OS X classpaths match the UNIX classpaths. We took the bundle that
>> exhibited this issue and re-tested locally but the problem still
>> only exists on the Solaris machine.
>
> Is WebObjects embedded? Could there be a different version on that
> Solaris machine?
>
>
> Chuck
>
>
> --
> 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