Re: Classcastexception _EOCheapMutableArray
Re: Classcastexception _EOCheapMutableArray
- Subject: Re: Classcastexception _EOCheapMutableArray
- From: "Pierce T. Wetter III" <email@hidden>
- Date: Sat, 8 Dec 2007 11:37:34 -0700
On Dec 8, 2007, at 9:26 AM, Don Lindsay wrote:
Hello;
I recently picked up an old application from about a year ago.
When I click save on any of my edit pages I get a classcastexception
in WOComponentRequestHandler while handing
java.lang.ClassCastException:
com.webobjects.eocontrol._EOCheapCopyMutableArray.
Last time I ran into this problem it was because I was expecting a
single value from a key path. I.e.:
String s = (String) object.valueForKeyPath("toMany.name");
but "toMany.name" is an _array_ of names, because toMany is an
_array_ of objects. So its not a single String, so you get a
classcastexception.
Pierce
_______________________________________________
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