<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Flex app calling CF cfc to download file gets "Channel disconnected" fault</title>
    <link>https://forums.adobe.com/community/coldfusion/coldfusion_flash_integration?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Wed, 15 Aug 2012 10:33:25 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2012-08-15T10:33:25Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault</title>
      <link>https://forums.adobe.com/message/4622633?tstart=0#4622633</link>
      <description>&lt;!-- [DocumentBodyStart:738af169-a284-4688-978e-da941e0a45c9] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;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?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:738af169-a284-4688-978e-da941e0a45c9] --&gt;&lt;img src='/beacon?t=1415918355615' /&gt;</description>
      <pubDate>Wed, 15 Aug 2012 10:33:25 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4622633?tstart=0#4622633</guid>
      <dc:date>2012-08-15T10:33:25Z</dc:date>
      <clearspace:dateToText>2 years 3 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault</title>
      <link>https://forums.adobe.com/message/3952832?tstart=0#3952832</link>
      <description>&lt;!-- [DocumentBodyStart:28e00459-54d7-490a-9d14-8c530f47be76] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;@BKBK, thanks for replying.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1) I am not creating an Application.cfc file, nor do I have one in my CFC path.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2) I have not implemented the security checks yet, this is something I will do *after* I get this basic functionality to work... &lt;span aria-label="Happy" class="emoticon-inline emoticon_happy" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:28e00459-54d7-490a-9d14-8c530f47be76] --&gt;</description>
      <pubDate>Tue, 04 Oct 2011 12:53:27 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3952832?tstart=0#3952832</guid>
      <dc:date>2011-10-04T12:53:27Z</dc:date>
      <clearspace:dateToText>3 years 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault</title>
      <link>https://forums.adobe.com/message/3952829?tstart=0#3952829</link>
      <description>&lt;!-- [DocumentBodyStart:fd97ada1-4ede-46c3-b98b-1e33f0c12d48] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;@sir_teddy, thanks for your reply again.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So I am really at a loss here...&lt;span aria-label="Confused" class="emoticon-inline emoticon_confused" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fd97ada1-4ede-46c3-b98b-1e33f0c12d48] --&gt;</description>
      <pubDate>Tue, 04 Oct 2011 12:48:26 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3952829?tstart=0#3952829</guid>
      <dc:date>2011-10-04T12:48:26Z</dc:date>
      <clearspace:dateToText>3 years 1 month ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault</title>
      <link>https://forums.adobe.com/message/3952815?tstart=0#3952815</link>
      <description>&lt;!-- [DocumentBodyStart:d7c79662-416d-46d0-9f95-cf6ec57fc54c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;Channel disconnected before an acknowledgement was received&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;It means Flex isn't receiving a resp[onse back from ColdFusion. There could be 2 reasons for this.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1) Your Application.cfc file implements onRequest(). If so, comment out the function. It is not allowed when you use Flash remoting. &lt;/p&gt;&lt;p&gt;2)&amp;nbsp; The security checks you talk about involve page redirection, preventing ColdFusion from sending back a response. Test the effect of bypassing the security procedure.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d7c79662-416d-46d0-9f95-cf6ec57fc54c] --&gt;</description>
      <pubDate>Tue, 04 Oct 2011 12:42:59 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3952815?tstart=0#3952815</guid>
      <dc:date>2011-10-04T12:42:59Z</dc:date>
      <clearspace:dateToText>3 years 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault</title>
      <link>https://forums.adobe.com/message/3952735?tstart=0#3952735</link>
      <description>&lt;!-- [DocumentBodyStart:618e590f-c333-409b-8f5e-9f926f8ae9af] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Have you tried creating a super simple cfc that just returns a string just&lt;/p&gt;&lt;p&gt;to see if it's configuration or the code that's failing?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:618e590f-c333-409b-8f5e-9f926f8ae9af] --&gt;</description>
      <pubDate>Tue, 04 Oct 2011 12:14:58 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3952735?tstart=0#3952735</guid>
      <dc:date>2011-10-04T12:14:58Z</dc:date>
      <clearspace:dateToText>3 years 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault</title>
      <link>https://forums.adobe.com/message/3952576?tstart=0#3952576</link>
      <description>&lt;!-- [DocumentBodyStart:bc7192a9-2e49-46f9-b539-49ebce2704c1] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks for your reply. I added the cfreturn tag to my cfc but still get the error. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; Is it&amp;nbsp; possible to accomplish this, or must I go through flex in this case?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:bc7192a9-2e49-46f9-b539-49ebce2704c1] --&gt;</description>
      <pubDate>Tue, 04 Oct 2011 08:56:19 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3952576?tstart=0#3952576</guid>
      <dc:date>2011-10-04T08:56:19Z</dc:date>
      <clearspace:dateToText>3 years 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Flex app calling CF cfc to download file gets "Channel disconnected" fault</title>
      <link>https://forums.adobe.com/message/3950762?tstart=0#3950762</link>
      <description>&lt;!-- [DocumentBodyStart:751e7dd4-d4c8-4038-8c8c-fd972fcccd2b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am not completely sure, but aren't you supposed to &amp;lt;cfreturn/&amp;gt; somewhere&lt;/p&gt;&lt;p&gt;within the function for flex to pick it up? Also, why not just send back the&lt;/p&gt;&lt;p&gt;url to flex from coldfusion after the security handling and then just use&lt;/p&gt;&lt;p&gt;navigateToUrl()&amp;nbsp; in flex?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:751e7dd4-d4c8-4038-8c8c-fd972fcccd2b] --&gt;</description>
      <pubDate>Mon, 03 Oct 2011 13:06:00 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3950762?tstart=0#3950762</guid>
      <dc:date>2011-10-03T13:06:00Z</dc:date>
      <clearspace:dateToText>3 years 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Flex app calling CF cfc to download file gets "Channel disconnected" fault</title>
      <link>https://forums.adobe.com/message/3950586?tstart=0#3950586</link>
      <description>&lt;!-- [DocumentBodyStart:87befd73-1d60-4eb9-831a-8f27e4263e3b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span style="color: #333333; font-size: 10pt;"&gt;&lt;p&gt;I am a newbie with ColdFusion and Flex. I am trying to implement file download/streaming functionality in my Flex 4.5 application and I am running ColdFusion 9 as my back end. More specifically, I have a component in my Flex app that displays a list of files - some of these files can be available for opening (or "previewing") via the client. I want the client to be able to click a button and download the file from the ColdFusion server, after the appropriate security checks are performed (also in ColdFusion). Right now I am just trying to get the basic download functionality to work with a very simple cfc. Here is the cfc code:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfcomponent displayname="Preview Document" &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output="false"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cffunction name="streamFile" access="remote" returntype="any"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfargument name="filename" displayName="Filename" type="string" required="true" /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfheader name="Content-Disposition" value="attachment;filename=#filename#" &amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfcontent type="application/unknown" file="c:\myserverpath\#filename#"&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cffunction&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfcomponent&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I try this via a cfm, it works fine (I get a File Download window where I can choose to either open or save the file). But when I try to use this in my Flex app, I get an error.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In my Flex app, I have a RemoteObject to access my cfc and a CallResponder:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #333333; font-size: 10pt;"&gt;&amp;lt;s:RemoteObject id="PreviewDocument"&lt;br/&gt;&amp;nbsp;&amp;nbsp; source="PreviewDocument"&lt;br/&gt;&amp;nbsp;&amp;nbsp; destination="ColdFusion"&lt;br/&gt;&amp;nbsp;&amp;nbsp; showBusyCursor="true"/&amp;gt;&lt;br/&gt;&amp;nbsp; &lt;br/&gt;&amp;nbsp; &amp;lt;s:CallResponder id="PreviewDocumentResult"&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fault="Alert.show('CallResponder PreviewDocumentResult: ' + &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; event.fault.faultString + '\n' + event.fault.faultDetail)"&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result="PreviewDocumentResult_resultHandler(event)"/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Then I created a button whose click even executes the following line:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #333333; font-size: 10pt;"&gt;&lt;span style="font-size: 2;"&gt;&lt;p&gt;PreviewDocumentResult.token = PreviewDocument.streamFile(&lt;/p&gt;&lt;/span&gt;&lt;strong style="color: #990000; font-size: 10pt;"&gt;&lt;strong style="color: #990000; font-size: 10pt;"&gt;"myfile.pdf"&lt;/strong&gt;&lt;/strong&gt;&lt;span style="font-size: 2;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I run my app, I get the following fault:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;faultCode = "Client.Error.DeliveryInDoubt"&lt;/p&gt;&lt;p&gt;faultString = "Channel disconnected"&lt;/p&gt;&lt;p&gt;faultDetail = "Channel disconnected before an acknowledgement was received"&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have tried many different approaches and searched online for help with this fault, but I could not find any helpful clue to where I can start investigating this.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #333333; font-size: 10pt;"&gt;Can anyone help with why I am getting this fault?&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:87befd73-1d60-4eb9-831a-8f27e4263e3b] --&gt;</description>
      <pubDate>Mon, 03 Oct 2011 11:37:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3950586?tstart=0#3950586</guid>
      <dc:date>2011-10-03T11:37:09Z</dc:date>
      <clearspace:dateToText>3 years 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

