Re: Class cast exception thrown in in EODistributionContext

2008-06-27 Thread Florijan Stamenkovic
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 relationsh

Re: Class cast exception thrown in in EODistributionContext

2008-06-27 Thread Florijan Stamenkovic
Daryl, Thanks for the reply. Is the code snippet you have sent iterating over newly created objects? Or perhaps all modified objects? It looks like that really is the bad cast location. As to why that happens, no clue yet, but here are some more observations that I've made on how to cause

Re: Class cast exception thrown in in EODistributionContext

2008-06-27 Thread Daryl Lee
Well, it's at the point of the stack trace you're iterating over toMany attributes. In 5.3.3, it looks like we're trying to cast to an NSMutableArray if the line number is correct. <> On Jun 27, 2008, at 6:26 AM, Florijan Stamenkovic wrote: Daryl, perhaps you could point out what might b

Re: Class cast exception thrown in in EODistributionContext

2008-06-27 Thread Florijan Stamenkovic
On Jun 27, 2008, at 06:41, David Avendasora wrote: Hi Flor, I see on the "children" relationship you have it set to cascade delete. How are is the awakeFromInsertion called on the server-side for both this Entity and the "children"? I don't really think this is it, but ... do you check f

Re: Class cast exception thrown in in EODistributionContext

2008-06-27 Thread David Avendasora
Hi Flor, I see on the "children" relationship you have it set to cascade delete. How are is the awakeFromInsertion called on the server-side for both this Entity and the "children"? I don't really think this is it, but ... do you check for each attribute you are setting there to see if it

Re: Class cast exception thrown in in EODistributionContext

2008-06-26 Thread Florijan Stamenkovic
Daryl, Dave, This is the Entity... It is a somewhat tricky one, but I think I got it right: StructureItem.plist Description: Binary data Let me know if clarification of anything in it is necessary. I am doing this on 5.3, but should be able to test it against 5.4 sometime soon... F

Re: Class cast exception thrown in in EODistributionContext

2008-06-26 Thread David Avendasora
Flor, This sounds very familiar to me, but I can't remember exactly. Can you send me the .plist for the Entity from your model? Dave On Jun 26, 2008, at 2:45 PM, Florijan Stamenkovic wrote: Hi all, I get a class cast exception on the server when I try to save a certain type of EOs. Wit

Re: Class cast exception thrown in in EODistributionContext

2008-06-26 Thread Daryl Lee
Is this with WO 5.4.x? What does the EOClassDescription look like for your EO's? Are all the attribute keys strings? On Jun 26, 2008, at 11:45 AM, Florijan Stamenkovic wrote: Hi all, I get a class cast exception on the server when I try to save a certain type of EOs. With other types I

Class cast exception thrown in in EODistributionContext

2008-06-26 Thread Florijan Stamenkovic
Hi all, I get a class cast exception on the server when I try to save a certain type of EOs. With other types I do not have this problem. This is a JavaClient issue, as you can see in the stack trace below. I've added a breakpoint in the client app at a point where I am done with the EO,