Flex 4 Trial - MAMP Channel Disconnected - help!

I am doing some simple testing with the Flash Builder 4 Trial
I am running MAMP on my mac and am trying to use PHP to to talk to the mySQL database.
In Flex 3 this was pretty easy. I am following basically the same procedures (they have change)
I am simply using the Bind to data...  and going throught the wizard. Everything seems find
when I bind it to a datagrid - the grid sizes to accomodate all of the fields and puts the correct names in the header.
But, when I run the application I get the error "Channel disconnected Channel Disconnected before an acknowledement was received"
I can't find any way around this or much information on the error.
Would appreciate any help.

Hi,
The first thing you need to do is ensure you have a recent version of mamp, as the zendframework requires the latest stable build of php, it will also help to download the latest zendAMF and replace the one that Flashbuilder installed (you just over write the folder with the new code)
http://framework.zend.com/download/amf     version 1.10.3
Some people have had issues on macs where the zend pathing wasn't working /recognised, there is info on this spread through  http://forums.adobe.com/community/flex/flex4beta , searching on 'zend' in the forum will yield several thoughts if you have problems after trying the above.
David

Similar Messages

  • Deploying Flex 4 application and Channel Disconnected Error

    Hi,
    After deploying my application I keep having this error when I want to insert into Database.
    Channel disconnected before an acknowledgement was received
    The problem is that everything works as a cham localy.
    Thank's.

    This is a Flex question. Please try posting it to the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion

  • Flex app calling CF cfc to download file gets "Channel disconnected" fault

    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:
    <cfcomponent displayname="Preview Document"
         output="false">
         <cffunction name="streamFile" access="remote" returntype="any">
              <cfargument name="filename" displayName="Filename" type="string" required="true" />
              <cfheader name="Content-Disposition" value="attachment;filename=#filename#" >
              <cfcontent type="application/unknown" file="c:\myserverpath\#filename#">
         </cffunction>
    </cfcomponent>
    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.
    In my Flex app, I have a RemoteObject to access my cfc and a CallResponder:
    <s:RemoteObject id="PreviewDocument"
       source="PreviewDocument"
       destination="ColdFusion"
       showBusyCursor="true"/>
      <s:CallResponder id="PreviewDocumentResult"
        fault="Alert.show('CallResponder PreviewDocumentResult: ' +
        event.fault.faultString + '\n' + event.fault.faultDetail)"
        result="PreviewDocumentResult_resultHandler(event)"/>
    Then I created a button whose click even executes the following line:
    PreviewDocumentResult.token = PreviewDocument.streamFile("myfile.pdf");
    When I run my app, I get the following fault:
    faultCode = "Client.Error.DeliveryInDoubt"
    faultString = "Channel disconnected"
    faultDetail = "Channel disconnected before an acknowledgement was received"
    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.
    Can anyone help with why I am getting this fault?
    Thanks in advance.

    @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...

  • [svn:bz-4.0.0_fixes] 23961: Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel

    Revision: 23961
    Revision: 23961
    Author:   [email protected]
    Date:     2012-06-15 04:42:44 -0700 (Fri, 15 Jun 2012)
    Log Message:
    Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel
    While invalidating session, make sure a new one does not get created.
    Modified Paths:
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPE ndpoint.java
    Property Changed:
        blazeds/branches/4.0.0_fixes/modules/

    You're trying to do this directly in ActionScript without using Flex, correct?
    The mxmlc compiler for Flex adds some registerClassAlias calls to map types between the client and the server. This will be missing if try to use the messaging code outside of a Flex app.
    Take a look at the mx.utils.RpcClassAliasInitializer class in rpc.swc. This has a static registerClassAliases method that will do the class registration for you. You should just need to call this before running your messaging code.
    -Alex

  • [svn:bz-4.6.x] 23962: Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel

    Revision: 23962
    Revision: 23962
    Author:   [email protected]
    Date:     2012-06-15 04:57:45 -0700 (Fri, 15 Jun 2012)
    Log Message:
    Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel
    While invalidating session, make sure a new one does not get created.
    Modified Paths:
        blazeds/branches/4.6.x/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoin t.java

    I thought the same that those devices simply are too old. However I would like to know what causes this capabilities change. We want to get rid of the old H/W, but at the moment it looks as if we would need to revert back to the 4402 in order to get those things working again.
    I have not enough information, but those devices are some kind of handhelds. Their MAC OUI belongs to Newport Electronics.
    Regards,
    Patrick

  • [svn:bz-trunk] 23960: Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel

    Revision: 23960
    Revision: 23960
    Author:   [email protected]
    Date:     2012-06-15 04:15:18 -0700 (Fri, 15 Jun 2012)
    Log Message:
    Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel
    While invalidating session, make sure a new one does not get created.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java

  • [svn:bz-trunk] 23948: Bug##3200562: New Flex Session Id generated while disconnect with streaming amf channel

    Revision: 23948
    Revision: 23948
    Author:   [email protected]
    Date:     2012-06-13 06:11:35 -0700 (Wed, 13 Jun 2012)
    Log Message:
    Bug##3200562: New Flex Session Id generated while disconnect with streaming amf channel
    On session time out, Flex Client is invalidated on the server side. It also results in Flex Session getting invalidated. In order to complete the client-server streaming connection handshake, the client ends up sending a CLOSE command. On the server side, for any work to be done, the MB first needs to creates a Flex Session (if none exists). After doing the necessary cleanup, the newly created Flex Session will also be invalidated. No stray Flex Sessions will left dangling...
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java

  • Channel Disconnected; Argument 1 passed to ___ must be an instance of...

    I'm working thru the samples / tutorials from the Flex Developer Center and cannot seem to get things working for me.  Specifcally, trying to implement the example from this page: http://www.adobe.com/devnet/flex/articles/crud_flex_php_zend.html.  (PHP files I'm using are all linked from that page.)
    When I run the program, I can retrieve the data from my server, but I get a "Channel Disconnected" error message whenever I try to write something back to the server.
    The error message I find in the log files is:
    PHP Catchable fatal error:  Argument 1 passed to ForestService::updateForest() must be an instance of NationalForest, instance of stdClass given in /var/www/myCRUD-debug/ForestService.php on line 71, referer: http://vs1/myCRUD-debug/anotherCRUD.swf/[[DYNAMIC]]/5
    This is consistent with the result I get when attempting to test the updateForest() function in Flash Builder.  Screenshots of the test are per below:
    leads to:
    I've tried various different syntaxes for the established: field (date(), current_date, "19990101", all UPPER, all lower, etc.) as I wasn't positive I could rule that out.  (That said, I've noted that there is an error message at the bottom the input pane if things don't match what it believes the input to be.)
    I've looked at the php files and can find no obvious syntax errors, no "echo" and no "print" statements.  Also saw another post somewhere that suggested that it could be the port number I'm using, so have changed the ForestService.php file to point at localhost:3306.  All this is leading me to think that there must be something fundamentally wrong with my setup, but not sure what that is.  I can successfully pull data from the mySQL server, so I know the connection works.  (Data loads to the datagrid.)
    Issue occurs regardless of whether I use the canned example project (after updating the connection info in ForestService.php) or whether I build a new application from scratch.
    Development environment is:
    Flash Builder 4 Premium (trial version) running on Windows 7
    Apache 2.2, mySQL 5.1.49 and  PHP 5.3.3 all running on Ubuntu 10.1 as a VirtualBox guest on the Windows 7 machine.
    libzend-framework-php was installed using apt-get, rather than letting Flash Builder automatically install things... I won't rule this out as an issue, as I was having trouble when Flash Builder did things automagically for me.  (Couldn't see the "Zend Amf Endpoint" statement as outlined in the tutorial.)
    All of the .php and application files are held in /var/www/myCRUD-debug; I have the same results if the three .php files are in /var/www.
    I'm at a total loss...  Does anyone have a suggestion?  Thanks in advance!
    Corey

    Finally some success...  Went and had a coffee, got my mind off things and then tried again.
    I started from scratch one more time using the canned examples.  Seems the issue was related to the services-config.xml file.  I'd updated this to point to the index.php file on the server, but for some reason, the updated value was not being passed to the application when it compiles. Figured it out when I got an error message in the fresh start that pointed at the wrong location.
    Closed Flash Builder and restarted after verifying that the location was set correctly in services-config.xml.  This time when I ran the update script, it worked.  Validated that the changes were passed to the DB via an independent query and all is good!
    Now I just have to figure out how to make that work consistently and things should be good...
    Cheers,
    Corey

  • Samples Problem (Channel disconnected)

    I am running Tomcat 6 and JRE 1.5, with FDS. Running the
    Dashboard sample is not a problem (except for a lack of heapspace
    in the JRE sometimes). However, the CRM sample is not working. I
    get the error "Channel disconnected" on the client side, and on the
    server side I am seeing a JRE error ... specifically a
    javax/transaction/SystemException throwable. The last entry in the
    stack trace is: java.lang.NoClassDefFoundError:
    javax/transaction/SystemException at
    flex.data.DataService.serviceMessage(DataService.java:305). I have
    installed JOTM JARs in the Tomcat common\lib directory, and created
    a "samples.xml" file in the conf\Catalina\localhost directory.
    I am new to Flex2 (and FDS), and I am also new to Tomcat. But
    I am really not trying to get too sophisticated right now. I am
    frustrated, and I appreciate any help that anyone can give me!
    All I really want to do is to create a simple application
    that communicates using RTMP to transport POJOs on the server side
    to AS classes on the client side. I have run the
    tutorial
    that Christophe Coenraets provided, and it works just fine. But
    when I try to build a test from scratch by installing Tomcat, FDS,
    JOTM (do I really need that piece?), and then creating the mxml,
    as, and class files I have problems. Which caused me to try the
    samples that come with FDS.
    As a side note ... there is a statement that memory for the
    JRE should be increased, but no specific instructions for
    increasing it. That's not my immediate problem with the CRM sample,
    and so I'll figure it out later.

    Just an update ... although I am not sure that anyone will
    ever see any of this:
    I reinstalled Tomcat, FDS, and JOTM. I actually put the JOTM
    JARs into the tomcat/lib directory, since I wasn't certain where
    Tomcat will look. I added the TransactionFactory element to
    tomcat/conf/context.xml. This entry specifies to Tomcat that the
    default transaction factory is JOTM. I also changed the heap size
    for the JVM, which I realized can be changed using the Tomcat
    configuration program shown in the Tomcat menu under the Windows
    Start Menu.
    I am still getting a "Channel disconnected" error when I
    attempt to update a value in the CRM sample application. The
    exception in the Tomcat window is:
    java.lang.ExceptionInInitializerError. This appears to be thrown in
    the constructor of the jotm Current class.
    Does anyone have any ideas? Or at least a similar problem?
    Thanks!

  • NetConnection.Call.BadVersion - Channel disconnected

    I am facing NetConnection.Call.BadVersion error when I run flex based application with BlazeDS on S64 with Weblogic application server.
    At application start up, it makes 4 calls to server and get appropriate data. However once the application is up and hence forth I make any calls cause the error. I observed that the mid-tier java code (Remote Object) is not invoked by later flex calls. The faultDetails of FaultEvent says that “Channel disconnected before an acknowledgement was received”.
    I am not using HTTPS secured protocal.
    Has anybody face this kind of issues? Any input, suggestion or solution would be greatly appreciated.
    Other details are
    OS  : S64
    BlazdDS : Community Edition: 4.0.0.10620
    App. Server        : Weblogic 10.3.3
    The snippet of flashlog
    [DEBUG] mx.messaging.Channel 'my-amf' channel got status. (Object)#0
      code = "NetConnection.Call.BadVersion"
      description = ""
      details = ""
      level = "error"
    FaultEvent.faultString :- Channel disconnected
    FaultEvent.faultDetail :- Channel disconnected before an acknowledgement was received
    Thanks
    --sachin

    I don't know what "S64" is, but it seems like someone is messing with the bytes of the AMF response so that the AMF deserializer in the Flash Player doesn't like the version header.  I assume you are running the latest player.  Probably need to check any network infrastructure and/or servlet filters.

  • Channel Disconnected... Please no!

    Hi
    I'm having a problem that's driving me insane because I just can't find a answer for it...
    I generated a service on Flash Builder to connect to my database, which was working fine until I uploaded the application to my web server.
    The thing is that it wasn't even working locally and I was getting the same error, which was fixed by setting the port variable on my service php file to 3306 (it was empty before). Alright, then when it was working locally I uploaded everything, changed the amf_config paths (it gave me a different error before the paths were correct so I doubt this is the cause), but then the same error I was having before reapeared:
    Channel disconnected
    Channel disconnected before an acknowledgement was received
    I've checked everything on the php file and it should be connecting to the database, so can this port variable be the issue here or something? 3306 won't work, leaving it blank won't work...always the same error!
    I have searched everywhere for an answer and can't find anything that helps me with this.
    If you can help, please let me know! Thanks!

    Fixed!
    I used firebug and I finally managed to find out what was going on.
    gateway.php was returning an error like this:
    Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)...
    mysqli_stmt_bind_result was requesting a lot of information, most unecessary, so I modified my query and mysqli_stmt_bind_result to only get the right database fields.
    Hope this helps anyone who ever comes across the same problem!

  • Channel Disconnected

    I have develop an application flex with php and use xml file in php script
    i have received and error of channel disconnected before the acknowledgment was received wiht larg file of xml where it work fine with smal file of xml.
    please reply me the correct solution
    Thanks in advance
    Safwan,

    Most likely this is really a serious error Flash builder 4 or Zend.
    I installed an older version of Flex Builder 3 and connection with the same mySQL database work fine.

  • View Channel disconnected error

    Hi Everyone,
    I received a Channel disconnected error, how can I view where the error is occuring?  Is that possible?
    Wesley

    I finally figured out what I was doing wrong. I was following davidflex's insturction at http://forums.adobe.com/thread/875709 and did not realize that I ahve to set host = "localhost:8889" in my php that connects to my remote mysql server. It's tricky because sicen it's remote server, you should set host = your domain, but that's not right. As davidflex said you need to set host = "local:8889" since your gateway.php is also running on the remote server.
    I stumbled for several weeks and hope someone else won't get stuck like I did for serveral weeks.

  • Can I re-install Flex Builder trial after 60 days again?

    As far as I understand Flex Builder trial version stops working after 60 days.
    Can I after the 60 days uninstall Flex Builder and re-install it again with 60 more days or does Flex Builder somewhere
    (e.g. in Registry ) set a flag that Flex Builder was already installed?
    In other words do the 60 days count per installation or per computer?
    Peter

    No.
    But if you are a student you can receive Flex Builder for free (google it).
    And of course you can use Flex SDK absolutely free with Eclipse (except Flex Data Visualisation components - AdvancedDataGrid, Charts).

  • I have recently downloaded Indesign CC on a trial basis, however once the App launches it displays 'Your trial has expired', anyone help?

    I have recently downloaded Indesign CC on a trial basis, however once the App launches it displays 'Your trial has expired', anyone help?

    http://helpx.adobe.com/x-productkb/global/trial-software-expired-early.html

Maybe you are looking for