Re: Classcastexception _EOCheapMutableArray Solved
Re: Classcastexception _EOCheapMutableArray Solved
- Subject: Re: Classcastexception _EOCheapMutableArray Solved
- From: Don Lindsay <email@hidden>
- Date: Sun, 9 Dec 2007 21:28:35 -0500
Hello Lachlan;
I know there is no data in the TrainingOrgAssoc table for the user.
Does a row have to exist in a relationship entity before using a
WOToManyRelationship?
Don
On Dec 9, 2007, at 7:23 PM, Lachlan Deck wrote:
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@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
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