commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukas Krecan (Created) (JIRA)" <>
Subject [jira] [Created] (JEXL-120) Make ParseException work in sandboxed environment
Date Fri, 21 Oct 2011 09:28:32 GMT
Make ParseException work in sandboxed environment

                 Key: JEXL-120
             Project: Commons JEXL
          Issue Type: Improvement
    Affects Versions: 2.0.1
            Reporter: Lukas Krecan

We execute JEXL expressions in sandboxed environment (using Java policy mechanism). When the
expression is incorrect, the {{org.apache.commons.jexl2.parser.ParseException}} is thrown.
Unfortunately it tries to access {{System.getProperty("line.separator", "\n")}} which fails
if access to system property is not allowed. 

{code} access denied (java.util.PropertyPermission line.separator
    at java.lang.SecurityManager.checkPermission(
    at java.lang.SecurityManager.checkPropertyAccess(
    at java.lang.System.getProperty(
    at org.apache.commons.jexl2.parser.ParseException.initialise(
    at org.apache.commons.jexl2.parser.ParseException.<init>(
    at org.apache.commons.jexl2.parser.Parser.generateParseException(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message