2 Replies Latest reply on Jul 3, 2009 8:56 PM by Ansury

    Error when running app

    wesley.d.gibbs

      Hello all, I'm unable to figure out why I get this error below:

       

      [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.wesleygibbs.com/database_combo_info.asp?p_random=421"]. URL: http://www.wesleygibbs.com/database_combo_info.asp?p_random=421"]
      at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\p rojects\rpc\src\mx\rpc\AbstractInvoker.as:220]
      at mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder .as:53]
      at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:103]
      at DirectHTTPMessageResponder/errorHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\ mx\messaging\channels\DirectHTTPChannel.as:362]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/onComplete()

       

       

      The related code is:

       

      [

      Bindable] private var dgDataUrl:String;

       

       

       

       

       

       

       

      private

       

      function initApp():void {

       

       

          var currentDate:Date = new Date();

       

       

       

       

          currentDate =

      new Date();

          dbDataHttpService.url =

      http://www.wesleygibbs.com/database_information.asp?p_random= + currentDate.millisecondsUTC;

          dbDataHttpService.send();

          refresh.start();

      }

       

       

       

      <mx:HTTPService id="dbDataHttpService"

      url="

      {dgDataUrl}"

      concurrency="

      multiple"

      method="

      post"

      result="dgDataResultHandler(event);"

      resultFormat="

      e4x"

      showBusyCursor="

      true"

      fault="dgDataFaultHandler(event);"

      />

       

       

      Any ideas on why I get this error? 

       

      Wes

       

       

        • 1. Re: Error when running app
          Ansury Level 3

          Does the site have a crossdomain.xml file correctly set up?  Might just need to add that.

          • 2. Re: Error when running app
            sri harsha namala Level 2

            Hi,

                     Just Check any Proxy might be enabled in Your Browser or URL u specified may be Wrong, I tested with the Url which u posted its working fine.  Below is my code go through it once.

             

             

            <?xml version="1.0" encoding="utf-8"?>
            <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" creationComplete="initApp()">
                <mx:Script>
                    <![CDATA[
                        import mx.controls.Alert;
                        import mx.rpc.events.FaultEvent;
                        import mx.rpc.events.ResultEvent;
                        private function resultEvent(event:ResultEvent):void
                        {
                            Alert.show("Result->"+event.result.toString());
                        }
                        private function faultEvent(event:FaultEvent):void
                        {
                            Alert.show(event.fault.toString());
                        }
                        private function initApp():void
                        {
                            var currentDate:Date = new Date();
                            service.url ="http://www.wesleygibbs.com/database_information.asp?p_random=" + currentDate.millisecondsUTC;
                            service.send();
                        }
                    ]]>
                </mx:Script>
                <mx:HTTPService id="service" url="http://www.wesleygibbs.com/database_combo_info.asp?p_random=421" result="resultEvent(event)" fault="faultEvent(event)"/>
            </mx:Application>