• 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: Editing Context without rootObjectStrore ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editing Context without rootObjectStrore ???


  • Subject: Re: Editing Context without rootObjectStrore ???
  • From: René Bock <email@hidden>
  • Date: Thu, 26 Feb 2015 09:38:50 +0100

Hi,

to reply to my own question:

It seems that the object that holds the ec and  that I pass to an LongResponsePage, is finalized too early.  


Am 26.02.2015 um 08:53 schrieb René Bock <email@hidden>:

Hi,

While analyzing the log files of our application, I discoverd the following exception:

Feb 25 17:43:40 FormCenter[-1] INFO  de.salient.cmlogic.appserver.CMApplication  - java.lang.NullPointerException
er.extensions.eof.ERXEOGlobalIDUtilities.fetchObjectsWithGlobalIDs(ERXEOGlobalIDUtilities.java:244)
er.extensions.eof.ERXEOGlobalIDUtilities.fetchObjectsWithGlobalIDs(ERXEOGlobalIDUtilities.java:229)
er.extensions.eof.ERXEOGlobalIDUtilities.fetchObjectWithGlobalID(ERXEOGlobalIDUtilities.java:209)


The corresponding part in ERXEOGlobalIDUtilities reads:

241 public static NSMutableArray fetchObjectsWithGlobalIDs(EOEditingContext ec, NSArray globalIDs, boolean refreshesRefetchedObjects) {
242     NSMutableArray<EOEnterpriseObject> result = new NSMutableArray<EOEnterpriseObject>();
243 ec.lock();
244 ec.rootObjectStore().lock();
245 try {

So, a NPE in line 244 may only occur, if ec.rootObjectStore is null.

Has anybody ever seen this before?



Mit freundlichem Gruß,

René Bock
Software Engineering

--
salient doremus

salient GmbH
Kontorhaus -  Lindleystraße 12
60314 Frankfurt Main

Fon +49 (0)69 - 650096 -0, Durchwahl: - 18, Fax: -70

http://www.salient.de
http://www.doremus.com
http://www.openforms.de

Geschäftsführer: Peter Biler, Alexander Gerling, Lars Ohlerich
Amtsgericht Frankfurt Main, HRB 48693

// Neuer Schwung auf allen Endgeräten für den Automobilclub von Deutschland: http://www.avd.de/

Mit freundlichem Gruß,

René Bock
Software Engineering

--
salient doremus

salient GmbH
Kontorhaus -  Lindleystraße 12
60314 Frankfurt Main

Fon +49 (0)69 - 650096 -0, Durchwahl: - 18, Fax: -70

http://www.salient.de
http://www.doremus.com
http://www.openforms.de

Geschäftsführer: Peter Biler, Alexander Gerling, Lars Ohlerich
Amtsgericht Frankfurt Main, HRB 48693

// Neuer Schwung auf allen Endgeräten für den Automobilclub von Deutschland: http://www.avd.de/

 _______________________________________________
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

References: 
 >Editing Context without rootObjectStrore ??? (From: René Bock <email@hidden>)

  • Prev by Date: Re: in another EC, when objects transferred through GIDs, owning relationship does not delete objects?!?
  • Next by Date: D2W Rules
  • Previous by thread: Editing Context without rootObjectStrore ???
  • Next by thread: D2W Rules
  • Index(es):
    • Date
    • Thread