当前位置: 技术问答>java相关
求教异常
来源: 互联网 发布时间:2014-12-29
本文导语: 初学java,想用URL流连接从服务器上读取一个文件,出现了这样的问题: ava.security.AccessControlException: access denied (java.net.SocketPermission flying.swpi.edu.cn resolve) 什么意思?如何解决? | 好像是安...
初学java,想用URL流连接从服务器上读取一个文件,出现了这样的问题:
ava.security.AccessControlException: access denied (java.net.SocketPermission flying.swpi.edu.cn resolve)
什么意思?如何解决?
ava.security.AccessControlException: access denied (java.net.SocketPermission flying.swpi.edu.cn resolve)
什么意思?如何解决?
|
好像是安全问题!
你使用的是applet吗?
你使用的是applet吗?
|
jdk1.3文档:
This exception is thrown by the AccessController to indicate
* that a requested access (to a critical system resource such as the
* file system or the network) is denied.
*
* The reason to deny access can vary. For example, the requested
* permission might be of an incorrect type, contain an invalid
* value, or request access that is not allowed according to the
* security policy. Such information should be given whenever
* possible at the time the exception is thrown.
This exception is thrown by the AccessController to indicate
* that a requested access (to a critical system resource such as the
* file system or the network) is denied.
*
* The reason to deny access can vary. For example, the requested
* permission might be of an incorrect type, contain an invalid
* value, or request access that is not allowed according to the
* security policy. Such information should be given whenever
* possible at the time the exception is thrown.
|
applet使用沙箱模型。在applet中不能调用本地的socket,文件操作等等。这是为了安全性。可以通过改成application来完成,也可以通过签名applet来实现。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。