Skip to main content
Known Participant
August 20, 2008
Question

Flex Remoting Error : Channel Disconnected

  • August 20, 2008
  • 4 replies
  • 7929 views
I set up a simple method in a CFC on my server.

<cfcomponent name="Remoting">
<cffunction name="testConnect" access="remote" returntype="any" output="false">
<cfreturn true />
</cffunction>
</cfcomponent>

A simple Flex RemoteObject call is throwing an error with te following message:

mx.rpc.remoting.mxml.RemoteObject
"Channel disconnected"
Fault Code: Client.Error.DeliveryInDoubt
Detail: Channel disconnected before an acknowledgment was received

Here is my MXML:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
<mx:RemoteObject id="svc" destination="ColdFusion" source="irovrdev.controller.RemotingService" endpoint=" http://remoting.irovr.com/flex2gateway/" showBusyCursor="true" />
<mx:Button click="svc.testConnect()" />
</mx:Application>


I know it's not a mapping issue, because if I fudge the name of the source to "foo", I get a valid error from ColdFusion that the component is not found.
This topic has been closed for replies.

4 replies

Participant
June 17, 2010

Same issue but nothing in the application.cfc and I am using coldfusion as backend on an IIS server.

This error happens between 5 and 50 times a day (depends on the traffic)

Aubry

April 16, 2010

I use the Flex add-in for Eclipse. When I let it create my PHP file I didn't specify a port and was able to connect in design mode. When I ran it however, I got the "channel disconnected" error. After I edited the PHP file to specify port 3306, the error went away.

Participant
May 11, 2010

Thank you so much, Jim!

I fixed it also by putting the port "3306"  in the generated code. Been looking all over the place and tried a many things with no success.

Like you said there was no port needed to connect from FLEX, but running from either Flash or Air... I was getting the "channel disconnected".

Hope this post and yours will help others also.

Participating Frequently
October 6, 2008
Same problem here
Known Participant
October 24, 2008
Hi ErikMadsen,
I had the same problem with the "channel disconnected". I changed it like you said and now it works.

Thanks,
Guido
Participant
September 8, 2008
I am also getting the same error "Channel disconnected". If you have any answer please post it. I changed IIS timeout to 1 hour , that did not help. it is giving this error every 40 minutes or so...
Known Participant
September 8, 2008
Turns out our application.cfc was redirecting based on the http_user_agent. Make sure you are not using a cflocation that might be firing.