Ok forget nested items as I have tested this further and it seems to  
be this one VO alone in a remoting request causes problems.

2 VO's;

FareVO - Flex VO
customvo - Coldfusion VO

Both vo's simply declare String variables, nothing fancy.

In the Flex VO:

[RemoteClass(alias="com.newtriks.cfc.customvo")]

And in the ColdFusion VO there is and alias:  
com.newtriks.model.vo.CustomVO.

The remote request sends one parameter, the VO from flex to coldfusion.

The error (as in previous mail) then states that the cfc could not be  
invoked, BUT the cfc shown in the error is not the path to the cfc but  
to the flex vo!!!

I have now found the cause to this problem, why it happens I don't know.

I have 2 separate classes, each making an individual remoting call,  
both calls are different i.e. LoginClass calls the login remote method  
and UserClass calls the getUsers remote method.

- The LoginClass receives an object of nested datatyped objects and  
therefore needs the registerClassAlias() method for each nested vo  
i.e. CustomVO.
- The UserClass makes a remoting request sending a CustomVO.

My original error as detailed above is only shown when the UserClass  
attempts to make its remoting call and if the LoginClass registers the  
CustomVO as a class alias.
If I register the CustomVO class alias in both classes it fails.
If I remove the class alias in the LoginClass and send the remote  
request from the UserClass it now works fine???

So one would presume that the registering of a class alias is the root  
to all the problems here but why?
Also, if this is the case, an unRegister class alias may be a  
solution, but the docs show no such method.

Simon

On 16 Feb 2009, at 13:54, Jeffry Houser wrote:

>
> Simon Bailey wrote:
>> Hi all,
>>
>> I have a frustrating scenario and am wondering if anyone can shed  
>> some
>> light on this issue.  For some reason a remoting request is failing
>> and the error I am seeing in Charles is similar to below:
>>
>> faultString  
>> String       
>> Unable to invoke CFC - Could not find the ColdFusion Component or
>> Interface com.newtriks.model.vo.CustomVO
>>
>> The funny thing is that the CFC it is trying to invoke is the Flex VO
>> and not the mapped CFC?
>>
> I don't understand this statement.
>
> The funny thing is that the CFC   [Which CFC?]  it [What is it?] is
> trying to invoke is the Flex VO [what Flex VO?] and not the mapped CFC
> [What is mapped?  And how?]
>
>
>> So, why is the Flex VO being referred to instead of the CFC and is
>> there known problems with nested data typed objects that are nested?
>>
>
> Alluded to earlier; the Flex VO is being referred to where / by what?
> By nested data types do you mean that one of the properties inside a
> CFC is another CFC?  That should work fine.
>
>
>
> -- 
> Jeffry Houser, Technical Entrepreneur
> Adobe Community Expert: http://tinyurl.com/684b5h
> http://www.twitter.com/reboog711  | Phone: 203-379-0773
> --
> Easy to use Interface Components for Flex Developers
> http://www.flextras.com?c=104
> --
> http://www.theflexshow.com
> http://www.jeffryhouser.com
> --
> Part of the DotComIt Brain Trust
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5758
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to