使用 nohup 或 disown 如果你要让某个进程运行在后台。

java.security.AccessControlException: access denied ("org.elasticsearch.SpecialPermission" "*")

Elasticsearch | 作者 bookup | 发布于2018年06月22日 | 阅读数:4676

java.security.AccessControlException: access denied ("org.elasticsearch.SpecialPermission" "*") es 6.3.0
 
        SpecialPermission.check();
return AccessController.doPrivileged((PrivilegedAction<BufferedReader>) () -> {
try {

return new BufferedReader(new InputStreamReader(IpUtils2.class.getResourceAsStream(name), Charset.forName("UTF-8")));
} catch (Exception e) {
throw new RuntimeException(e.getMessage(), e);
}
});
Caused by: java.security.AccessControlException: access denied ("org.elasticsearch.SpecialPermission" "*")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[?:1.8.0_161]
at java.security.AccessController.checkPermission(AccessController.java:884) ~[?:1.8.0_161]
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) ~[?:1.8.0_161]
at org.elasticsearch.SpecialPermission.check(SpecialPermission.java:89) ~[elasticsearch-6.3.0.jar:6.3.0]
已邀请:

bookup

赞同来自:

去掉SpecialPermission.check();就可以了

要回复问题请先登录注册