java.security.AccessControlException:访问被拒绝(java.net.SocketPermission 127.0.0.1:8081连接,解决) - 主要理由 [英] java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:8081 connect,resolve) - main reasons
问题描述
什么是导致报告异常的主要原因是什么?
What are the main reasons that cause the exception reported?
同样信任的签名小程序(Digicert证书),伟大工程上的一些电脑,不会对其他的工作。当我尝试通过的URLConnection
Same trusted signed applet (Digicert certificate), works great on some PCs, doesn't work on other. Exception occurs when i try to get an attachment stream through URLConnection
在它不工作,我有解决
grant {
permission java.security.AllPermission;
};
在
java.policy
但我想,以避免更新每个PC。
but i would like to avoid to update every PC.
可能是一个端口
(8081)的问题?我应该怎么查?
Could be a port
(8081) issue? What should I investigate?
推荐答案
您必须MANIFEST.MF实例添加所有的权限,沙箱
You must add "all-permissions" in manifest.mf instance "sandbox"
和
签署code签名证书的jar文件。
sign your jar file with code signing certificate.
这篇关于java.security.AccessControlException:访问被拒绝(java.net.SocketPermission 127.0.0.1:8081连接,解决) - 主要理由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!