Re: Occasional EOObjectNotAvailableException

2009-11-24 Thread Lachlan Deck
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 th

Re: Occasional EOObjectNotAvailableException

2009-11-24 Thread Lawson, Ben
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 loo

Re: Occasional EOObjectNotAvailableException

2009-11-24 Thread David Avendasora
On Nov 24, 2009, at 4:25 AM, Anjo Krank wrote: >> com.chello.dbkit.eo.CBPageTemplate found with globalID: > [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 b

Re: Occasional EOObjectNotAvailableException

2009-11-24 Thread Anjo Krank
com.chello.dbkit.eo.CBPageTemplate found with globalID: vs: at com.chello.dbkit.eo._CBTemplate.name(Unknown Source) Can this be an inheritance thing? Also: . The problem is that occasionally the sorting trips up ERXDatabaseContextDelegate.databaseContextFailedToFetchObject when fa

Re: Occasional EOObjectNotAvailableException

2009-11-24 Thread Lawson, Ben
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: er.extensions.eof.ERXDatabaseContextDelegate$ObjectNotAvailableException: N

Re: Occasional EOObjectNotAvailableException

2009-11-23 Thread Chuck Hill
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 arra

Re: Occasional EOObjectNotAvailableException

2009-11-23 Thread Lawson, Ben
Good catch, I meant sorting with ERXArrayUtilities. I'll try the one-liner, was looking to optimize that series of calls anyway, so thanks for that! We're using the same database, same drivers. Enabling SQL debugging shows that when the EOObjectNotAvailableException is thrown, there was in fact

Re: Occasional EOObjectNotAvailableException

2009-11-23 Thread David Avendasora
On Nov 23, 2009, at 9: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 th

Re: Occasional EOObjectNotAvailableException

2009-11-23 Thread Lawson, Ben
It does not, the sort is based on a name attribute of the entity. -Ben On Nov 23, 2009, at 4:07 PM, Ken Anderson wrote: > Ben, > > Does the sort include any relationships? > > Ken > > On Nov 23, 2009, at 9:59 AM, Lawson, Ben wrote: > >> Hey guys, hoping maybe one of you can shed light on thi

Re: Occasional EOObjectNotAvailableException

2009-11-23 Thread Ken Anderson
Ben, Does the sort include any relationships? Ken On Nov 23, 2009, at 9: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(edit

Occasional EOObjectNotAvailableException

2009-11-23 Thread Lawson, Ben
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