Skip to main content
Participating Frequently
May 17, 2010
Question

Upgrade to CF9 breaks Flex to CF remoting

  • May 17, 2010
  • 1 reply
  • 1598 views

I have been developing Flex 2 (Cairngorm) remoting applications with Coldfusion 8 with integrated LCDS on IIS. I recently upgraded the server to CF9. Prior to the upgrade, remoting to my CFCs worked flawlessly. However, after the upgrade I get this error when calling Remote Object:

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error Invalid URL"]

I develop on a machine (Michael) and the web root is on IIS server (mdr009). The web root on the IIS server is C:\Inetpub\wwwroot (which is also a shared folder). My compiler argument in Flex Builder is "-services "\\mdr009\wwwroot\WEB-INF\flex\services-config.xml" -locale en_US". This configuration worked with CF8 no problem, and works again when I uninstall CF9 and revert back to CF8.

I tried to disconnect the CF8/IIS connector, stop the CF8 services and set them to manual startup, but this doesn't seem to help any. I can change the URI endpoint in services-config.xml to any location like http://neverneverland/flex2gateway and still get the same error.

I have tried MANY different fixes, but can't seem to get it working. I'd be glad to supply more information if needed. Can anyone help me please?

-Michael

    This topic has been closed for replies.

    1 reply

    May 17, 2010

    Hi Micheal

    I feel your pain.  I had an the open source rbman flex app running fine under cf8 and then struggled for days getting it to go under cf9.  I wasn't using LCDS, but I found I had to manually enable a couple of things, for remoting, so I am assuming it may be the same for you.

    Apparent you need to manually setup LCDS, have you done this?: http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSB53CBD63-A21C-4f31-8F3E-700AE45A026E.html

    Can you provide an example of a function from your cfc?  When you browse to http://neverneverland/flex2gateway in a web browser you should get a blank page, and no errors.

    I also found using wireshark (wireshark.org), really really helpful in working out what was going on.  Way more helpful than the useless rpc fault messages.

    Do you have any complicated application heirachies, like nested folders with their own application.cfm/cfc?  Or is everything just in the root?

    Cheers

    hwy419Author
    Participating Frequently
    May 17, 2010

    Chiwi,

    Thanks for your reply I appreciate your help.

    I was hoping I could use the built-in BlazeDS (which I am unfamiliar with) in CF9. However, I am not committed to that and will try to install LCDS this afternoon. You did mention you were not using LCDS, which I am assuming you are using BlazeDS. What did you enable to make it work?

    Example of CFC function (worked with CF8 and suspect it would still work with CF9):

    <cffunction name="getDoctors" access="remote" returnType="query">
      <cfset objPOIUtility = CreateObject("component","POIUtility").Init()/>
      <cfset doctorlist = objPOIUtility.ReadExcel(FilePath = "C:\Inetpub\wwwroot\flexprojects\RequestUtility\appdata\doctors.xls",HasHeaderRow = true) />
      <cfreturn doctorlist[1].query>
    </cffunction>

    I can navigate to http://mdr009/flex2gateway and get a blank page with no errors.

    I am unfamiliar with wireshark and will check iinto it as well.

    Thanks!

    -Michael