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 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