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.

Similar Messages

  • 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

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

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

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

  • 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

  • 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!

  • 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 fault after ~ 30 seconds on linux -works fine on windows

    Hi,
      I am having a Adobe AIR application with BlazeDS on Linux. Remote Objects are used to perform the business logic. The remote object also creates a RMI client object and communicates with the RMI server which performs some DB operations.
    After approximately 30 seconds the AMF channel disconnects with a Fault while the backend is still working. The AMF is simple AMF with id my-amf.
    I have tried setting the requestTimeout=0 and also -1 on the remote objects, but the result is same.
    Please find errors and the channel definitions pasted below.
    Any help is much appreciated.
    Thanks in advance.
    Regards,
    Latha
    Channel definition
    <channels>
    remoting-config.xml
    Here is the log extract
    ToolAccessMngr.invokeToolMethod: Inside invokeToolMethod
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer sending message ‘6F042089-0286-EE50-0244-4C5D8E70178F’
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer connected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer acknowledge of ‘6F042089-0286-EE50-0244-4C5D8E70178F’.
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer set destination to ‘ToolAccessMngr’.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer sending message ‘AEA0904A-8C56-D9BE-0A82-4C5E0F41C94E’
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer connected.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer sending message ‘F03B8162-A1B3-2376-4763-4C5E0F4EB11A’
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer acknowledge of ‘AEA0904A-8C56-D9BE-0A82-4C5E0F41C94E’.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer acknowledge of ‘F03B8162-A1B3-2376-4763-4C5E0F4EB11A’.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer sending message ‘E48F33FF-38C7-8A6F-C67B-4C5E97FEFE56′
    ‘CF0DE17F-AB7F-E863-4537-4C5C61C36744′ producer channel faulted with Channel.Call.Failed NetConnection.Call.Failed: HTTP: Failed
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer channel faulted with Channel.Call.Failed NetConnection.Call.Failed: HTTP: Failed
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer channel faulted with Channel.Call.Failed NetConnection.Call.Failed: HTTP: Failed
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer fault for ‘E48F33FF-38C7-8A6F-C67B-4C5E97FEFE56′.
    [ChannelFaultEvent faultCode="Channel.Call.Failed" faultString="error" faultDetail="NetConnection.Call.Failed: HTTP: Failed" channelId="my-amf" type="channelFault" bubbles=false cancelable=false eventPhase=2]
    [ChannelFaultEvent faultCode="Channel.Call.Failed" faultString="error" faultDetail="NetConnection.Call.Failed: HTTP: Failed" channelId="my-amf" type="channelFault" bubbles=false cancelable=false eventPhase=2]
    NetConnection.Call.Failed: HTTP: Failed
    NetConnection.Call.Failed: HTTP: Failed
    ToolAccessMngr.invokeToolMethod: Inside invokeToolMethod
    ToolAccessMngr.invokeToolMethod: Inside invokeToolMethod
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer sending message ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8′
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer sending message ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8′
    ‘my-amf’ channel sending message:
    (mx.messaging.messages::RemotingMessage)#0
    body = (Array)#1
    clientId = “9E706DC1-2D0E-B462-81B5-51DE23E8F796″
    destination = “ToolAccessMngr”
    headers = (Object)#2
    messageId = “8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8″
    operation = “returnToolDetails”
    source = (null)
    timestamp = 0
    timeToLive = 0
    ‘my-amf’ channel polling stopped.
    ‘my-amf’ channel polling stopped.
    ‘my-amf’ channel disconnected.
    ‘my-amf’ channel disconnected.
    ‘my-amf’ channel has exhausted failover options and has reset to its primary endpoint.
    ‘my-amf’ channel has exhausted failover options and has reset to its primary endpoint.
    ‘my-amf’ channel endpoint set to http://localhost:8080/proj/messagebroker/amf
    ‘my-amf’ channel endpoint set to http://localhost:8080/proj/messagebroker/amf
    ‘CF0DE17F-AB7F-E863-4537-4C5C61C36744′ producer channel disconnected.
    ‘CF0DE17F-AB7F-E863-4537-4C5C61C36744′ producer channel disconnected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer channel disconnected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer channel disconnected.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer channel disconnected.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer channel disconnected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer fault for ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8′.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer fault for ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8′.
    <destination id="updateToolDetails">
    <properties>
    <source>com.amat.raadmin.ui.service.ToolAccessManagement</source>
    <scope>application</scope>
    </properties>
    </destination>
    <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
    <endpoint url="http://localhost:8080/proj/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
    <properties>
    <add-no-cache-headers>false</add-no-cache-headers>
    <polling-enabled>false</polling-enabled>
    </properties>
    </channel-definition>
    <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
    <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
    <properties>
    <add-no-cache-headers>false</add-no-cache-headers>
    </properties>
    </channel-definition>
    <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
    <endpoint url="http://localhost:8080/proj /messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
    <properties>
    <polling-enabled>true</polling-enabled>
    <polling-interval-seconds>4</polling-interval-seconds>
    </properties>
    </channel-definition>

    Hi,
      I am having a Adobe AIR application with BlazeDS on Linux. Remote Objects are used to perform the business logic. The remote object also creates a RMI client object and communicates with the RMI server which performs some DB operations.
    After approximately 30 seconds the AMF channel disconnects with a Fault while the backend is still working. The AMF is simple AMF with id my-amf.
    I have tried setting the requestTimeout=0 and also -1 on the remote objects, but the result is same.
    Please find errors and the channel definitions pasted below.
    Any help is much appreciated.
    Thanks in advance.
    Regards,
    Latha
    Channel definition
    <channels>
    remoting-config.xml
    Here is the log extract
    ToolAccessMngr.invokeToolMethod: Inside invokeToolMethod
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer sending message ‘6F042089-0286-EE50-0244-4C5D8E70178F’
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer connected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer acknowledge of ‘6F042089-0286-EE50-0244-4C5D8E70178F’.
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer set destination to ‘ToolAccessMngr’.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer sending message ‘AEA0904A-8C56-D9BE-0A82-4C5E0F41C94E’
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer connected.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer sending message ‘F03B8162-A1B3-2376-4763-4C5E0F4EB11A’
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer acknowledge of ‘AEA0904A-8C56-D9BE-0A82-4C5E0F41C94E’.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer acknowledge of ‘F03B8162-A1B3-2376-4763-4C5E0F4EB11A’.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer sending message ‘E48F33FF-38C7-8A6F-C67B-4C5E97FEFE56′
    ‘CF0DE17F-AB7F-E863-4537-4C5C61C36744′ producer channel faulted with Channel.Call.Failed NetConnection.Call.Failed: HTTP: Failed
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer channel faulted with Channel.Call.Failed NetConnection.Call.Failed: HTTP: Failed
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer channel faulted with Channel.Call.Failed NetConnection.Call.Failed: HTTP: Failed
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer fault for ‘E48F33FF-38C7-8A6F-C67B-4C5E97FEFE56′.
    [ChannelFaultEvent faultCode="Channel.Call.Failed" faultString="error" faultDetail="NetConnection.Call.Failed: HTTP: Failed" channelId="my-amf" type="channelFault" bubbles=false cancelable=false eventPhase=2]
    [ChannelFaultEvent faultCode="Channel.Call.Failed" faultString="error" faultDetail="NetConnection.Call.Failed: HTTP: Failed" channelId="my-amf" type="channelFault" bubbles=false cancelable=false eventPhase=2]
    NetConnection.Call.Failed: HTTP: Failed
    NetConnection.Call.Failed: HTTP: Failed
    ToolAccessMngr.invokeToolMethod: Inside invokeToolMethod
    ToolAccessMngr.invokeToolMethod: Inside invokeToolMethod
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer sending message ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8′
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer sending message ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8′
    ‘my-amf’ channel sending message:
    (mx.messaging.messages::RemotingMessage)#0
    body = (Array)#1
    clientId = “9E706DC1-2D0E-B462-81B5-51DE23E8F796″
    destination = “ToolAccessMngr”
    headers = (Object)#2
    messageId = “8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8″
    operation = “returnToolDetails”
    source = (null)
    timestamp = 0
    timeToLive = 0
    ‘my-amf’ channel polling stopped.
    ‘my-amf’ channel polling stopped.
    ‘my-amf’ channel disconnected.
    ‘my-amf’ channel disconnected.
    ‘my-amf’ channel has exhausted failover options and has reset to its primary endpoint.
    ‘my-amf’ channel has exhausted failover options and has reset to its primary endpoint.
    ‘my-amf’ channel endpoint set to http://localhost:8080/proj/messagebroker/amf
    ‘my-amf’ channel endpoint set to http://localhost:8080/proj/messagebroker/amf
    ‘CF0DE17F-AB7F-E863-4537-4C5C61C36744′ producer channel disconnected.
    ‘CF0DE17F-AB7F-E863-4537-4C5C61C36744′ producer channel disconnected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer channel disconnected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer channel disconnected.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer channel disconnected.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer channel disconnected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer fault for ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8′.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer fault for ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8′.
    <destination id="updateToolDetails">
    <properties>
    <source>com.amat.raadmin.ui.service.ToolAccessManagement</source>
    <scope>application</scope>
    </properties>
    </destination>
    <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
    <endpoint url="http://localhost:8080/proj/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
    <properties>
    <add-no-cache-headers>false</add-no-cache-headers>
    <polling-enabled>false</polling-enabled>
    </properties>
    </channel-definition>
    <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
    <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
    <properties>
    <add-no-cache-headers>false</add-no-cache-headers>
    </properties>
    </channel-definition>
    <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
    <endpoint url="http://localhost:8080/proj /messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
    <properties>
    <polling-enabled>true</polling-enabled>
    <polling-interval-seconds>4</polling-interval-seconds>
    </properties>
    </channel-definition>

  • Problem due to channel discoonnected?

    hi,
    i have an form and able to insert form data into database.But after inserting
    i got error ie channel disconnected.Why it is come?
    Regards
    D.Mahesh Babu

    hi,
    first create a database view by directly writing the join conditions in se11
    (donot use foreign key relation ships button),
    then use this database view in your program
    use your select query normally.
    it will fetch records having the same value of fields in join conditions
    hope i am clear
    reward if helpful
    prasanth

  • AMF channel return object format

    Hey,
    I am working with BlazeDS and JBoss 5.
    In Jboss I have AuthentificationFilter  before  Remote Objects... So each request must pass throw this filter.
    On server side:
    In the filter I am checking login session data and if it is ok ,it passes to Remote Object.
    If not I make following :
    httpResponse.getWriter().write("Session Invalid");
    On flex side :
    I get fault result from server, and I don't see "Session invalid" string. I have the fault of Bad Version, because  it is not AMF Channel , I quess.
    The question is how can I get String from this filter ???
    Thanks a lot!

    Hello,
    I wanted to start a new post but when reading this post, I think it is the same kind of issue I am facing for a few days now.
    I am using WebSphere (v6.1) and Java (EJB 2...) with Flex 3.4 as the frontend talking to BlazeDS.
    In some cases based on properties, my application (EJBs) should still be available but the UI (Flex) should be disabled.
    Throwing java exception in the (java) services methods works just fine since you can get the exception in Flex through the fault rootCause but I need/want to block the Flex app/calls before that...
    To do so, I thought that a (java) ServletFilter added in the web.xml would be the right place to process this check.
    If the properties says that the UI should not be accessed before launching the application frontend it is working just great. Indeed I am calling a servlet that will display the flash <object ...> but the filter is able to return an HTML information page...
    if the properties are set later on, when the flex app is already running, I am facing the issue!
    I tried several things but I can't get a usable message on flex side...
    In my "doFilter" method, I did try this:
    public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
              throws IOException, ServletException {
         // Cast the request & response
         HttpServletRequest request = (HttpServletRequest) req;
         HttpServletResponse response = (HttpServletResponse) res;
         // Try to send an exception that I could catch/match (at least the message) on the flex side...
         response.resetBuffer();
         response.setContentType("application/x-amf");
         MessageException me = new MessageException("Application closed");
         ErrorMessage em = me.getErrorMessage();
         FlexClient flexClient = FlexContext.getFlexClient();
         em.setClientId(flexClient.getId());
         Amf3Output amfOutput = new Amf3Output(SerializationContext.getSerializationContext()); 
         amfOutput.setOutputStream(response.getOutputStream()); 
         amfOutput.writeObject(em);
         amfOutput.flush(); 
         amfOutput.close(); 
         return;
    When doing so, I get an "Unsupported AMF version 2689" in Flashbug/Firebug under Firefox.
    And I first tried a much more simple thing (in the "doFilter" method) such as :
    throw new UnavailableException("Application closed");
    or
    res.sendError(HttpServletResponse.SC_TEMPORARY_REDIRECT);
    return;
    and I get this error :
    faultCode:Client.Error.DeliveryInDoubt faultString:'Channel disconnected'
    faultDetail:'Channel Disconnected before an acknowledement was received'
    I really hope someone will be able to help us since it does not look like a crazy use case.
    I have also tried to override the MessageBrokerServlet but I am facing the same issues...
    Thank you very much for your help and keep on doing great job on BlazeDS!!!

  • Amf-polling disconnects

    We are using blaze 4 and weblogic 10.3
    We are using 1 polling amf channel for all destinations (about 8). we do not have any netwrok bandwith crunch and have about 20 users using the system at peak. The polling interval is 3 seconds.
    The problem is channel disconnects.
    one point worth mentioing is that one destination fetches message of size - 50kb every 10 seconds.
    We see channel diconnects for over 7 minutes, following which we kill the client session, and request users to log back in.
    The problem occurs mostly when most users login at once.
    please note that the weblogic attains at peak 140MB of perm gen size - to give you an idea of the server side load. The max mem is set to 6g but on the whole the utilization is aboiut 2.5g.
    Also please note note that we have set time to live for these destinations as about 2-3 mins only so that no unnessesary build up happens on server.
    If you could please throw some light on this issue of polling amf disconnect it would be really helpful.

    We are using blaze 4 and weblogic 10.3
    We are using 1 polling amf channel for all destinations (about 8). we do not have any netwrok bandwith crunch and have about 20 users using the system at peak. The polling interval is 3 seconds.
    The problem is channel disconnects.
    one point worth mentioing is that one destination fetches message of size - 50kb every 10 seconds.
    We see channel diconnects for over 7 minutes, following which we kill the client session, and request users to log back in.
    The problem occurs mostly when most users login at once.
    please note that the weblogic attains at peak 140MB of perm gen size - to give you an idea of the server side load. The max mem is set to 6g but on the whole the utilization is aboiut 2.5g.
    Also please note note that we have set time to live for these destinations as about 2-3 mins only so that no unnessesary build up happens on server.
    If you could please throw some light on this issue of polling amf disconnect it would be really helpful.

  • Can Some One Help With A PHP Class?

    I have a simple function and I can not for the life of me get it to work properly. Here's the PHP:
    <?php
    class userProjectNotes {
              var $username = "user";
              var $password = "secret";
              var $server = "url-here.net";
              var $port = "3306";
              var $databasename = "mscoast";
              var $connection;
              public function __construct() {
                          $this->connection = mysqli_connect(
                                                                                      $this->server, 
                                                                                      $this->username, 
                                                                                      $this->password,
                                                                                      $this->databasename,
                                                                                      $this->port
                        $this->throwExceptionOnError($this->connection);
               * Gets all my stuffs from the places... Yeah... You get it...
              public function getAlluserProjectnotes($userTable) {
                        $stmt = mysqli_prepare($this->connection, "SELECT * FROM $userTable");
                        $this->throwExceptionOnError();
                        mysqli_stmt_execute($stmt);
                        $this->throwExceptionOnError();
                        $rows = array();
                        mysqli_stmt_bind_result($stmt, $row->notes_id, $row->date_added, $row->note, $row->pid);
                  while (mysqli_stmt_fetch($stmt)) {
                    $rows[] = $row;
                    $row = new stdClass();
                    mysqli_stmt_bind_result($stmt, $row->notes_id, $row->date_added, $row->note, $row->pid);
                        mysqli_stmt_free_result($stmt);
                  mysqli_close($this->connection);
                  return $rows;
    ?>
    ( I ommited the ThrowexceptionOnError to save space in this post.
    And here is my call to it:
    protected function list_creationCompleteHandler():void
                                            userProjectNotes.endpoint = "http://www.url-here.net/app-resources/gateway.php";
                                            getAlluserProjectnotesResult.token = userProjectNotes.getAlluserProjectnotes(userNotesTable);
    it works locally, but remotely I get:
    Channel disconnected before an acknowledgement was received

    Yup yup! My other services are working fine. just this one service is causing the issue...
    [zend]
    ;set the absolute location path of webroot directory, example:
    ;Windows: C:\apache\www
    ;MAC/UNIX: /user/apache/www
    webroot =/var/www/url-here.net/web/app-resources
    ;set the absolute location path of zend installation directory, example:
    ;Windows: C:\apache\PHPFrameworks\ZendFramework\library
    ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library
    zend_path = /var/www/url-here.net/web/app-resources/ZendFramework/library
    [zendamf]
    amf.production = false
    amf.directories[]=services

  • Two remote objects calls on the same php class

    Hi to all,
           I've encountered a strange issue while developing with remote objects.
    I've a mxml component with an init() method inside which is called by a menu.
    When the init() method is called it makes 7 remote object calls which are bound to some components' dataprovider.
    Among this calls I've got 2 remote object which refer to the same remote class. This because I have to call the class twice and the bind the result to two different combobox. Below you find the code:
    <mx:RemoteObject id="myFile" source="myRemoteClass" destination="amfphp"  showBusyCursor="true" makeObjectsBindable="true" fault="traceFault(event)"/>
    <mx:RemoteObject id="myXls"  source="myRemoteClass" destination="amfphp"  showBusyCursor="true" makeObjectsBindable="true" fault="traceFault(event)"/>
    in the init function I make this calls:
    myFile.listDir("dir_1")
    myXls.listDir("dir_2")
    then in the mxml code I bound the result of myFile to combobox1 and the result of myXls on combobox2.
    The problem arise when I call the myXls' listDir method. When I call it I receive the following error:
    code:
    Client.Error.DeliveryInDoubt
    Message:
    Channel disconnected
    Detail:
    Channel disconnected before an acknowledgement was received
    The strange thing is that not only the myXls object returns this error, but also all the other 6 remote object return the same error above.
    I'm not sure, but I guess that the error could be caused by the two remote object which call the same php remote class. If I comment one of the two calls everything works fine.
    Do you have any suggestion about?
    Thanks!!
    Bye
    Luke

    Hi Jan.
    1) We have the 2 VO, each with 3 rows to fill in data. What I mean is that when i just fill in all the fields for the first row of the first VO, and the value of one of these fields is bigger than 50, then after the exception is thrown and the message is displayed, the fields for the first VO are duplicated and shown in the second VO as if the user had inserted them.
    2) We tried yesterday the validateEntity and a Method and Atributte Validator approaches after reading that white paper with the same results.
    The validation is correctly done using any of the those methods.
    I will try to reproduce this issue with the HR schema.
    Thanks in advance once again.

Maybe you are looking for