Flex Remoting Error : Channel Disconnected
Copy link to clipboard
Copied
<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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I had the same problem with the "channel disconnected". I changed it like you said and now it works.
Thanks,
Guido
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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

