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.
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