function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
fullvaluefullvalue 

Flex Error

Anyone seen this error before?  I am trying to run a flex app on a web server.


(com.salesforce.events::ApexFaultEvent)#0

  bubbles = false

  cancelable = true

  context = (null)

  currentTarget = (null)

  eventPhase = 2

  fault = (mx.rpc::Fault)#1

    errorID = 0

    faultCode = "Server.Error.Request"

    faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0"

    faultString = "HTTP request error"

    message = "faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0'"

    name = "Error"

    rootCause = (flash.events::IOErrorEvent)#2

      bubbles = false

      cancelable = false

      currentTarget = (flash.net::URLLoader)#3

        bytesLoaded = 0

        bytesTotal = 0

        data = (null)

        dataFormat = "text"

      eventPhase = 2

      target = (flash.net::URLLoader)#3

      text = "Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"

      type = "ioError"

  message = (mx.messaging.messages::ErrorMessage)#4

    body = (Object)#5

    clientId = "DirectHTTPChannel0"

    correlationId = "026E48D3-1BFD-8AA6-A5D6-CDE8A1C8B7D8"

    destination = ""

    extendedData = (null)

    faultCode = "Server.Error.Request"

    faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0"

    faultString = "HTTP request error"

    headers = (Object)#6

    messageId = "154CD995-435D-2011-47FB-CDE8A2A25895"

    rootCause = (flash.events::IOErrorEvent)#2

    timestamp = 0

    timeToLive = 0

  messageId = "154CD995-435D-2011-47FB-CDE8A2A25895"

  target = (null)

  token = (mx.rpc::AsyncToken)#7

    message = (mx.messaging.messages::HTTPRequestMessage)#8

      body = "<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/"><se:Header xmlns:sfns="urn:partner.soap.sforce.com"/><se:Body><login xmlns="urn:partner.soap.sforce.com" xmlns:ns1="sobject.partner.soap.sforce.com"><username>xxxxxxxx@xxxxxx.com</username><password>xxxxxxxxxxxxx9KYz1Hmt965XXXXQcNVpjaq61</password></login></se:Body></se:Envelope>"

      clientId = (null)

      contentType = "text/xml; charset=UTF-8"

      destination = "DefaultHTTP"

      headers = (Object)#9

        DSEndpoint = "direct_http_channel"

      httpHeaders = (Object)#10

        Accept = "text/xml"

        SOAPAction = """"

        X-Salesforce-No-500-SC = "true"

      messageId = "026E48D3-1BFD-8AA6-A5D6-CDE8A1C8B7D8"

      method = "POST"

      recordHeaders = false

      timestamp = 0

      timeToLive = 0

      url = "http://www.salesforce.com/services/Soap/u/11.0"

    responders = (Array)#11

      [0] (::SalesForceResponder)#12

    result = (null)

  type = "fault"

Ron HessRon Hess
the Flex security model will require that you are running this on https server,  unless you specify "http" using connection.protocol();

in addition, you will need to pass a security token appended to your password unless you have enabled the IP range in your network configuration ( under setup)
it does look like you have done this correctly.


both will generate the io error you see.

if your server is not HTTPS, but is HTTP, you can set that on the connection, something like this

Code:
   if ( URLUtil.getProtocol(this.url) == 'http' ) {
    apex.protocol = 'http'; // needed for localhost testing (unless you have https localhost)
   }
   

 



fullvaluefullvalue
Ron I am getting this message in IE again.  This is from a flex app that I uploaded to Saleforce.  The IP is in the trusted range. 
 

fault from operation: (com.salesforce.events::ApexFaultEvent)#0

  bubbles = false

  cancelable = true

  context = (null)

  currentTarget = (null)

  eventPhase = 2

  fault = (mx.rpc::Fault)#1

    errorID = 0

    faultCode = "Server.Error.Request"

    faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"]. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"

    faultString = "HTTP request error"

    message = "faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"]. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX'"

    name = "Error"

    rootCause = (flash.events::IOErrorEvent)#2

      bubbles = false

      cancelable = false

      currentTarget = (flash.net::URLLoader)#3

        bytesLoaded = 0

        bytesTotal = 0

        data = (null)

        dataFormat = "text"

      eventPhase = 2

      target = (flash.net::URLLoader)#3

      text = "Error #2032: Stream Error. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"

      type = "ioError"

  message = (mx.messaging.messages::ErrorMessage)#4

    body = (Object)#5

    clientId = "DirectHTTPChannel0"

    correlationId = "D3625C78-A464-C5A2-9556-DECD3F2324E7"

    destination = ""

    extendedData = (null)

    faultCode = "Server.Error.Request"

    faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"]. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"

    faultString = "HTTP request error"

    headers = (Object)#6

    messageId = "497965BD-57E0-69D6-8A53-DECD405BB1A8"

    rootCause = (flash.events::IOErrorEvent)#2

    timestamp = 0

    timeToLive = 0

  messageId = "497965BD-57E0-69D6-8A53-DECD405BB1A8"

  target = (null)

  token = (mx.rpc::AsyncToken)#7

    message = (mx.messaging.messages::HTTPRequestMessage)#8

      body = "<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/"><se:Header xmlns:sfns="urn:partner.soap.sforce.com"><sfns:SessionHeader><sessionId>511500D300000001JdX!AR8AQEtJKr.DwggK5nqnCWpB1cy_jAFzuxVcV2gKEtssnm7pbax4FyM3pUk9se5kyCK7fsDNO725DKv6SW8_grvzQfmCLdVo</sessionId></sfns:SessionHeader><sfns:LoginScopeHeader><organizationId>00D300000001JdXEAU</organizationId></sfns:LoginScopeHeader></se:Header><se:Body><query xmlns="urn:partner.soap.sforce.com" xmlns:ns1="sobject.partner.soap.sforce.com"><queryString>Select Name From User where Id = '005300000011SNoAAM'</queryString></query></se:Body></se:Envelope>"

      clientId = (null)

      contentType = "text/xml; charset=UTF-8"

      destination = "DefaultHTTPS"

      headers = (Object)#9

        DSEndpoint = "direct_http_channel"

      httpHeaders = (Object)#10

        Accept = "text/xml"

        SOAPAction = """"

        X-Salesforce-No-500-SC = "true"

      messageId = "D3625C78-A464-C5A2-9556-DECD3F2324E7"

      method = "POST"

      recordHeaders = false

      timestamp = 0

      timeToLive = 0

      url = "https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"

    responders = (Array)#11

      [0] (::SalesForceResponder)#12

    result = (null)

  type = "fault"

