Flex RPC Fault #2032 (ioError)

23 01 2008

[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:xxx"]. URL:xxx”]

Yesterday this error raised the first time. Today I figured out what it could be.
It seems this error raises when Flex tries to access two files at the same time through a HttpService. Looks like a SandBox restriction.

More information on error #2032 (ioError) and other occurences can be found in a post by Judah here (seems to give a lot of 404 pages).


Actions

Information

35 responses

13 05 2008
vinuth kumar

When i run the flex program on my system i found the following error. can anybody solve this problem?

[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: file:///E:/flex%20workspace/HTTPservice/bin-debug/data/tests.xml"]. URL: data/tests.xml”]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:216]
at mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49]
at mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
at DirectHTTPMessageResponder/errorHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()

13 05 2008
MysticEarth

Hello Vinuth,

Do you use a HTTP request? If so, that could be the one generating this error. You might want to check wether your destination url can’t be found/read. So check the URL (i see it returns a stream error for file:///e:/ (notice the 3 ///).

14 05 2008
Sumit

I am also getting the same error. I am using a HTTP request to connect to a .NET service and the same error is displayed. My flex code is deployed in IIS. I tried accessing the .NET service through the browser, it is working fine. But when I do it from my flex application I am getting the same error.

28 07 2008
sunil

This exception is really making me bad. My server logs are not showing any problem and getting execute without any problem, but on client side i am getting this fault. I have no idea what to do now. Plz help

6 10 2008
Thiago

I’m getting the same,

weird, it was all fine, only at one specific method it goes wrong.

so far I’ve found out IT WON’T CALL THE WEBSERVICE,
I tried to debug the server-side and it won’t show a thing.

this is an ONLY-FLEX-PROBLEM,

one of the guys here said something about trying to access the same file twice at same time.

Let’s try something out in here

6 10 2008
Thiago

I FOUND OUT!!!!

IT’S BECAUSE WE ARE USING WRONG PARAMETERS…

I had changed the parameters at server side,
some functions showed problems at compile time, some didn’t…

REPEATING…
JUST CHECK YOUR PARAMETERS…

6 10 2008
Thiago

solved,
seems Adobe Flex can’t use Complex-Objects as parameters,
but it can as result types.

hope someone reads it so I can help
xD

13 10 2008
Andrei

Hi

I have the same problem

Thiago what did you mean “JUST CHECK YOUR PARAMETERS” .. the type or the name?

pls help thanks

23 10 2008
Thiago

Andrei,
you can only take simple types for parameters…
such as string, int, double…
althought, not refreshing the webservice inside adobe flex may cause this error to raise too.

23 10 2008
Thiago

btw, you can use int[], string[], int[][], string[][] (never tried 3rd level)

Flex has a problem with DateTime due to LocalTime, UTC, this kind of stuff… (not this error, but it brings time values with some minutes wrong, absolutely inexplainable)

I solved it by passing strings with DateTime.ToString()
and then parsing it on the other side.

23 10 2008
Thiago

here is how I solved it…
I had a webservice that has a complex-type as a parameter.

public bool DoSomething(AnimalVO vo)
{
//my code here using the “vo”
}

so I just changed the method to…

public bool DoSomething(int idAnimal, string name, int idOwner, int age)
{
AnimalVO vo = new AnimalVO();
vo.idAnimal = idAnimal;
vo.name = name;
vo. = ;
vo. = ;
vo. = ;
//and down here I change nothing…
//my code here using the “vo”
}

don’t forget to update your wsdl on flex when you do it

23 10 2008
Thiago

found out more,
the specific reason that you can’t use complex-types is that

some Number-typed values are set to NaN,
and the webservice doesn’t understand what a Nan is…

althought, you can’t say:

if (vo.some_property == NaN)
vo.some_property = 0;

you have to use

if ! (vo.some_property > 0) //if not > 0
vo.some_property = 0;

11 12 2008
Bob

I’m getting this error:

[RPC Fault faultString=”HTTP request error” faultCode=”Server.Error.Request”

faultDetail=”Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"].

URL: https://path.to/files/file.php“]

But *only* in Internet Explorer. The app works just fine in Firefox.

19 12 2008
Kasi

I too got the “HTTP request error” on a web service invocation today. Even splitting up the complex request object into multiple simple parameters, and initializing numbers din’t help either.

Ultimately what I found was that a date property in the request object was defined as not null in the .net web service. (all DateTime declarations are by default not null. Only the DateTime? declarations are nullable). But I was passing null for that date.

After I declared the date as DateTime? in the service class and initialized my AS3 integers, the complex request object went through smoothly.

Thankfully, Flex is not stupid to reject complex request objects.

24 12 2008
Affan

I was getting the same error but mine was because i was using old version of Flash! Once i installed Flash 10 it went away. :)

19 03 2009
Bob

I’ve been getting this same error, but only in IE 7. In Firefox, my app works just fine, no problem. But in IE, I get the error.

I thought flash was supposed to be better than java at write once, run anywhere. :)

17 04 2009
Connie

Bob,

I have the same problem you stated (works in FF but not in IE7). Were you able to solve that problem?

Thanks!

Connie

17 06 2009
Mike

I’m having the same issue.. anyone find the solution?

17 06 2009
Mike

I got that error and the issue when I was calling the WS was that the webconfig in .NET didn’t have the following code:

After I added the code, I was good to go!

18 06 2009
MysticEarth

Hello Mike, your codeblock isn’t visible :(

30 11 2009
Raj

[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://localhost:8080/SS/change.do?&firstName=eeeeeeeeeeeeeee&lastName=eeeeeeeeeee&loginName=ssas&sno=14"]. URL: http://localhost:8080/SS/change.do?&firstName=eeeeeeeeeeeeeee&lastName=eeeeeeeeeee&loginName=ssas&sno=14“]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\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\AsyncRequest.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/redirectEvent()

I m facing this problen whenever i try to edit my data in backend. Any One can help me .

Thanks,
Raj

9 12 2009
Alan

Fellas,

I solved this problem (after one day and a half searching the solution) just changing the required flash player version from 9 to 10 in Eclipse.
Motherfuckers at Adobe, please fix this bug!

18 02 2010
John

Thanks, useful material. Has added your blog in bookmarks.

18 03 2010
VALERIA

i had the same problem(2032).I tryed to change flash palyer version to 10 and now the problem disappeared but i can’t visualize anything, i visualize a white screen in the browser.The code i use is:

= images.length )
currentImage = 0;
flickImg.source = images[currentImage];
}
]]>

