This sounds very similar to my problem.

 

I have my [RemoteClass(alias="com.xyz.somejavaclass")]

Tag in front of my AS VO definition on the client side, but it doesn't
seem to be translating properly. 

 

Are there situations, like in this one, where the VO is part of a List
on the Java side and that list is a property of another VO. Is it
possible that because it's a few levels 'deep' it's not translating?
It's driving me insane, because it won't let me cast it either.

 

-Alan

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jonese
Sent: Tuesday, April 29, 2008 2:39 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cannot convert Object to X

 

Thanks alex.I forgot to check my CF code, had updated my references it
everywhere but there :)

jonese

On Tue, Apr 29, 2008 at 1:25 PM, Alex Harui <[EMAIL PROTECTED]
<mailto:aharui%40adobe.com> > wrote:
>
>
>
>
>
>
>
>
>
> It means that the currentTarget.selectedItem isn't a vo_Task.
Sometimes
> this happens because the data coming from the server wasn't property
> converted to the type you wanted. Make sure the data items you're
getting
> are in fact mapped to the right classes on both the server and the
client.
>
>
>
> ________________________________
>
>
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of jonese
> Sent: Tuesday, April 29, 2008 10:15 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Cannot convert Object to X
>
>
>
>
>
>
>
>
> Hey all,
>
> i have a function which takes in an Event. I then grab the
> currentTarget.selectedItem which is an Object.
>
> I need to turn this Object into a specific Value Object i created
> called vo_Task.
>
> I tried:
> var thisItem:vo_Task = e.currentTarget.selectedItem;
>
> and get the error:
> "TypeError: Error #1034: Type Coercion failed: cannot convert
> [EMAIL PROTECTED] to com.nucleusclient.roadmap.vo.vo_Task."
>
> I tried
> var thisItem:vo_Task = e.currentTarget.selectedItem as vo_Task;
>
> but that just passes in a BLANK vo_Task
>
> The properties of the currentTarget.selectedItem are identical (as far
> as i can tell) to what should be found in a vo_Task.
>
> Any ideas?
> jonese
>
> 

 


.
The information contained in this e-mail message is intended only for the 
personal 
and confidential use of the recipient(s) named above. This message is 
privileged 
and confidential. If the reader of this message is not the intended recipient 
or an
agent responsible for delivering it to the intended recipient, you are hereby 
notified 
that you have received this document in error and that any review, 
dissemination, 
distribution, or copying of this message is strictly prohibited.

Reply via email to