• 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: Chuck Hill <email@hidden>
  • Date: Wed, 21 Sep 2016 00:35:21 +0000
  • Thread-topic: Cannot obtain globalId for an object which...

Does this only happen sometimes?  “the databaseContext's active editingContext” is referring to the active EC, which is transactional (e.g. set at the start of an EOF operation and cleared at the end).  If the code is calling into EOF without locking, it might result in this. 

 

From: Ricardo Parada <email@hidden>
Date: Tuesday, September 20, 2016 at 3:19 PM
To: Chuck Hill <email@hidden>
Cc: "email@hidden" <email@hidden>
Subject: Re: Cannot obtain globalId for an object which...

 

Hi Chuck,

 

I followed the steps of the code and I noticed that the object containing the to-many relationship in question is being local instanced in a peer editing context. The to-many is still an array fault which has not been triggered. 

 

Then when the object in the original context has its to-many triggered, i.e.  by calling:

 

        analysis.groupings().count();

 

Where analysis is the EO and groupings() is the to-many then the exception is generated. 

 

It appears to have that if I trigger the to-many early on then the exception is avoided. 

 

Anyways, I will experiment a little bit more with the problem and report back. I don't recall seeing something like this before and I local instance objects from one editing context to another all the time. 

 

Thanks

 

 


On Sep 20, 2016, at 5:21 PM, Chuck Hill <email@hidden> wrote:

A full stack track would help.  It sounds like your code is making a relationship between objects in different editing contexts.  Did someone forget to add a “localInstance”?

 

 

 

From: <webobjects-dev-bounces+chill=email@hidden> on behalf of Ricardo Parada <email@hidden>
Date: Tuesday, September 20, 2016 at 2:18 PM
To: "email@hidden" <email@hidden>
Subject: Cannot obtain globalId for an object which...

 

 

Hi all,

 

All of a sudden one of our apps started getting this. Does anybody know why this would happen? It did not seem to have a problem before until now. 

 

Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext, 

object: <UBAnalysis pk:"84106">, 

databaseContext: com.webobjects.eoaccess.EODatabaseContext@3935ae60, 

object's editingContext: er.extensions.eof.ERXEC@4247ac26, 

databaseContext's active editingContext: er.extensions.eof.ERXEC@c0fc23d’

 

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Cannot obtain globalId for an object which...
      • From: Ricardo Parada <email@hidden>
References: 
 >Cannot obtain globalId for an object which... (From: Ricardo Parada <email@hidden>)
 >Re: Cannot obtain globalId for an object which... (From: Chuck Hill <email@hidden>)
 >Re: Cannot obtain globalId for an object which... (From: Ricardo Parada <email@hidden>)

  • Prev by Date: Re: EOF inserts already existing M:N relationships/empty snapshot?!?
  • Next by Date: Re: EOF inserts already existing M:N relationships/empty snapshot?!?
  • 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