Re: "Cannot obtain globalId for an object which..."
Re: "Cannot obtain globalId for an object which..."
- Subject: Re: "Cannot obtain globalId for an object which..."
- From: Chuck Hill <email@hidden>
- Date: Sat, 15 Nov 2003 09:49:45 -0800
Looking at your code:
args = new NSArray(new Object[] { this });
EOQualifier inviterteQual =
EOQualifier.qualifierWithQualifierFormat("invitertePersoner = %@", args);
fs = new EOFetchSpecification("Skjema", inviterteQual, null);
NSArray skjemaerInvitert = editingContext().objectsWithFetchSpecification(fs);
I can't see how 'this' could possibly NOT be in 'editingContext()'. This
isn't the notification problem that I originally thought. That trace from
that code looks like an EOF bug, at least after the single cup of coffee
I've had so far. :-)
Are you using the shared editing context? Are you accessing the
EODatabaseContext directly anywhere? Are any other exceptions raised
before this? I'm just wondering if something else is using the
EODatabaseContext without locking it, or has somehow left it in a dirty state.
Chuck
At 02:33 PM 14/11/2003 +0100, Kaj Hejer wrote:
>At 12:56 -0700 10-06-03, Chuck Hill wrote:
>>Hi Kaj,
>>
>>First off,
>>> I also get a bit confused about what "databaseContext's active
>>> editingContext" mean.
>>
>>When an EC starts to do anything outside of its sandbox (fetching
>>and saving), it locks the database context(s) that it is using.
>>Only one EC can lock a database context at a time. When an EC locks
>>a database context that EC becomes the database context's active
>>editing context.
>>
>>Is it possible that this has been related, in code, to an Pasient in
>>a different editing context?
>
>
>Hi!
>
>Thank again for this info!
>
>Last time I posted about this issue it was on WO5.1.3. Now I have
>this issue on WO5.2.1.
>
>The stacktrace is available at http://folk.uio.no/kajh/tmp/bug20031114.txt
>
>We use only session.defaultEditingContext and childEditingContext of
>this ec. We lock/unlock our childEditingContext in
>session.awake/sleep.
>
>As far as I can see we don't have any relatinships between objects in
>different editingContext.
>
>This issue seems to happen at random (1 of 30 times? I havn't yet any
>reliable data for how often it occur).
>
>I havn't yet testet this on WO5.2.2, but we are goding to do that real soon!
>
>Config: WO5.2.1, solaris, java 1.3.1.
>
>Has anybody else here seen anything similar? In case this is a bug,
>does anybody know if this is fixed in WO5.2.2?
>
>I filed a bugreport for this issue (#3484195)
>
>
>
>-Kaj :)
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.