• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
1

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

Guest
Dec 16, 2010 Dec 16, 2010

Copy link to clipboard

Copied

Hi,

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.load(_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.

Thanks.

TOPICS
Performance issues

Views

47.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 23, 2011 Jan 23, 2011

Copy link to clipboard

Copied

the thread is about AIR sdk, so it's about AIR version not browser

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 10, 2011 Feb 10, 2011

Copy link to clipboard

Copied

WORKAROUND:

Disable the network monitor before deploying to the device.

Choose Window > Show View > Other > Flash Builder > Network Montitor, then click the Disable Monitor button.

EXPLANATION:

I had this problem when I tried to access a webservice:

"faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL"

Investigating the FaultEvent > [inherited] > Message revealed the following error:

Error #2032: Stream Error. URL: http://localhost:37813/<service url>?WSDL?hostport=<server name>&https=N&id=<id>

That is not the direct URL to my webservice. It seems to be modified by the network monitor to be able to catch the network I/O of the device during debugging. As far as I can see there are two problems: 1) it doesn't work when you debug on the device and 2) it is not removed when you deploy.

STEPS TO REPRODUCE:

  1. create an AIR for Android app
  2. add a webservice
  3. call the webservice
  4. enable network monitor
  5. debug on or deploy to device

Cheers,                  - Jon -

http://www.webbsites.nl

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 28, 2011 Feb 28, 2011

Copy link to clipboard

Copied

Hi,

new AIR 2.6 solve this error!!

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 28, 2011 Feb 28, 2011

Copy link to clipboard

Copied

Since Adobe AIR 2.6 SDK at the moment is only released for Android, does anyone know when to expect the released 2.6 SDK for desktop environments?  Our need is not limited to mobile as this affected Windows as well.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 28, 2011 Feb 28, 2011

Copy link to clipboard

Copied

The desktop releases are planned to follow in a few weeks (mid to late March.)

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 28, 2011 Feb 28, 2011

Copy link to clipboard

Copied

Thanks for all your comments.

I guess this problem is solved in AIR2.6.

Just update your AIR SDK Version to 2.6 if you are in trouble this problem.

Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2011 Mar 01, 2011

Copy link to clipboard

Copied

SDK 2.6 has not been released only the runtime environment "Adobe is on target to deliver the AIR 2.6 SDK and desktop runtime before the 2nd half of 2011"

http://blogs.adobe.com/air/2011/02/adobe-air-2-6-for-android-is-now-available.html

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 08, 2011 Mar 08, 2011

Copy link to clipboard

Copied

hello..

Today testing after install air2.6 sdk,

But.....

Not working URLoader

My develop App is CameraUI pick Photo and send Photo Desktop..

exmaple)

bdata = new BitmapData(photoZone.width, photoZone.height);
bdata.draw(photoZone);
//roll.addBitmapData(bdata);
var objRequest:URLRequest = new URLRequest("http://192.168.123.106/save.php");
var objJPEGEnc:JPEGEncoder = new JPEGEncoder(80);
var objByteData:ByteArray = objJPEGEnc.encode(bdata);
objRequest.data = objByteData;
objRequest.method = URLRequestMethod.POST;
objRequest.contentType = 'application/octet-stream';
try {
  this.objLoader.load(objRequest);
} catch (error:ArgumentError) {
  trace("An ArgumentError has occurred.");
} catch (error:SecurityError) {
  trace("A SecurityError has occurred.");
}

not air is good send photo..

air not working still......

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 09, 2011 Mar 09, 2011

Copy link to clipboard

Copied

Hi, was this done using a prerelease version of the AIR 2.6 SDK?  If so, could you give me the version number?

Thanks,

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 10, 2011 Mar 10, 2011

Copy link to clipboard

Copied

I got the same issue while connecting to HTTP calls from a native installation of AIR app. It is working fine when i run application which installed form AIR file but fails when i install it as EXE.

Disabling Network Monitor really helped me. Not sure if this is something which was causing problem, but now i am able to run application from navtive installation also.

Note: I am using Flex SDK 4.1 + AIR SDK 2.5

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 24, 2011 May 24, 2011

Copy link to clipboard

Copied

Hi,

We're experiencing the same when using URLLoader in a mobile project on Android... We used the latest Flex 4.5 SDK to build our application and the issue is only showing when we deploy/test the application to the test-device(s) (Android 2.2 and 3.1) When we debug using the simulator everything is running fine, also using the same code in a desktop application runs fine...

Someone experiencing the same with the latest Flex 4.5 release?

Thanks and kind regards,

Kris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 25, 2011 May 25, 2011

Copy link to clipboard

Copied

Yes I am also facing the same problem.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 25, 2011 May 25, 2011

Copy link to clipboard

Copied

this issue is fixed in air 2.6

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 25, 2011 May 25, 2011

Copy link to clipboard

Copied

Dear,

The issue is still occurring when used in a mobile application compiled using the latest official Flash Builder 4.5 and Flex 4.5 SDK (I assume Flex SDK 4.5 comes with Air 2.6). I can confirm the issue is fixed when running the application on the desktop, but when it is deployed to a mobile device the issue occurs again.

Kr,

Kris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 25, 2011 May 25, 2011

Copy link to clipboard

Copied

yep, it was fixed but after last update 2.6.0.1915 it is back I think. I must debug again but it is not working now

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 25, 2011 May 25, 2011

Copy link to clipboard

Copied

For those running into this error, could you please add a new bug to bugbase.adobe.com and post back with a link so that others can cast their votes?  In the bug, please include sample source code and a full description, including a link to this thread.

Thanks,

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 26, 2011 May 26, 2011

Copy link to clipboard

Copied

Bug created: https://bugbase.adobe.com/index.cfm?event=bug&id=2881807

Please vote on this bug if you experience the same!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 26, 2013 Dec 26, 2013

Copy link to clipboard

Copied

Vote? for a bug fix? How about just fix it?  Still present in 3.9.

Air is dead. The pace of bug fixes and features has slowed to a crawl.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 27, 2011 May 27, 2011

Copy link to clipboard

Copied

I had a similar issue for iOS and determined that our web server certificate wasn't valid.  After updating the certificate, the 2032 no longer happens.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 30, 2011 May 30, 2011

Copy link to clipboard

Copied

Um....The point of My Question is 'Not working URLLoader in Local Network'...

For Example, When url is http://ertr2.mireene.com, URLLoader is good working in AIR 2.5,

but when url is http://192.168.0.10 , URLLoader is not working in this platform...

important point, this problem is appeared in IOS and Android development.

Finally I had solved this problem, not used local network(http://192.168......)  and using external network(exist server).

URLLoader is not working in localhost or internal network!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 03, 2011 Nov 03, 2011

Copy link to clipboard

Copied

Help! 

I have a traditional URLLoader/URLRequest setup that loads an external XML file.

It works flawlessly in the AIR Launcher ... but when I try on my device it fails... giving me this message over the remote debug session:

"...text=Error #2032: Stream Error. URL: app:/assets/xml/projects.xml"

I've even tried changing my code to use the File.applicationDirectory approach. But once again,... it only works in the AIR Launcher... not on the device!

What am I missing? Anyone have a clue?  Thanks in advance for anyone who can help or hint!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 01, 2011 Dec 01, 2011

Copy link to clipboard

Copied

Hi Chris,

If you're still having an issue with this, could you post your code so I can take a look and try it out?

Thanks,

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 13, 2012 Nov 13, 2012

Copy link to clipboard

Copied

My previous problem was similar like what you've had, and finally today the problem is solved!

I simply replace File.documentsDirectory.resolvePath("blablabla").nativePath into File.documentsDirectory.resolvePath("blablabla").url

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 13, 2012 Nov 13, 2012

Copy link to clipboard

Copied

Can you please post the whole code?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 13, 2012 Nov 13, 2012

Copy link to clipboard

Copied

I think our problem is somewhat different? CMIIW

I was responding to comments from chris_emerson particularly on this section:

"I've even tried changing my code to use the File.applicationDirectory approach. But once again,... it only works in the AIR Launcher... not on the device!"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines