• 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: flattened relationship crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flattened relationship crash


  • Subject: Re: flattened relationship crash
  • From: Paul Yu <email@hidden>
  • Date: Mon, 10 Nov 2014 10:14:38 -0500

James

Are you sure your referential data content is valid?

Paul

Sent from my iPad

On Nov 10, 2014, at 10:02 AM, James Cicenia <email@hidden> wrote:

Hello -

I have a many-to-many relationship.
I checked my database and the joining table has the correct entries to relate user to app

However, when I try to get my flattened relationship or even the one-tomany linking relationship via:
 public NSArray<EOGenericRecord> userApps() {
    return (NSArray<EOGenericRecord>)storedValueForKey(_User.USER_APPS_KEY);
  }

I get:

WARN  (ERXNSLogLog4jBridge.java:44) - <er.extensions.appserver.ERXComponentRequestHandler>: Exception occurred while handling request:
java.lang.NullPointerException
[2014-11-10 8:52:35 CST] <WorkerThread9> java.lang.NullPointerException
at com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)
at com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)
at com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
at com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
at er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:380)
at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
at com.pp.eos._User.userApps(_User.java:280)

The question is why? The linking entity is correct.

Thanks
James

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: flattened relationship crash
      • From: James Cicenia <email@hidden>
    • Re: flattened relationship crash
      • From: James Cicenia <email@hidden>
References: 
 >flattened relationship crash (From: James Cicenia <email@hidden>)

  • Prev by Date: flattened relationship crash
  • Next by Date: Re: flattened relationship crash
  • Previous by thread: flattened relationship crash
  • Next by thread: Re: flattened relationship crash
  • Index(es):
    • Date
    • Thread