Re: Occasional EOObjectNotAvailableException
Re: Occasional EOObjectNotAvailableException
- Subject: Re: Occasional EOObjectNotAvailableException
- From: Lachlan Deck <email@hidden>
- Date: Wed, 25 Nov 2009 09:45:39 +1100
On 25/11/2009, at 12:17 AM, Lawson, Ben wrote:
> Perhaps it's inheritance?
>
> The name and templateId keys belong to the CBTemplate class. We are using single-table inheritance to distinguish between several types of templates (pages, components...). The fetch is for page templates, and the sort is based on their name key.
>
> At the moment, it looks like simplifying the query / sort to have the database do both on the fetch has solved it, but I'm still not sure why the previous technique was causing a problem.
So perhaps it is being fetched but is failing the restricting qualifier.
er.extensions.ERXDatabaseContextDelegate.tolerantEntityPattern=\\w+
er.extensions.ERXDatabaseContextDelegate.logTolerantEntityNotAvailable=false
> Thanks for the help,
> -Ben
>
> On Nov 24, 2009, at 12:13 PM, David Avendasora wrote:
>
>>
>> On Nov 24, 2009, at 4:25 AM, Anjo Krank wrote:
>>
>>>> com.chello.dbkit.eo.CBPageTemplate found with globalID: <PageTemplate: [templateId: '1011'] >
>>>
>>> vs:
>>>
>>>> at com.chello.dbkit.eo._CBTemplate.name(Unknown Source)
>>>
>>> Can this be an inheritance thing?
>>
>> This is my guess as well. What's the difference between a CBTemplate and a CBPageTemplate? Are you fetching one and trying to display the other?
>>
>> Dave
>>
>>
>>
>>> Also:
>>>
>>>>>> . 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?).
>>>
>>> If you have CCR, someone else could have invalidated the object in the meantime.
>>>
>>> The DBC actually *does* a fetch, so it stands to reason that actually nothing was returned... maybe you can turn on SQL logging after your fetch and before the sort call?
>>>
>>> Cheers, Anjo
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>> David Avendasora
>> Senior Software Engineer
>> K12, Inc.
>>
>> *****
>> WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/
>> *****
>> WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html
>> *****
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
with regards,
--
Lachlan Deck
_______________________________________________
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