lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart Rose (JIRA)" <>
Subject [jira] [Created] (LUCENE-4205) generates AccessControl Exception in unsigned applet
Date Mon, 09 Jul 2012 20:56:33 GMT
Stuart Rose created LUCENE-4205:

             Summary: generates AccessControl Exception in unsigned applet

                 Key: LUCENE-4205
             Project: Lucene - Java
          Issue Type: Bug
          Components: core/index
    Affects Versions: 3.5
         Environment: unsigned applet
            Reporter: Stuart Rose
            Priority: Minor

Using Lucene (i.e. writing a Document to a RAMDirectory) in an unsigned applet causes an AccessControlException
because is attempting to read a System property that is not allowed. 

Caused by: access denied ("java.util.PropertyPermission"
"" "read")
	at Source)
	at Source)
	at java.lang.SecurityManager.checkPermission(Unknown Source)
	at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
	at java.lang.System.getProperty(Unknown Source)
	at org.apache.lucene.util.Constants.<clinit>(

on line 84:   final String x = System.getProperty("");

We have tested setting the String x to the property value for "" and find that
works for us...

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:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message