Skip navigation
Welcome, Balaji
Currently Being Moderated

Error #2048: Security sandbox violation

Jan 25, 2012 1:40 AM



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=""
      xmlns:mx="library://" 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.


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points