access denied XXXXXXXXXXXX
这个异常是做支付的时候出现的,貌似是没有权限访问之类的,网上查了有N个解决的办法,我写一下我解决的办法吧、。、。、、、
出现的异常具体:
java.security.AccessControlException: access denied ("java.net.SocketPermission" "opay.arsomon.com" "resolve")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1048)
at java.net.InetAddress.getAllByName0(InetAddress.java:1268)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
我们需要去当前项目使用的jre文件夹中去修改文件,具体看下面的截图:
如果有需要的小伙伴,直接复制这段代码就OK了,记住,看上图!!
permission java.net.SocketPermission "opay.arsomon.com","connect,resolve";