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: Kaj Hejer <email@hidden>
- Date: Tue, 10 Jun 2003 23:14:38 +0200
At 13:53 -0700 10-06-2003, Chuck Hill wrote:
It seems like this problem started after we for some reason got a
nullpointer exception while editing, and after that every time we
call the getPasienterWithPrefetch method the databaseContext's
active editingContext is the same.
Could you post the fill stack trace? I think the first think to do
is to try and avoid this error.
Hi!
The full stacktrace is available at http://folk.uio.no/kajh/tmp/stacktrace.txt
That looks like a bug in EOF to me. The stack trace (from above)
would help to verify this. It looks like the exception is
preventing the EC from removing its lock on the DB context. I'd
expect very little in your application to work after this happens.
Sounds reasonable!
The best way to handle this is to fix whatever is causing that
exception. Once the exception has happened I don't know what you
can do to unlock the DB context. You could try calling dispose() on
the EC.
Yes, that sounds reasonable too! :)
Our saveChanges method is avalable at
http://folk.uio.no/kajh/tmp/savechanges.txt
If we catch an exception we call ec.revert():
I'm not aware of any such documentation (that does not mean it does
not exist!). I pretty much made that up off the top of my head
based on experience with this exception.
Ok! I fill file an enhancement report on this one.
Thanks again!
-Kaj :)
_______________________________________________
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.