Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

[jira] [Created] (LUCENE-4205) Constants.java generates AccessControl Exception in unsigned applet

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Jul 9, 2012, 1:56 PM

Post #1 of 1 (34 views)
Permalink
[jira] [Created] (LUCENE-4205) Constants.java generates AccessControl Exception in unsigned applet

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: dev-unsubscribe [at] lucene
For additional commands, e-mail: dev-help [at] lucene

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.