Results 1 to 2 of 2

Thread: Error: Adobe AIR runtime security violation with Ext.tree.TreePanel

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Vote Rating

    Default Error: Adobe AIR runtime security violation with Ext.tree.TreePanel

    I am encountering an issue with treepanel on air
    My code is working as expected in a web browser, however in air this doesn't work
    I have this error :

    [app:/application.html#]Error: Adobe AIR runtime security violation for JavaScript code in the application security sandbox (eval)

    When looking at the line specified (4233), I found this :

            doDecode = function(json){
                return eval("(" + json + ")");    
    Is it normal ? If yes is there a way to correct that ?

    I thought extjs was free of eval() but I've found some in ext-all-debug (using version 3.3.1)


  2. #2
    Sencha User makana's Avatar
    Join Date
    Apr 2008
    Dresden, Germany
    Vote Rating


    It's the Ext.util.JSON.decode method. Usually there are no issues with JSON encoding/decoding, even if it is done by an eval call.

    Please check your JSON for a correct syntax (or post it, if you are not sure). If nothing changed, try to set Ext.USE_NATIVE_JSON to true.

    Programming today is a race between software engineers striving to build bigger and better ?diot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)

    Enhanced ExtJS adapter for Adobe AIR

Similar Threads

  1. Replies: 1
    Last Post: 23 Dec 2010, 10:54 AM
  2. Replies: 7
    Last Post: 30 Dec 2009, 6:19 PM
  3. AIR runtime security violation with sandbox issu!! plz help me.
    By Erica in forum Ext.air for Adobe AIR
    Replies: 8
    Last Post: 20 Feb 2009, 3:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts