On 10/12/2007, at 11:07 AM, Don Lindsay wrote:

I have this one working. But now I have implemented another wotomanyrealationship. The structure is exactly the same ag the mgtOfc except it is for training. when I try to load the page with that wotomany on it I get the follow error trace.

dwtm
Error:  java.lang.NullPointerException
Reason:         
Stack trace:    
File    Line#   Method  Package
EOSortOrdering.java     605     _genericCompareTo       com.webobjects.eocontrol
EOSortOrdering.java     644     compareAscending        com.webobjects.eocontrol
EOSortOrdering.java     522     compareValues   com.webobjects.eocontrol
EOSortOrdering.java     363     compare         com.webobjects.eocontrol
_NSCollectionPrimitives.java 306 K2SortArray com.webobjects.foundation EOSortOrdering.java 202 _sortUsingKeyOrderArray com.webobjects.eocontrol EOSortOrdering.java 254 sortArrayUsingKeyOrderArray com.webobjects.eocontrol _WOJExtensionsUtil.java 94 _sortEOsUsingSingleKey com.webobjects.woextensions
WOToManyRelationship.java       456     theList         
com.webobjects.woextensions
NativeMethodAccessorImpl.java   NA      invoke0         sun.reflect
NativeMethodAccessorImpl.java   39      invoke  sun.reflect
DelegatingMethodAccessorImpl.java       25      invoke  sun.reflect
Method.java     585     invoke  java.lang.reflect
NSKeyValueCoding.java   684     methodValue     com.webobjects.foundation
NSKeyValueCoding.java   1160    valueInObject   com.webobjects.foundation
NSKeyValueCoding.java   1268    valueForKey     com.webobjects.foundation
WOComponent.java        1539    valueForKey     com.webobjects.appserver
NSKeyValueCoding.java   498     valueForKey     com.webobjects.foundation
NSKeyValueCodingAdditions.java

What would cause EOSortOrdering to fail like this?

I'd need more info... but EOSortOrdering will not deal (gracefully) with missing data. So I'm guessing that you're attempting to use a display key (or something) where the data is actually null.

with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to