Strange security sandbox error

Hi,
I have a strange error when debugging my projects on localhost.
Here what i get (sorry it's french, I tried to translate it below) :
Erreur :Impossible de charger un fichier de régulation à partir de xmlsocket://127.0.0.1:5800
Erreur :La demande de la ressource à xmlsocket://127.0.0.1:5800 par le demandeur à http://localhost:8888/XXX/bin-debug/XXX.swf a échoué car le serveur est inatteignable.
*** Violation de la sécurité Sandbox***
Interruption de la connexion à 127.0.0.1:5800 - opération interdite depuis http://localhost:8888/XXX/bin-debug/XXX.swf
Translation:
Error: Unable to load a policy file from xmlsocket://127.0.0.1:5800
Error: The request of the resource at xmlsocket://127.0.0.1:5800 by http://localhost:8888/XXX/bin-debug/XXX.swf has failed because the server is unreachable.
*** Sandbox security violation***
Closing connection at 127.0.0.1:5800 - forbidden operation from http://localhost:8888/XXX/bin-debug/XXX.swf
This error loops indefinitely as long as I debug my project, and therefore, my Console is unusable !
Any idea about resolving this ?
Thank you

up ?

Similar Messages

  • I get a security sandbox error #2122 when i try to use ImageSnapshot on video player

    hey guys... so all my application does is... it has a video player... and when i initiate the component it loads the flv from a different server, and plays the video... now while its playing the video i have a button called capture, and whe you hit that button the user is able to take snapshots of the current frame.
    this seems to work perfectly locally, but as soon as i uploaded it to the server i get problems...
    the error states:
    SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://website1.com/Content/swf/oneStopImageVersion.swf cannot access http://website2.com/videos/originals/Grand_Opening.flv. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
         at flash.display::BitmapData/draw()
         at mx.graphics::ImageSnapshot$/captureBitmapData()
         at modules.videoHandler::videoHandler/captureVideo()
         at modules.videoHandler::videoHandler/___videoHandler_LinkButton3_click()
    i have the crossdomain file in the root directory of website2.com, and i have the folloing line of code in there
    <?xml version="1.0"?>
    <cross-domain-policy>
         <site-control permitted-cross-domain-policies="all" />
         <allow-access-from domain="website1.com"/>
         <allow-access-from domain="*.website1.com"/>
             <allow-http-request-headers-from domain="*.website1.com" headers="SOAPAction"/>
    </cross-domain-policy>
    any ideas on how to fix this problem???
    my actionscript code is as follows
    public function captureVideo():void{
         var snapshot:BitmapData = ImageSnapshot.captureBitmapData(videoPlayer.videoDisplay);
         initialThumbnail.source = new Bitmap(snapshot); //this is the image tag in my mxml
    any help is greatly appretiated!!!!
    thanks in advance!

    any one with ideas???
    i've been doing some more research... and found a possible solution... where i could send the video thru a server proxy... but the only thing is doing that might slow down my process... i was wondering if there was any other solution to this problem??

  • Security Sandbox Error

    I keep getting this sandbox violation when I try and stream
    this video using NetStream and NetConnect. I'm getting the path
    from an XML file. If i just pop the path into an FLVPlayback
    component, it works just fine. Any Ideas?
    Edited to hide IP.

    I'm running into the same issue:
    HTTPStatus: 200
    *** Security Sandbox Violation ***
    Connection to "
    http://www.myurl.com/videos/Eagle.flv"
    halted - not permitted from
    file:///X|/Projects/Current/Video/Vrs4%2D2/Videos.swf
    SecurityError: Error #2147: Forbidden protocol in URL "
    http://www.myurl.com/videos/Eagle.flv"
    at flash.net::URLStream/load()
    at flash.net::URLLoader/load()
    at fl.video::SMILManager/
    http://www.adobe.com/2007/flash/flvplayback/internal::connectXML()
    at fl.video::NCManager/connectToURL()
    at fl.video::VideoPlayer/
    http://www.adobe.com/2007/flash/flvplayback/internal::_load()
    at fl.video::VideoPlayer/load()
    at fl.video::FLVPlayback/::doContentPathConnect()
    at fl.video::FLVPlayback/set source()
    at Videos_fla::MainTimeline/onDataLoad()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    My action script looks like:
    import fl.video.*;
    var flvPlayer:FLVPlayback = new FLVPlayback();
    addChild(flvPlayer);
    //The next line assumes you have copied the skin file to the
    local directory
    flvPlayer.skin = "
    http://www.myurl.com/includes/SkinUnderPlayStopSeekMuteVol.swf"
    //Create the URLLOader instance
    var myLoader:URLLoader = new URLLoader()
    //the data will come as URL-encoded variables
    myLoader.dataFormat = URLLoaderDataFormat.VARIABLES
    //Load using an URLRequest, even beeing local
    myLoader.load(new URLRequest("
    http://www.myurl.com/videos/video-working.asp"))
    //onLoad handler listener
    myLoader.addEventListener(Event.COMPLETE, onDataLoad)
    //Error handling
    myLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError)
    myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    onSecurityError)
    //Could be an error or just a message
    myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS,
    onHTTPStatus)
    //add a listener for the complete event
    function onDataLoad(evt:Event){
    Comments_txt.text = evt.target.data.Comments
    Commented_txt.text = evt.target.data.Comments
    flvPlayer.source = evt.target.data.Comments;
    //error callbacks
    function onIOError(evt:IOErrorEvent){
    trace("IOError: "+evt.text)
    function onHTTPStatus(evt:HTTPStatusEvent){
    trace("HTTPStatus: "+evt.status)
    function onSecurityError(evt:SecurityErrorEvent){
    trace("SecurityError: "+evt.text)
    My text boxes are there to confirm that the variable is
    loading which it does. Which they do. When I put the URL directly
    into the actionscript is runs but once it's loaded I get the
    Sandbox Security Error.
    Is this Adobe's way of making you purchase the Media Server
    to make it work? Before I was happy with the Merger but now it's
    seemingly like they make it so you have to buy more products to do
    the same stuff. Any help appreciated...

  • Security Sandbox Error - youtube video (Read 1 times)

    Hi
    I am working on an application which demands feature for embedding videos from youtube embed code and youtube URL.
    Things are working fine in my local machine but when I test it on demo server then error appears. I had allowed youtube and vimeo as
    Security.allowDomain("http://www.youtube.com/");
    Security.allowDomain("http://www.vimeo.com/");
    Security.allowDomain("www.youtube.com/");
    Security.allowDomain("www.vimeo.com/");
    But still things working on local not on demo server.
    The URL is :
    http://202.164.43.21/BigWhirled/flexapp/
    Steps:
    1. add page by clicking + button in the left side(2nd row)
    2. Select page then
    3. Drag and drop video icon(black color) from tools list placed above the white area in the middle of the application.
    4. Now select the video object added to white area and in the right hand side paste any youtube URL then click update button you will see the Error(if you have debugger flash player)
    Thanks for any help

    Try giving value of allowscriptaccess in embed tag as "always". I doubt it works as flash player does not allow accessing other domains from your domain unless the crossdomain policy in remote server allows your domain. I found below policy for youtube
    <?xml version="1.0" ?>
    - <!-- http://www.youtube.com/crossdomain.xml -->
    <!DOCTYPE cross-domain-policy (View Source for full doctype...)>
    - <cross-domain-policy>
    <allow-access-from domain="*.youtube.com" secure="true" />
    <allow-access-from domain="s.ytimg.com" secure="true" />
    </cross-domain-policy>
    I am not sure on how it is working in your local machine.

  • Problems with RemoteObject and security sandbox errors

    I'm having trouble with an AS3 AMF RemoteObject request that is hosted on Google App Engine. I have a crossdomain.xml file in the root of the domain, and also one at the remoting endpoint.
    Here are the contents of the root crossdomain.xml:
    <?xml version="1.0"?>
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies ="all"/>
    <allow-access-from domain="*.appspot.com"/>
    <allow-access-from domain="*.{appid}.appspot.com"/>
    <allow-access-from domain="*.{appid}.com"/>
    <allow-access-from domain="*.{appid}.org"/>
    </cross-domain-policy>
    I have replaced my application's ID with {appid}. In the endpoint crossdomain.xml, it says the exact same thing, except it omits the <site-control> tag.
    Loading the swf file and testing it on my machine works just fine... I think that may have something to do with me having the debugger version of Flash Player. When I push it up to App Engine to make it public, other clients access it and get a Client.Error.MessageSend Channel.Security.Error error Error #2048 url: http://05-alpha.latest.{appid}.appspot.com/_rpc/data.
    I am using Flex 4 beta, and the App Engine Python runtime. I have tried full wildcard in the crossdomain, and even accessing the data endpoint at a relative URL so as to avoid this error.
    Someone please help! Thanks in advance.

    The error happens regardless of where I access it (the beta URL, the production URL, etc).
    That's literally all the actionscript code for the remote object... I've included an extended snippet below, but I have no idea why the SWF would be trying to access localhost.
    Even on my development machines (where it seems to work), there's nothing running on the host/port combo it's trying to access.
    Extended AS3:
    FatCatStage.mxml:
    <s:RemoteObject id="dataService" showBusyCursor="false" destination="data" endpoint="/_rpc/data" />
    main.mxml:
    <fx:Script>
    <![CDATA[
                   fatCatStage.dataService.RetrieveFirstGraph.addEventListener( ResultEvent.RESULT, fatCatStage.graphInitialize );
    fatCatStage.dataService.RetrieveFirstGraph();
    public function doGraphChange(event:ResultEvent):void
    if(event.result.result!='failure')
    var GraphData:Object = event.result.response;
    this.lastGraphData = GraphData;
    fatCatViz.removeAll()
    var root:GenericSprite = fatCatViz.addNodeElement(GraphData.object,null,this.center,GraphData.object.key);
    for each ( var Connection:Object in GraphData.object.connections )
    this._recursiveGraph(root, Connection, center, 3);
    else
    Alert.show('There was an internal graphing error. Please try again.');
    fatCatViz.updateInternalStructure();
    this.intervalSet = setInterval(timedReLayout,500);
    ]]>
    </fx:Script>
    That's all of the relevant actionscript for the entire application. Where is it referencing localhost?

  • Sandbox error, crossdomain loading Images dynamically

    Hi!
    I have a following image:
    <mx:Image id="listakuva1"
    source="images/autoListasivu.jpg"
    complete="handleImageComplete(event)" />
    And because I have to scroll the image, I have to turn the
    smoothing on when complete:
    private function handleImageComplete(event: Event): void {
    var bitmap: Bitmap = ((event.target as Image).content as
    Bitmap);
    if (bitmap != null) {
    bitmap.smoothing = true;
    This works fine. But then I want to change the image when
    user does something:
    listakuva1.load("new image in another domain via URL");
    And it gives me security sandbox error. I googled and I found
    that I should put:
    checkPolicyFile = true;
    to somewhere but I can't figure out WHERE!
    The images are still loaded without the warning but the
    smoothing-function is not working.
    PLS Help.
    BR Timo

    Hi,
    It would be great if you can post a simple sample. I can try
    it out on a Mac and let you know.

  • Security Sandobox Error from Tomcat

    The code below works fine from within FB3 Trial.
    When deployed to localhost Tomcat server it fails to download
    HttpService request
    with security sandbox error.
    You need to include google api library to compile this.
    I have asked this question a few times, I hope now with the
    example I am more precise.

    Hi,
    You might need crossdomain.xml file. Please visit URL below
    for details.
    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html
    Hope this helps.

  • How to resolve security sandbox violation (Error#2148) in Flex 3 on XP?

    Hi,
    When I tried to access an image on c:\ (on XP), I get the following error:
    *** Security Sandbox Violation ***
    Connection to file:///C:\DBFiles\3.jpg halted - not permitted from http://localhost/test-debug/test.swf
    -- Remote SWFs may not access local files.SecurityError: Error #2148: SWF file http://localhost/ullmanphp-debug/ullmanphp.swf cannot access local resource file:///C:\DBFiles\INDSprintOrgChart.pptx\3.jpg. Only local-with-filesystem and trusted local SWF files may access local resources.
    at flash.display::Loader/_load()
    at flash.display::Loader/load()
    It looks like some sort of mismatch on security settings. I have done the following so far (based on what I got by googling....)
    1. Flex comipler setting additional compiler arguments:  -use-network=false
    2. I have added a crossdomain.xml on the source directory with these lines...
    <site-control permitted-cross-domain-policies="master-only"/>
    <allow-access-from domain="*"/>
    <allow-http-request-headers-from domain="*" headers="SOAPAction"/>
    However, error is still appearing. How do I fix this for testing on my local machine. I cannot move to a webserver at this time.
    Thanks!.

    How do I set Security.sandboxType related to flash player? When I try to see it in my application through debugger it says "remote". I think I need to set it to one of the following from the adobe manual pages...
    Security.sandboxType has one of the following values:
    remote (Security.REMOTE)—This file is from an Internet URL and operates under domain-based sandbox rules.
    localWithFile (Security.LOCAL_WITH_FILE)—This file is a local file, has not been trusted by the user, and it is not a SWF file that was published with a networking designation. The file may read from local data sources but may not communicate with the Internet.
    localWithNetwork (Security.LOCAL_WITH_NETWORK)—This SWF file is a local file, has not been trusted by the user, and was published with a networking designation. The SWF file can communicate with the Internet but cannot read from local data sources.
    localTrusted (Security.LOCAL_TRUSTED)—This file is a local file and has been trusted by the user, using either the Flash Player Settings Manager or a FlashPlayerTrust configuration file. The file can read from local data sources and communicate with the Internet.
    application (Security.APPLICATION)—This file is running in an AIR application, and it was installed with the package (AIR file) for that application. By default, files in the AIR application sandbox can cross-script any file from any domain (although files outside the AIR application sandbox may not be permitted to cross-script the AIR file). By default, files in the AIR application sandbox can load content and data from any domain.
    Any input on how to set it would be greatly appreciated. Thanks!

  • Error #2048: Security sandbox violation

    I've been developing Flex apps for a couple of years now and feel comfortable with my development environment.
    I'm testing out Gumbo in my same environment (new workspace): WAMP based
    My test app works fine on my localhost set up... but when I upload the files to my hosted domain server... I get Error #2048: Security sandbox violation.
    Specifically:
    - I'm invoking an HTTPService by setting the url to a relative path (folder/file in same dir as the swf)
    - I set method to POST and useProxy to false
    (<fx:Declarations>
            <s:HTTPService id="contentService" url="data/verd_content.xml" method="POST" useProxy="false" resultFormat="e4x" />
        </fx:Declarations>)
    - I wrapped the send call in a try / catch block and show an Alert with the error message in the catch... here's what it says
    body = (null)
      clientId = "DirectHTTPChannel0"
      correlationId = "F4B9A542-8B00-5CDB-3C36-1316919FC255"
      destination = ""
      extendedData = (null)
      faultCode = "Channel.Security.Error"
      faultDetail = "Destination: DefaultHTTP"
      faultString = "Security error accessing url"
      headers = (Object)#1
        DSStatusCode = 0
      messageId = "E629F555-EF8B-E535-7CE4-13169662A82A"
      rootCause = (flash.events::SecurityErrorEvent)#2
        bubbles = false
        cancelable = false
        currentTarget = (flash.net::URLLoader)#3
          bytesLoaded = 0
          bytesTotal = 0
          data = (null)
          dataFormat = "text"
        eventPhase = 2
        target = (flash.net::URLLoader)#3
        text = "Error #2048: Security sandbox violation: http://****.com/Main.swf cannot load data from http://localhost:***/data/verd_content.xml?hostport=***t.com&https=N&id=F4B9A542-8B00-5CDB -3C36-1316919FC255."
        type = "securityError"
      timestamp = 0
      timeToLive = 0
    *NOTE: I obfuscated parts of the url for security reasons
    I read the other similar posts here about problems like this when using the PHP / Zend set up... but I checked the .actionScriptProperties file and it does not have any URLs in there (like localhost:port#)
    I'm not using a service-config.xml file in this project... but I have set up WebORB for PHP servers and use that all the time... so I know how that works...
    Is this a bug or am I missing something new in the Gumbo ?
    Again: my swf file is in a folder in the webroot on my ISP
    also inside that folder is another folder with an XML file in it
    I'm setting an HTTPService call using the url parameter on a POST with a relative file path (folder/filename.xml)
    changing the url to an absolute makes no difference...
    thanks in advance for any help

    Sure...
    here's the code that contains both the HTTPService setup and the URLLoader setup... like i said in the original post.. the HTTPService call throws the error described, whereas the URLLoader call does not:
    private var loader : URLLoader = new URLLoader();
    private var req : URLRequest = new URLRequest("data/***dant_content.xml");//path obfuscated
    protected function Application_creationComplete():void
        // This works...
        loader.addEventListener( Event.COMPLETE, parseContent );
        loader.addEventListener( IOErrorEvent.IO_ERROR, contentFault );
        // This does not...
        /* contentService.addEventListener( ResultEvent.RESULT, parseContent );
            contentService.addEventListener(FaultEvent.FAULT, contentFault ); */
        try
            loader.load( req );
        catch (err:Error)
            Alert.show("In Try Catch Error Block: " + err.message);
            currentState='home';
    the HTTPService was set up like this: (again, i obfuscate the URLs for security)
        <fx:Declarations>
            <s:HTTPService id="contentService" url="data/***dant_content.xml" method="POST" useProxy="false" resultFormat="e4x" />
        </fx:Declarations>
    the parseContent function setup in the event listener justs reads the XML file and uses that data to build an image gallery.
    hope this helps (for what its worth: I'm not doing anything serious with Gumbo as of yet due to these kinds of bugs)

  • Error 2142 - security sandbox violation

    Hi,
    I have a problem when I try to compile my player, I get the following error:
    SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property. file:///C|/development/Flash/Pathe%20ads/New%20cmpt%20sample%20code/AS3ComponentDemoCode% 5Fv2.1/DemoPlayer3Component.swf was attempting to load http://objects.tremormedia.com/embed/swf/acudeo.swf?rand=949275459.
    What's odd is that:
    1. I have used Security.allowDomain("http://objects.tremormedia.com/"); in the source code
    2. This was working fine the day before last!
    I have tried adding a crossdomain.xml file in the folder where I build the player, still no joy.
    Can anyone help me with this? I tried throughout yesterday to fix it to no avail. I've even tried installing and building the player on a different machine to double check there wasn't something wrong on my PC.
    Any help would be great - I'm tearing my hair out!

    Hi,
    If you're still having issues, feel free to reach out to us directly. [email protected] or me personally at [email protected]
    Thanks,
    Andrew Baisley
    Sr Solutions Engineer
    Tremor Media

  • Error #2048: Security sandbox violation: Urgent Checked the forum none of the solutions worked

    Hi all,
        I am new to flex . I am trying to connect to my localhost using the XMLSocket like below
        var xmlsock:XMLSocket = new XMLSocket(); // Line #187
        xmlsock.connect(127.0.0.1, 8080);
        xmlsock.send(xml);
      But after a Minute I get this below error
      Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: app:/main.swf cannot load data from 127.0.0.1:8080.
        at main/handleLogin()[C:\Documents and Settings\Vulcantech\My Documents\Flex Builder 3\src\main.mxml:187]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\framewor ks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:290]
        at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.2.0\frameworks\ projects\rpc\src\mx\rpc\AbstractInvoker.as:193]
        at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responde r.as:43]
        at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\ AsyncRequest.as:74]
        at DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\s rc\mx\messaging\channels\DirectHTTPChannel.as:403]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()
    Thanks in advance
    Balaji

    Hi Alex,
       Thanks for the Link . I saw the link and have done the same steps as said in that . I have created a crossdomain.xml file in my 127.0.0.1 and i can also see that the policy being accepted in the  "C:\Documents and Settings\username\Application Data\Macromedia\Flash Player\Logs" . I have pasted the lines in policyfiles.txt below.
        OK: Root-level SWF loaded: app:/main.swf
        OK: Policy file accepted: http://127.0.0.1/crossdomain.xml
       But I still get that sandbox violation error. I have tried the below solutions and none of them worked
           1) security.allowDomain("*");
           2) crossdomain xml in the webroot of the accessing server like below
                        <?xml version="1.0"?>
                         <!DOCTYPE cross-domain-policy SYSTEM “http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd”> 
                         <cross-domain-policy>
                            <site-control permitted-cross-domain-
    policies="all" />
                             <allow-access-from domain="*" to-ports="*" />
                       </cross-domain-policy>
           3) I saw that adding the Application path in the  "C:\Documents and Settings\username\Application Data\Flash Player\#Security\FlashPlayerTrust\flexbuilder.cfg" will remove the sandbox violation but this also didnt work        
           4)  "Project - Properties - Flex Compiler - Additional compiler arguments:" add   -use-network=true  and then recompile and post to server
           5) I have also checked the policy file logs
    Thanks in advance
    Balaji

  • SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: cannot access

    When we try to print the Google Map API for Flash component, it is throwing the Security Sandbox Violation
          SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://ps6143:8080/aa/XYZ/Main.swf/[[DYNAMIC]]/1 cannot access  http://mt1.google.com/vt/lyrs=m@171000000&hl=en&src=api&x=1&y=1&z=1&s=Gali&flc=x3t. No policy files granted access.
    at flash.display::BitmapData/draw()
    To avoid this error we tried to use the alternate API provided by library. But that also causing cross domain issue as it loading some 3d library internally which is not able to access our application.
    SecurityError: Error #2121: Security sandbox violation: BitmapData.draw: http://maps.googleapis.com/mapfiles/lib/map_1_20_10_3d.swf cannot access http://ps6143.persistent.co.in:8080/dv/SiteOptimizer/SiteOptimizer.swf/%5b%5bDYNAMIC%5d%5d /1http://ps6143:8080/aa/XYZ/Main.swf/[[DYNAMIC]]/1. This may be worked around by calling Security.allowDomain.
    at flash.display::BitmapData/draw()
    Please help us in resolving this issue.
    Thanks & Regrds,
    Ravi Darji

    There is no redirect... Charles is a web proxy so it will look completely legitimate to the browser.
    According to the help, it's getting the access request from the SWF itself and not the crossdomain.xml file:
    In the case of a source object other than a loaded bitmap, the source object and (in the case of a Sprite or MovieClip object) all of its child objects must come from the same domain as the object calling the draw() method, or they must be in a SWF file that is accessible to the caller by having called the Security.allowDomain()method.
    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7d1b.html#WS5b3ccc516d4fbf351e63e3d118a9b90204-7c4a
    So the default state accessing a SWF on a different domain is protected, unless that SWF allows some or all domains to access it via the Security.allowDomain() method.

  • Sandbox security violation error on compiling FDS

    Hi,
    I am trying to compile am mxml using Remote Object locally
    using Flex SDK outside FlexBuilder.
    I have used the command:
    mxmlc -services="path\to\my\services-config.xml"
    -context-root=\ContextRoot FileName.mxml
    I am getting the following error when I try to run the swf
    generated:
    [RPC Fault faultString="Send failed"
    faultCode="Client.Error.MessageSend"
    faultDetail="Channel.Security.Error error Error #2048: Security
    sandbox violation:
    http://localhost:9080/iReports/flexFiles/mxml/AdminServices.swf
    cannot load data from
    http://localhost:9080iReports/messagebroker/amf."
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()
    at mx.rpc::Responder/fault()
    at mx.rpc::AsyncRequest/fault()
    at mx.messaging::ChannelSet/::faultPendingSends()
    at mx.messaging::ChannelSet/channelFaultHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.messaging.channels::NetConnectionChannel/::defaultErrorHandler()
    at
    mx.messaging.channels::NetConnectionChannel/::securityErrorHandler()
    Can anybody help me?
    Thanks in advance,
    Cheree

    Hi Sven,
    Thank u so much for replying.
    I ll definitely keep in mind what u told.
    But my current issue is solved. The problem was:
    [RPC Fault faultString="Send failed"
    faultCode="Client.Error.MessageSend"
    faultDetail="Channel.Security.Error error Error #2048: Security
    sandbox violation:
    http://localhost:9080/iReports/flexFiles/mxml/AdminServices.swf
    cannot load data from
    http://localhost:9080iReports/messagebroker/amf."
    If u observe in the error message, the server was trying to
    load '9080iReports', not '9080/iReports'. This is because I was
    giving -context-root=\ContextRoot instead of
    -context-root=/ContextRoot.
    So, a silly mistake of using a back slash instead of forward
    slash.
    Thanks again,
    Cheree

  • This bug has been around for over a year: SecurityError: Error #2123: Security sandbox violation

    Hi,
    The bug of 'SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///xxx/xxx.swf cannot access rtmfp://fms4.acrobat.com/cocomo/na2-sdk-xxx/xxx. No policy files granted access.' was first reported in lccs forum over a year ago:
    http://forums.adobe.com/message/2803074
    But the bug is still around. The bug can be generated by calling BitmapData.draw() on a flash.media.Video object which is attached to a p2p stream. It looks like the solution is to have the publisher to call:
    send("|RtmpSampleAccess", true, true)
    on the NetStream object _before_ the subscriber calls NetStream.play(), in order to give the permission to subscribers for audio and video streams.
    In lccs library, the above permission authorisation happens in WebcamPublisher:
    protected function onNetStatus(p_evt:NetStatusEvent):void
    if (p_evt.info.code=="NetStream.Connect.Success") {
    setTimeout(sendSnapShotPermission, 500);
    _stream.send("|RtmpSampleAccess", true, true);
    protected function sendSnapShotPermission():void
    _stream.send("|RtmpSampleAccess", true, true);
    but it doesn't help the problem. In fact, it is not clear to me when this 'snap shot permission' is sent to the subscriber.
    One more note: This is not a critisism for the lccs development quality, but rather a question on how ready lccs is for production use. After encountering this bug, I had to go through the lccs code (the open source parts), and found out that the library is not really written, well, carefully, and it is full of temporary quick-n-dirty fixes.
    For instance in the above example, sendSnapShotPermission() is called after 500 milliseconds, probably to allow something to happen before calling the method, but how can you be sure that it will happen in 500 milliseconds? Probably,an event listener should have been used. Immediately in the next line, we see:
    _stream.send("|RtmpSampleAccess", true, true);
    which is a duplicate of sendSnapShotPermission(). many examples like this can be found throughout the library.
    Aureliano

    Hi Nigel,
    Two questions:
    1. When the publisher sends the access permission to the subcriber by:
    netStream.send("|RtmpSampleAccess", true, true)
    , on the subscriber side, what event or function can handle the guaranteed receipt of the access permission? Currently it is possible to draw the incoming stream video upon receiving NetStream.Play.Star and waiting for 5 seconds or so:
    public class MyWebcamSubscriber extends WebcamSubscriber {
    override protected function layoutCameraStreams():void
    // trying the event listener seems to work here.
    _streamManager.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
    override protected function onNetStatus(e:NetStatusEvent):void
    super.onNetStatus(e);
    case "NetStream.Play.Start":
    setTimeout(function():void {
    // draw the video from the incoming stream here.
    }, 5000);
    The questions is, which event can let the subscriber know that it has the access permission to the video stream?
    2. In WebcamPublisher, why is that the access permission is sent 3 times?
    a. Once on receiving NetStream.Connect.Success with 0.5 second delay, as in below.
    b. Once immediately upon receiving NetStream.Connect.Success, as in below.
    protected function onNetStatus(p_evt:NetStatusEvent):void
    if (p_evt.info.code=="NetStream.Connect.Success") {
    setTimeout(sendSnapShotPermission, 500);
    _stream.send("|RtmpSampleAccess", true, true);
    protected function sendSnapShotPermission():void
    _stream.send("|RtmpSampleAccess", true, true);
    c. Once in onConnectionTypeChange() with 2 seconds delay:
    protected function onConnectionTypeChange(p_evt:StreamEvent):void
    if ( _streamManager.isP2P) {
    _stream= new NetStream(_connectSession.sessionInternals.session_internal::connection as NetConnection,NetStream.DIRECT_CONNECTIONS);
    setTimeout(sendSnapShotPermission, 2000);

  • Day 1 Ex. 3 Help! Error: Security Sandbox Violation

    When I run the solution code in Flex Builder, I get a ***
    Security Sandbox Violation *** message when debugging. Although,
    when I changed my default browser to Safari, everything seemed to
    work fine. Also, when I go directly to the bin-debug folder and
    opened the "AdobeODT.html" file, the data from the xml file loads
    properly. I played around with the "crossdomain.xml" solutions I've
    been finding on the net, but couldn't get it to work. Anyone else
    running into this problem? Any help would be greatly appreciated.
    Thanks.
    Running:
    Mac OS X 10.5.6
    Flex Builder 3
    FireFox (current)
    Safari (current)
    Opera (current)

    Hi everybody who is experiencing this same problem. A little
    research online directed me to the following page
    http://www.jetbrains.net/jira/browse/IDEA-21996.
    Which contains a good explanation why this is happening:
    quote:
    A SWF file can access one type of external resource only,
    either local or over a network; it cannot access both types. You
    determine the type of access allowed by the SWF file by using the
    use-network flag when you compile your application. When
    use-network flag is set to false, you can access resources in the
    local filesystem, but not over the network. The default value is
    true, which allows you to access resources over the network, but
    not in the local filesystem.
    So a sollution for this problem is:
    quote:
    you may specify the following string in "Additional compiler
    options" at "Flex Compiler Settings" tab: -use-network=false
    Hope this helps all of you experiencing this problem.

Maybe you are looking for

  • Method using int array as parameter

    Hi everyone!! I wonder what I'm doing wrong in this little piece of code Why can't I reach the return x[2];Anyone who can answer me?? public class ArrayTest      public static void main(String [] args)           int [] y = {5};           arrayTest(y)

  • Managing N+1 Landscape for Upgrade Project

    Hello - I'm currently involved in a project that is rolling out a n+1 landscape.  The landscape will look like this: MNT (maintenance): DEV --> QAS --> PRD PRJ (project): DEV --> QAS The project landscape is going to be upgraded to newer enhancement

  • Create box in realistic 3-D perspective

    I would like to create a box that looks realistic in 3 dimensions. I used to know how to do this. You start by unfolding the three visible sides of the box so that the two sides each share an edge with the end of the box. Then a combination of rotate

  • Clustering with WLBS

    Has anyone configured Microsoft Win2K as the load balancer for a WLS 6.1 cluster?           The configuration would be a 2 node WLS cluster, each node is configured with WLBS. I'm hoping to make this work as an alternative to a hardware load balancer

  • Since upgrading to Lion, my MacBook Pro is super slow connecting to Wi-Fi. Not so with Daughter's Snow Leopard or Wife's Dell.  Any ideas?

    Since upgrading to Lion, my MacBook Pro is super slow connecting to Wi-Fi (seems to search forever).  This is not the case with my Daughter's MacBook (still on Snow Leopard) or my Wife's Dell (Windows 7).  Any ideas?