2
votes

I am trying to display database details in a Flex datagrid and connected using HTTP Service. It was able to display details without any issue when I was working in the FlashBuilder 4.5, however, I deployed the bin-debug part in the Tomcat webserver to access it globally.

I am experiencing this error message when I am trying to access the swf file "HTTP request error Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://localhost:8084/UA/details.jsp"

I tried to create the crossdomain.xml file and deployed in the root directory but still experiencing the same error.

Here is my crossdomain.xml :

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <allow-access-from domain="*" secure="false"/>  
    <allow-http-request-headers-from domain="*" headers="*" secure="false" />
</cross-domain-policy>

Can any one help me out ?

Regards,

Serenity

1
Does your Tomcat located on localhost? - Constantiner
No, I manually installed Tomcat server with port number 8084 - serenity
Where did your install it? On other computer? On production server or on the same computer? Which URL do you use to access it with web browser? - Constantiner
I installed in the same computer and able to access the swf file, however, getting the error message because the Datagrid is trying to pull the details from the database. - serenity
I fixed the error by adding the following lines in the coding part : private function preinit():void { Security.loadPolicyFile("localhost:8084/UA/crossdomain.xml"); } - serenity

1 Answers

1
votes

Have you checked permissions on all involved files? Are you sure the user running your 'application' has at least read permissions for the file?