Ron WildRon Wild
Have you recently installed Flash Player 10?  One of my Flex apps just started raising the DefaultHTTPS message in an error on systems using Flash 10. 
 
I haven't found the problem yet but will post it when I've figured it out.
 
 
fullvaluefullvalue
This is happening in Flash 9.
Ron WildRon Wild
I showed the bug (my version of it at least) to James Ward (Adobe) and Dave Carroll (Salesforce) at Dreamforce this week ... apparently a cross-domain policy file hosted on one or two of the SF servers needed to be updated.

We were able to connect to na5.salesforce.com from flex, but not the default connection www.salesforce.com.

It looks like someone made the required update, as I'm no longer seeing the error.  Hopefully this addressed your issue as well.

Thank you James and Dave!


fullvaluefullvalue
Awesome! Thanks for doing that! I glad I wasn't alone.
turntwo463turntwo463

I'm also hitting this error when trying to use the http protocol from the Flex API. My code is taken from the sample:

 

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="login()">
    <mx:Script>
        <![CDATA[
            import com.salesforce.Connection;
            import com.salesforce.objects.LoginRequest;
            import com.salesforce.AsyncResponder;
            import com.salesforce.events.ApexFaultEvent;
       
            private function login():void
            {
               
               
                var lr:LoginRequest = new LoginRequest();
                var conn:Connection = new Connection();
              
                    //set the username, password, token on component
                                       
                    lr.password = "myPassword" + "myToken";
                    lr.username = "myUserName";
                    var loginResponder:AsyncResponder = new AsyncResponder(loginCallback, faultHandler);
                    lr.callback = loginResponder;
                  
                    conn.protocol = "http";
                    conn.login(lr);
                }
               
       
            }
           
                       
            private function faultHandler(fault:Object):void
            {
                trace("fault " + fault.toString());
                if (fault instanceof ApexFaultEvent)
                {
                    trace("fault: " + ApexFaultEvent(fault).message);
                }
               
            }
            private function loginCallback(result:Object):void
            {
                  trace("logged in " + result.toString());
                     
            }
        ]]>
    </mx:Script>
</mx:Application>

 

This code logs in correctly when using the https protocol.  I get the following fault when changing the protocol to http:

 

fault [FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0"] messageId="3EC0A1B7-2744-64DB-3C58-635063AEC548" type="fault" bubbles=false cancelable=true eventPhase=2]
fault: (mx.messaging.messages::ErrorMessage)#0
  body = (null)
  clientId = "DirectHTTPChannel0"
  correlationId = "4985F3E3-6C71-97A9-350A-63505D74A74B"
  destination = ""
  extendedData = (null)
  faultCode = "Server.Error.Request"
  faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0"
  faultString = "HTTP request error"
  headers = (Object)#1
    DSStatusCode = 0
  messageId = "3EC0A1B7-2744-64DB-3C58-635063AEC548"
  rootCause = (flash.events::IOErrorEvent)#2
    bubbles = false
    cancelable = false
    currentTarget = (flash.net::URLLoader)#3
      bytesLoaded = 0
      bytesTotal = 0
      data = (null)
      dataFormat = "text"
    eventPhase = 2
    target = (flash.net::URLLoader)#3
    text = "Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"
    type = "ioError"
  timestamp = 0
  timeToLive = 0

 

 

I've also tried the suggestion at http://www.salesforce.com/us/developer/docs/api/Content/implementation_considerations.htm

to try the URL of:
http://www.salesforce.com/services/Soap/c/15.0
 

 

conn.serverUrl = "http://www.salesforce.com/services/Soap/c/15.0";
conn.protocol = "http";

 

This also produces a similar fault:

 

fault [FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/c/15.0"]. URL: http://www.salesforce.com/services/Soap/c/15.0"] messageId="1600E819-CF4C-7C87-3989-63457DC378DB" type="fault" bubbles=false cancelable=true eventPhase=2]
fault: (mx.messaging.messages::ErrorMessage)#0
  body = (null)
  clientId = "DirectHTTPChannel0"
  correlationId = "000507BA-071A-A8AE-5521-634574DA02AC"
  destination = ""
  extendedData = (null)
  faultCode = "Server.Error.Request"
  faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/c/15.0"]. URL: http://www.salesforce.com/services/Soap/c/15.0"
  faultString = "HTTP request error"
  headers = (Object)#1
    DSStatusCode = 0
  messageId = "1600E819-CF4C-7C87-3989-63457DC378DB"
  rootCause = (flash.events::IOErrorEvent)#2
    bubbles = false
    cancelable = false
    currentTarget = (flash.net::URLLoader)#3
      bytesLoaded = 0
      bytesTotal = 0
      data = (null)
      dataFormat = "text"
    eventPhase = 2
    target = (flash.net::URLLoader)#3
    text = "Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/c/15.0"
    type = "ioError"
  timestamp = 0
  timeToLive = 0

 

Finally I've tried setting the URL to "http://na5.salesforce.com"  and "http://www.salesforce.com", and in both these cases the response is a fault and is bringing back the HTML page source for those addresses.

 

I've run out of ideas at the moment and would greatly appreciate some suggestions and insight!

 

Thanks in advance,

David

 

 

SuperfellSuperfell
Flex won't let you mismatch the protocols for security reasons, and there's no reason what so ever to use http (instead of https) to do the login call.