• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Error #2032:

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Aparna Sree
Greenhorn
Posts: 28
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I was finally able to debug the issue
Gosh! This one cost me some time.

THE NETWORK MONITOR IN FLASH BUILDER.
IT COMPILES THE REDIRECT INFO INTO YOUR SWF.

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


 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic