• 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: Odd NPE from deep inside EOF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd NPE from deep inside EOF


  • Subject: Re: Odd NPE from deep inside EOF
  • From: Ramsey Gurley <email@hidden>
  • Date: Tue, 31 Mar 2015 09:31:15 -0700

This is a prime example of why I hate stack trace cleanup.

#If you have this in your project properties, you've already failed
er.extensions.stackTrace.cleanup=true

It looks like null is being passed into the _foreignKeyForSourceRow() method. All you’ll find on line 634 of EOOSC is: source.objectsForSourceGlobalID(gid, relationshipName, editingContext); No dictionary argument to be null there.

Since 4 stack elements have been skipped, and I can’t open call hierarchy on a decompiled class, I can't look for the source of your issue.



On Mar 31, 2015, at 7:01 AM, Mark Wardle <email@hidden> wrote:

> Occasionally I get the below exception from deep within EOF. It usually occurs when there has been a recent editing context save changes and then I go back to a different summary page which might use that information.
>
> Writing on the off-chance that this is a classic example of breaking one of the EOF commandments and someone can tell me what I’m doing wrong.
>
> Thanks
>
> Mark
>
> NullPointerException
> at com.webobjects.eocontrol._EOMutableKnownKeyDictionary.<init>(_EOMutableKnow
> nKeyDictionary.java:106)
> at com.webobjects.eoaccess.EORelationship._foreignKeyForSourceRow(EORelationsh
> ip.java:1148)
>    ... skipped 4 stack elements
> at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(
> EOObjectStoreCoordinator.java:634)
> at com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditin
> gContext.java:3923)
> at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1268)
>    ... skipped 1 stack elements
> at com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfO
> bject(EOAccessArrayFaultHandler.java:77)
> at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMuta
> bleArray.java:39)
> at com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutable
> Array.java:99)
> at com.webobjects.eocontrol.EOQualifier.filteredArrayWithQualifier(EOQualifier
> .java:687)
> at com.eldrix.rsdb.model._Patient.encounters(_Patient.java:1361)
> at com.eldrix.rsdb.model.Patient.activeEncounters(Patient.java:482)
> at com.eldrix.rsdb.model.Patient.activeEncounters(Patient.java:472)
> at com.eldrix.rsdb.model.Patient.formsOfClass(Patient.java:653)
> at com.eldrix.news.components.patients.PatientMedication.prescriptions(Patient
> Medication.java:47)
>    ... skipped 13 stack elements
> at com.webobjects.directtoweb.D2WList.dataSource(D2WList.java:75)
> _______________________________________________
> 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


 _______________________________________________
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: Odd NPE from deep inside EOF
      • From: Mark Wardle <email@hidden>
References: 
 >Odd NPE from deep inside EOF (From: Mark Wardle <email@hidden>)

  • Prev by Date: Odd NPE from deep inside EOF
  • Next by Date: Re: Deploying on Amazon EC
  • Previous by thread: Odd NPE from deep inside EOF
  • Next by thread: Re: Odd NPE from deep inside EOF
  • Index(es):
    • Date
    • Thread