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 protected]> 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 protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