PLEASE HELP ME :-(

18 03 2010
VALERIA

= images.length )
currentImage = 0;
flickImg.source = images[currentImage];
}
]]>

22 03 2010
Anant

Step Description:
1 Launch the Application in Mozilla Browser.
2 User is getting Exception on the Login Page as
“[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: https://localhost:0/webstream/getIPAddress"].
URL: https://localhost:/webstream/getIPAddress“]”
Expected: No Exception should be throwed

what is the reason for getting the error..

1 09 2010
Jeroen Minnee

In my case the error was caused by a number having the NaN value. The webservices do not know how to handle a NaN. Setting this one to zero solved it all! Thanks for your help.

18 09 2010
Prateeksha

Thank you so much, It was really helpful.

21 10 2010
abaki

@Sumit, I have the same situation you have, however I realized that when I open my network monitor it gives that error. If network monitor is closed it does not give any error. anyone has any idea? thanks,

12 09 2011
SVK

[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.adobetes.com/f45iaw100/remoteData/employees.xml" errorID=2032]. URL: http://www.adobetes.com/f45iaw100/remoteData/employees.xml“]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc

\AbstractInvoker.as:345]
at mx.rpc::Responder/fault()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\Responder.as:68]
at mx.rpc::AsyncRequest/fault()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:113]
at DirectHTTPMessageResponder/errorHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:410]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

i am getting this errorwhen connecting 2 xml using flasgbuilder

28 12 2011
palanisamy

hi i am also face this problem during the debug time
“HTTP request error” the location of the path must be correct, if i rename the project i saw this error so i have to rename the old name…the error would not be occurred.

28 12 2011
palanisamy

hi, i worked in flex application i saw this error during the compile time
“Child elements of ‘Application’ serving as the default property value for ‘mxmlContentFactory’ must be contiguous.”

what is the reason for getting this error…anybody know pls help me.

9 01 2012
Murtaza Ghodawala

Hi All,

I am using Flash Builder 4.6/AIR 3.1.0. I am using RESTful web service to get XML results and to display on my mobile application. I am getting the same below error when accessing the webservice from mobile app (Android – Galaxy Tab 7 inch).

Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error # 2032"] URL: http://adfdevp.alshaya.com:7013/RESTEmployeeDetails-EmployeeDetails-context-root/jersey/restlab

The same code is working in Flash Builder 4.6. I have checked Network Monitor to “Disabled” before deploying to mobile. What am i doing wrong here? I am pasting my code below-

<![CDATA[
import mx.collections.ArrayCollection;
import mx.collections.IList;
import mx.collections.XMLListCollection;
import mx.events.FlexEvent;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.xml.SimpleXMLDecoder;
import mx.utils.ArrayUtil;

import valueObjects.EmployeeDetail;
[Bindable]
private var myXml:XML;

[Bindable]
public var resultCollection:IList;
public function handleXml(event:ResultEvent):void
{
var xmlListCollection:XMLListCollection = new XMLListCollection(event.result.children());
var xmlListCollectionValues:XMLListCollection = new XMLListCollection(event.result.emp.children());
var resultArray:Array = xmlListCollection.toArray();
var resultArrayValues:Array = xmlListCollectionValues.toArray();

var objEmployeeDetails:EmployeeDetail;
var resultCollection:ArrayCollection = new ArrayCollection();

var j:int = 0;
for(var i:int=0;i

{key.text}
{key1.text}

Appreciate your quick response in this regard.

Thanks,

Murtaza Ghodawala

Mobile: +965 97180549

murtaza.ghodawala@alshaya.com

11 01 2012
Naveen Kamath

Hi,
I too am getting an error that is similar to the one mentioned 1 of the previous posts. I’m using HTTP request to get an xml file. When I turn on the network monitor I don’t get the response but the same error. When I turn it off it works fine. I have checked out the same on the browser and there are no issues there. And I have also checked that the request contains the parameters which it does.. Do u know why this problem occurs.

7 02 2012
Amit

i am getting this prob too when i’m starting my jboss in terminal..but wen i start this by eclipse. it is working fine..any one help me..

thanks..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.

%d bloggers like this: