House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  Adobe Flex

ColdFusion Flex mapping

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi all,
Simon Bailey
02/16/09 05:35 A
Sim
Jeffry Houser
02/16/09 07:55 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Simon Bailey
02/16/2009 05:35 AM

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? This is one of a series of objects and remote methods and all other   work fine, it is only this one object that throws this error.  I have   triple checked the mapping in the object and that is correct.  The   only thing that is different with this object is its nested deeper   that others, but, other nested objects in other remote calls work fine. 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? Cheers, Simon

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeffry Houser
02/16/2009 07:55 AM

Sim ----- Excess quoted text cut - see Original Post for more ----- 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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Simon Bailey
02/16/2009 09:10 AM

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: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeffry Houser
02/16/2009 09:30 AM

Logically, if two classes are aliased to the same CFC, how would the Remoting Gateway know which class to convert the CFC to?  That is probably why giving two classes the same alias causes problems. ----- Excess quoted text cut - see Original Post for more ----- -- 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


<< Previous Thread Today's Threads Next Thread >>

Search flex

May 25, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference