Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flex Remoting Error : Channel Disconnected

Community Beginner ,
Aug 20, 2008 Aug 20, 2008
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.
TOPICS
Flash integration
7.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 08, 2008 Sep 08, 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...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 08, 2008 Sep 08, 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 06, 2008 Oct 06, 2008
Same problem here
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 24, 2008 Oct 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 15, 2010 Apr 15, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 10, 2010 May 10, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 17, 2010 Jun 17, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources