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.
Copy link to clipboard
Copied
the thread is about AIR sdk, so it's about AIR version not browser
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:
Cheers, - Jon -
Copy link to clipboard
Copied
Hi,
new AIR 2.6 solve this error!!
Thanks
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.
Copy link to clipboard
Copied
The desktop releases are planned to follow in a few weeks (mid to late March.)
Chris
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.
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
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......
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
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
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
Copy link to clipboard
Copied
Yes I am also facing the same problem.
Copy link to clipboard
Copied
this issue is fixed in air 2.6
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
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
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
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!
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.
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.
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!!
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!
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
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
Copy link to clipboard
Copied
Can you please post the whole code?
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!"