-
1. Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault
sir_teddy Oct 3, 2011 6:06 AM (in response to Godico77)I am not completely sure, but aren't you supposed to <cfreturn/> somewhere
within the function for flex to pick it up? Also, why not just send back the
url to flex from coldfusion after the security handling and then just use
navigateToUrl() in flex?
-
2. Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault
Godico77 Oct 4, 2011 1:56 AM (in response to sir_teddy)Thanks for your reply. I added the cfreturn tag to my cfc but still get the error.
I see the point of your suggestion of sending back the URL to flex, but in reality we really want to have all the connections go through our ColdFusion server.
Is it possible to accomplish this, or must I go through flex in this case?
-
3. Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault
sir_teddy Oct 4, 2011 5:14 AM (in response to Godico77)Have you tried creating a super simple cfc that just returns a string just
to see if it's configuration or the code that's failing?
-
4. Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault
BKBK Oct 4, 2011 5:44 AM (in response to Godico77)Channel disconnected before an acknowledgement was received
It means Flex isn't receiving a resp[onse back from ColdFusion. There could be 2 reasons for this.
1) Your Application.cfc file implements onRequest(). If so, comment out the function. It is not allowed when you use Flash remoting.
2) The security checks you talk about involve page redirection, preventing ColdFusion from sending back a response. Test the effect of bypassing the security procedure.
-
5. Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault
Godico77 Oct 4, 2011 5:48 AM (in response to sir_teddy)@sir_teddy, thanks for your reply again.
Yes I have created a simple cfc that returns a string successfully (in fact I had used the same cfc and basically just commented out the cfcontent and cfheader tags, and returned the name of the file being requested in the cfreturn tag). When I un-comment the cfcontent tag from the code, the error comes back.
So I am really at a loss here...
-
6. Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault
Godico77 Oct 4, 2011 5:53 AM (in response to BKBK)@BKBK, thanks for replying.
1) I am not creating an Application.cfc file, nor do I have one in my CFC path.
2) I have not implemented the security checks yet, this is something I will do *after* I get this basic functionality to work...
-
7. Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault
nikos101 Aug 15, 2012 3:33 AM (in response to Godico77)sometimes I get a channel disconnected error the first time I calll something, then when I call it again from flex, it works? any ideas?


