File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Flex and the fly likes Error #2032: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Error #2032: " Watch "Error #2032: " New topic

Error #2032:

Aparna Sree

Joined: Jul 21, 2010
Posts: 28
I am new to Flex. I am using Flex with struts 2.
I have a simple login page in flex and I am trying to send the details to the server (struts 2 app in Tomcat 7)

It works perfectly when I have my flashbuilder up and running. But when I close it, I am getting error 2032.

Fault[FaultEvent fault=[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:37813/myApp/myAppFlexUIComponents.swflogin.actionlogin.action?hostport=localhost:8080&https=N&id=76FE4B70-11D2-8C18-3AB4-E52A00F4C304"]. URL: http://localhost:8080/myApp/myAppFlexUIComponents.swflogin.actionlogin.action"] messageId="F2AD39BC-BB03-B10D-E52E-E52A0CD3C8A2" type="fault" bubbles=false cancelable=true eventPhase=2]

Any idea what I am missing? Do i need a crossdomain.xml here? All the files are in same server so is it really required. Anyway, I have tried it, but it did not work.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11776

My guess is that it cannot connect to http://localhost:8080/myApp/login.action. Can you confirm that you can get to that URL from a browser at the same time that you are getting the error from your Flex app? (You may have to create a dummy HTML form to validate this).

Aparna Sree wrote:Do i need a crossdomain.xml here?

I would expect a different error if you need a crossdomain.xml file.

Aparna Sree wrote:All the files are in same server so is it really required.

You might be correct, but this often causes confusion. Flex's crossdomain check works off both location and protocol, so you can have a problem if you are using the file:// protocol to directly access your Flex app while using the http:// protocol to access your HTTPService.

Aparna Sree wrote:Anyway, I have tried it, but it did not work.

Which would indicate that my caveat above does not apply.

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Aparna Sree

Joined: Jul 21, 2010
Posts: 28
I was finally able to debug the issue
Gosh! This one cost me some time.


So, if you compile your swf with the network monitor active, which you may not realize is the case, you have just told your swf to redirect all traffic to localhost:37813.
So you'll deploy it, and guess what? Because no other machine is running the FB network monitor, the calls will fail.

I turned off the network monitor and compiled it. Yep! that fixed the issue

jQuery in Action, 3rd edition
subject: Error #2032:
It's not a secret anymore!