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
MattFS218MattFS218 

Getting Started with Flex, Not Working...

I'm havine issues getting the Flex Hello World example working. I recieve a login fault, but I've entered the username and password correctly. Also for some reason, upon executing in debug mode, it always blocks at  

var lr:LoginRequest = new LoginRequest();

 

as if there's an invisible breakpoint. 

 

The fault response I am getting is

 

[SWF] C:\Users\Matthew\Documents\Flex Builder 3\Sample Sales Force Integration\bin-debug\main.swf - 1,292,278 bytes after decompression
(com.salesforce.events::ApexFaultEvent)#0
  bubbles = false
  cancelable = true
  context = (null)
  currentTarget = (null)
  eventPhase = 2
  fault = (mx.rpc::Fault)#1
    content = ""
    errorID = 0
    faultCode = "Server.Error.Request"
    faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://www.salesforce.com/services/Soap/u/11.0"]. URL: https://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: https://www.salesforce.com/services/Soap/u/11.0"]. URL: https://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 = ""
        dataFormat = "text"
      eventPhase = 2
      target = (flash.net::URLLoader)#3
      text = "Error #2032: Stream Error. URL: https://www.salesforce.com/services/Soap/u/11.0"
      type = "ioError"
  headers = (null)
  message = (mx.messaging.messages::ErrorMessage)#4
    body = ""
    clientId = "DirectHTTPChannel0"
    correlationId = "A46F3428-0A65-F43C-D7E6-E1DC03A657A1"
    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://www.salesforce.com/services/Soap/u/11.0"]. URL: https://www.salesforce.com/services/Soap/u/11.0"
    faultString = "HTTP request error"
    headers = (Object)#5
      DSStatusCode = 0
    messageId = "4713F820-2F15-591F-F878-E1DC1092095C"
    rootCause = (flash.events::IOErrorEvent)#2
    timestamp = 0
    timeToLive = 0
  messageId = "4713F820-2F15-591F-F878-E1DC1092095C"
  statusCode = 0
  target = (null)
  token = (mx.rpc::AsyncToken)#6
    message = (mx.messaging.messages::HTTPRequestMessage)#7
      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>matt@hellohunter.com</username><password>REMOVED</password></login></se:Body></se:Envelope>"
      clientId = (null)
      contentType = "text/xml; charset=UTF-8"
      destination = "DefaultHTTP"
      headers = (Object)#8
        DSEndpoint = "direct_http_channel"
      httpHeaders = (Object)#9
        Accept = "text/xml"
        SOAPAction = """"
        X-Salesforce-No-500-SC = "true"
      messageId = "A46F3428-0A65-F43C-D7E6-E1DC03A657A1"
      method = "POST"
      recordHeaders = false
      timestamp = 0
      timeToLive = 0
      url = "https://www.salesforce.com/services/Soap/u/11.0"
    responders = (Array)#10
      [0] (Connection.as$23::SalesForceResponder)#11
    result = (null)
  type = "fault"

 

 

I also tried the samples provided in the SDK file, but those are producing security sandbox violations.

 

It's really fustrating when example apps do not work out of the box. I'm using flex builder 3 with the 3.2 flex SDK and flash player 10. Does anyone have an out of box example I can use?

 

--matt

Message Edited by MattFS218 on 03-30-2009 08:30 PM
Best Answer chosen by Admin (Salesforce Developers) 
MattFS218MattFS218
Never mind, this appears to have been caused by the security token. I think hello world is working correctly now.