0 Replies Latest reply on Jun 9, 2010 8:22 AM by iamcootis

    Stream Error in Webservice call

    iamcootis Level 1

      I am using Tomcat 5.5, and Flex 4, Cairngorm 2.2 to call a webservice on my server.

       

      I am getting this error:

      fault in command:(mx.messaging.messages::ErrorMessage)#0
        body = ""
        clientId = "DirectHTTPChannel0"
        correlationId = "585E07E2-EDD7-87FC-8145-1D3526C7BE5D"
        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://localhost:8080/Spectre/Provisioning"]. URL: http://localhost:8080/Spectre/Provisioning"
        faultString = "HTTP request error"
        headers = (Object)#1
          DSStatusCode = 0
        messageId = "7F54E6BB-1017-FB16-9005-1D352EC76DEC"
        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: http://localhost:8080/Spectre/Provisioning"
          type = "ioError"
        timestamp = 0
        timeToLive = 0

       

      Here is my code in the Cairngorm business delegate:

              public function ApplicationBusinessDelegate(responder:IResponder) {     
                  provisioning = new Provisioning();
                  this.responder = responder;
              }
             
             
              public function getProvisionedServers():void {
                  // Make server call
                  var call : Object = provisioning.serviceControl.getProvisionedServers();     
                 
                  // Add the IResponder as the responder on the call so it can
                  // delegate result and fault events to the Command/IResponder
                  call.addResponder(responder);
              }

       

      And here is what it looks like in my command:

       

      public function execute(event:CairngormEvent):void {
                  testEvent = event as TestEvent;
                 
                  try {
                      // Get business delegate passing this IResponder in the ctor
                      delegate = new ApplicationBusinessDelegate(this);
                     
                      switch (testEvent.type) {
                      // Make call
                          // Save Test
                          case TestEvent.GET_PROVISIONED_SERVERS:
                              delegate.getProvisionedServers();
                              break;   
                         
                      }               
                  } catch (error:Error) {               
                      // Set the error into the model
                      trace(error.message);
                      trace(error.getStackTrace());               
                     
                      // Pull the ripcord
                      return;
                  }
              }

       

      It makes it this far without an error, then it goes to the Cairngorm code which I cannot see and the error above is called. Any idea what is triggering this error? I have already checked and the WSDL is on the server and I can reach it in my browser.