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: Sat, 15 Nov 2003 19:35:51 +0100
At 16:12 -0500 14-11-03, email@hidden wrote:
I can't figure out what---as far as I can tell, I am locking all my ECs
properly.
Hi!
Thanks for answering!
You might try to add the following code to your application (we have
this in the constructor in Application.java):
NSLog.setAllowedDebugLevel(NSLog.DebugLevelInformational);
NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupMultithreading);
setAllowsConcurrentRequestHandling(true);
Then you will be informed if you access any ec which isn't locked.
You will see something like
[2003-11-03 17:02:54 CET] <WorkerThread13> *** EOEditingContext:
access with no lock: recordForGID()!
[2003-11-03 17:02:54 CET] <WorkerThread13> java.lang.Exception: This
is not a real exception, just a stack trace of the location of the
missing lock:
at
com.webobjects.eocontrol.EOEditingContext._EOAssertSafeMultiThreadedAccess(EOEditingContext.java:4193)
at
...
which include a stacktrace that show where the ec was accessed.
-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.