Stuart Rose created LUCENE-4205:
-----------------------------------

             Summary: Constants.java generates AccessControl Exception in 
unsigned applet 
                 Key: LUCENE-4205
                 URL: https://issues.apache.org/jira/browse/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 Constants.java is attempting to read a 
System property that is not allowed. 

Caused by: java.security.AccessControlException: access denied 
("java.util.PropertyPermission" "sun.arch.data.model" "read")
        at java.security.AccessControlContext.checkPermission(Unknown Source)
        at java.security.AccessController.checkPermission(Unknown 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>(Constants.java:84)


on line 84:   final String x = System.getProperty("sun.arch.data.model");

We have tested setting the String x to the property value for "java.vm.name" 
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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to