You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (JIRA)" <ji...@apache.org> on 2013/10/16 07:24:43 UTC

[jira] [Created] (STANBOL-1177) AccessControlException while loding FST models in the Lucene FST Linking engine

Rupert Westenthaler created STANBOL-1177:
--------------------------------------------

             Summary: AccessControlException while loding FST models in the Lucene FST Linking engine
                 Key: STANBOL-1177
                 URL: https://issues.apache.org/jira/browse/STANBOL-1177
             Project: Stanbol
          Issue Type: Bug
          Components: Enhancement Engines
            Reporter: Rupert Westenthaler
            Assignee: Rupert Westenthaler


As reported by Andreas Kuckartz the FST linking engine may encounter 

java.security.AccessControlException: access denied
("java.io.FilePermission"
"{..}/stanbol/integration-tests/target/launchdir/stanbol/indexes/default/dbpedia-2013.10.09/data/fst/dbpedia_ont_surfaceForm.en.fst"
"read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
at java.security.AccessController.checkPermission(AccessController.java:559)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
at java.io.File.exists(File.java:770)
at org.apache.stanbol.enhancer.engines.lucenefstlinking.CorpusInfo.getCorpus(CorpusInfo.java:186)
at org.apache.stanbol.enhancer.engines.lucenefstlinking.TaggingSession.obtainFstCorpus(TaggingSession.java:334)

NOTE that this is not reproduceable on all environments. 

Engines need to use AccessController.doPrivileged(..) for File IO



--
This message was sent by Atlassian JIRA
(v6.1#6144)