• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Classcastexception _EOCheapMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Classcastexception _EOCheapMutableArray (From: Don Lindsay <email@hidden>)

  • Prev by Date: Re: Frontbase error - ailed to provide new primary key
  • Next by Date: Re: Frontbase error - ailed to provide new primary key
  • Previous by thread: Re: Classcastexception _EOCheapMutableArray
  • Next by thread: Re: Classcastexception _EOCheapMutableArray
  • Index(es):
    • Date
    • Thread