4 Replies Latest reply on Nov 23, 2010 2:08 PM by JoshBeall

    Zend_AMF call from Flex Hero on Android fails, but succeeds on simulator...

    EhlersD

      I'm using the built-in data services setup (Flash Builder 4 Burrito).  The code works perfectly to a remote server when run in the simulator (Burrito), but when run on the Android device itself (HTC Evo 4G), I get the following fault result from the Services call:

       

      Login Fault: (mx.messaging.messages::ErrorMessage)#0
        body = (Object)#1
        clientId = (null)
        correlationId = "C3FB150A-D7BD-938D-8FCB-76E6E63C77CF"
        destination = ""
        extendedData = (null)
        faultCode = "Client.Error.MessageSend"
        faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed:  HTTP: Failed: url:  'http://live.flockconnect.com/FlockConnectLIVE/gateway.php'"
        faultString = "Send failed"
        headers = (Object)#2
        messageId = "A0E6BA7A-D5AB-FBAF-6A5A-76E6EE59E983"
        rootCause = (mx.messaging.events::ChannelFaultEvent)#3
          bubbles = false
          cancelable = false
          channel = (mx.messaging.channels::AMFChannel)#4
            authenticated = false
            channelSets = (Array)#5
            connected = false
            connectTimeout = -1
            enableSmallMessages = true
            endpoint = "http://live.flockconnect.com/FlockConnectLIVE/gateway.php"
            failoverURIs = (Array)#6
            id = (null)
            mpiEnabled = false
            netConnection = (flash.net::NetConnection)#7
              client = (mx.messaging.channels::AMFChannel)#4
              connected = false
              maxPeerConnections = 8
              objectEncoding = 3
              proxyType = "none"
              uri = "http://localhost:37813/FlockConnectLIVE/gateway.php?hostport=live.flockconnect.com&https=N &id=-1"
            piggybackingEnabled = false
            polling = false
            pollingEnabled = true
            pollingInterval = 3000
            protocol = "http"
            reconnecting = false
            recordMessageSizes = false
            recordMessageTimes = false
            requestTimeout = -1
            uri = "http://live.flockconnect.com/FlockConnectLIVE/gateway.php"
            url = "http://live.flockconnect.com/FlockConnectLIVE/gateway.php"
            useSmallMessages = false
          channelId = (null)
          connected = false
          currentTarget = (mx.messaging.channels::AMFChannel)#4
          eventPhase = 2
          faultCode = "Channel.Connect.Failed"
          faultDetail = "NetConnection.Call.Failed: HTTP: Failed: url: 'http://live.flockconnect.com/FlockConnectLIVE/gateway.php'"
          faultString = "error"
          reconnecting = false
          rejected = false
          rootCause = (Object)#8
            code = "NetConnection.Call.Failed"
            description = "HTTP: Failed"
            details = "http://localhost:37813/FlockConnectLIVE/gateway.php?hostport=live.flockconnect.com&https=N &id=-1"
            level = "error"
          target = (mx.messaging.channels::AMFChannel)#4
          type = "channelFault"
        timestamp = 0
        timeToLive = 0

       

       

      I confirmed that I could reach the gateway from the device's browser, but within the app, "no joy".

       

      So, my question is what can be read from this error message?

       

      And what would cause the error to occur from the device, but not from my development system?

       

      Thanks in advance...