1 2 Previous Next 75 Replies Latest reply: Oct 6, 2015 5:02 AM by Yozef0 RSS

    URLLoader doesn't work(IOError #2032) in AIR SDK version 2.5

    ShinyaArao Community Member



      I'm troubling with URLLoader.load() method only in AIR SDK version 2.5.


      Simply it doesn't work...

      When 'load' method is called, the IOError below is raised


      Error Event message:

      >IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:8888/login/remoteLogIn?account=xxx" errorID=2032


      # Additionaly, HTTPStatusEvent.status = 0


      At the same code, same environment, it works if I chage AIR SDK version from 2.5 to Other(2.0/1.5)

      #Flex SDK version is 4.1


      The problem code is...


      function initLoader():void{


              var url:String  = "http://hoge.com/servletName";

              var variables:URLVariables = new URLVariables();

               variables.account = "xxx";

              var request:URLRequest = new URLRequest(url);


               request.data = variables;



                var loader:URLLoader = new URLLoader(request)



              loader.addEventListener(Event.COMPLETE, completeEventListener);

              loader.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, responseListener);

              loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, responseListener);

              loader.addEventListener(IOErrorEvent.IO_ERROR, responseListener);

              loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, responseListener);




      function completeEventListener(e:Event):void{

           //some codes...



      function responseListener(e:Event):void{

           //catch error event here.



      I tryed another environment and another simple test code but it happens in any situation if AIR SDK version is 2.5.


      Is anybody has same problem and has resolution of this problem?


      With this problem, I can't access http server with AIR for Android.



        1 2 Previous Next