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 protected]> 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 protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.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]

Reply via email to