• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Cannot obtain globalId for an object which..."
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: "Cannot obtain globalId for an object which..." (From: email@hidden)

  • Prev by Date: Re: Pb updating a to-many relationship with refaultAllObjects()
  • Next by Date: Re: "Cannot obtain globalId for an object which..."
  • Previous by thread: Re: "Cannot obtain globalId for an object which..."
  • Next by thread: Re: "Cannot obtain globalId for an object which..."
  • Index(es):
    • Date
    • Thread