0 Replies Latest reply on Jan 25, 2012 1:40 AM by Welcome, Balaji

    Error #2048: Security sandbox violation

    Welcome, Balaji



      Need help in resolving the security sandbox issue arising in flash player 10.


      I'm trying to Invoke a HTTP service available in 'Tomcat A' through my Flex application deployed in 'Tomcat B'. during this scenario i'm getting the security sandbox violation message like below,


      text = "Error #2048: Security sandbox violation: https://01hw146543:8443/Test/Test.swf cannot load data from https://01hw348701:8443/Test/Test.xml."



      Here i'm invoking a http service available in https://01hw348701:8443/Test/Test.xml from my Test.swf, where Test.xml is a simple XML file located in Sever


      Follwoing is the code I've written in Test.mxml



      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="onInit()">
         import mx.controls.Alert;
         import mx.utils.ObjectUtil;

         private function send():void {
         private function onInit():void {
        <!-- Place non-visual elements (e.g., services, value objects) here -->
        <s:HTTPService id="getData" url="https://01hw348701:8443/Test/Test.xml" resultFormat="e4x"
              result="{txtArea.text = event.result as XML}"

      <mx:VBox width="100%" height="100%">
        <mx:Button id="sendbtn" label="Send Request" click="send()"/>
        <mx:TextArea id="txtArea" width="75%" height="50%"/>



      Request to help in solving this issue.