• 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: Class cast exception thrown in in EODistributionContext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class cast exception thrown in in EODistributionContext


  • Subject: Re: Class cast exception thrown in in EODistributionContext
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Fri, 27 Jun 2008 19:29:33 -0400

Oooops.

With Daryl's help I managed to track down the problem. Turns out I had a method in my server side Project class that was overriding a relationship, and retuning an NSArray (immutable). The code is old, and should have been kicked out when I decided to actually model the relationship and not just derive it in Java from another one... After I modeled the relationship, EOF rightfully expected to get a mutable array when asking for the prop.

Moral of the story? Maintaining two sets of EO classes (server and client) can be tricky. And one should not be dumb enough to change one, and not change another. Well, this is the first time this particular JC issue kicked me in the ass, but I believe other JC developers will be able to relate to it :)

Daryl, Dave, thanks for the input and helping me track this down.

F
_______________________________________________
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: 
 >Class cast exception thrown in in EODistributionContext (From: Florijan Stamenkovic <email@hidden>)
 >Re: Class cast exception thrown in in EODistributionContext (From: Daryl Lee <email@hidden>)
 >Re: Class cast exception thrown in in EODistributionContext (From: Florijan Stamenkovic <email@hidden>)
 >Re: Class cast exception thrown in in EODistributionContext (From: David Avendasora <email@hidden>)
 >Re: Class cast exception thrown in in EODistributionContext (From: Florijan Stamenkovic <email@hidden>)
 >Re: Class cast exception thrown in in EODistributionContext (From: Daryl Lee <email@hidden>)
 >Re: Class cast exception thrown in in EODistributionContext (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: Re: Can I just use the model?
  • Next by Date: Re: WOWODC Videos
  • Previous by thread: Re: Class cast exception thrown in in EODistributionContext
  • Next by thread: Re: Class cast exception thrown in in EODistributionContext
  • Index(es):
    • Date
    • Thread