app engine java.security.AccessControlException

时间:2011-06-07 07:33:50

标签: java security google-app-engine

当我使用app引擎开发我的应用程序时,我只想使用以下代码读取存储在gaevfs中的文件:this.shpAccessFile = new RandomAccessFile(this.shpFileName,“r”);但它抛出新的AccessControlException(“访问被拒绝”+烫发,烫发);所以有人能告诉我如何解决这个问题吗?

java.security.AccessControlException: access denied (java.io.FilePermission gae:\F:\workspace\GeoCloud\war\gaevfs\cecc8aa0-7405-102e-b976-026d7f000001\longrive.shp read)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    at java.security.AccessController.checkPermission(AccessController.java:546)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:203)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
    at com.vobject.appengine.java.io.RandomAccessFile.<init>(RandomAccessFile.java:90)

1 个答案:

答案 0 :(得分:2)

您是否关注此guideline