Flex Error: Channel disconnected before an acknowledgement was received.
I recently encountered this fault event message while working on a Flex/AIR application. I'm using ColdFusion remoting to hit a database. Everything worked fine on my local development evironment, but my release build pointing to the development server returned this message.
Problem was Application.cfc was redirecting to a login screen and preventing the ColdFusion componenets from being found.
Here is my RemoteObject tag for the local development environment. There is a basic Application.cfc at localhost.
<mx:RemoteObject destination="ColdFusion"
source="com.someone.cfc.login"
id="loginRO"
endpoint="http://localhost/flex2gateway/"
result="loginResultHandler(event)"
fault="loginFaultHandler(event)">
<mx:method name="getLogin">
<mx:arguments>
<username>{username}</username>
<password>{password}</password>
</mx:arguments>
</mx:method>
</mx:RemoteObject>
Here is my RemoteObject tag for the release build pointing to my development server.
<mx:RemoteObject destination="ColdFusion"
source="com.someone.cfc.login"
id="loginRO"
endpoint="http://www.somedomain.com/flex2gateway/"
result="loginResultHandler(event)"
fault="loginFaultHandler(event)">
<mx:method name="getLogin">
<mx:arguments>
<username>{username}</username>
<password>{password}</password>
</mx:arguments>
</mx:method>
</mx:RemoteObject>
My solution ... create a subdomain.
remote.mydomain.com without the Application.cfc
and upload /com/someone/cfc/login.cfc
Happy Coding....
Even I am experiencing the same error when my flex application is accessed from a slower machine. I would like to know why this error occures, I mean the root cause of the error. Basically I'm interested in knowing what happens at server side as well as client side which causes this error.
Thank you
Mahesh
If you want my best guess. The "Channel disconnected before an acknowledgement means that Flex is not reaching your server. Perhaps there is a way to set the "timeout" in the remote object to wait for longer responses. That's were I would look if the problem is occuring on slower client connections.
http://blog.crankybit.com/flex-remoting-over-ssl/