Reputation: 73
when i use app engine to develop my apps,and i just want to read the file stored in the gaevfs using the code : this.shpAccessFile = new RandomAccessFile(this.shpFileName, "r"); but it throw new AccessControlException("access denied "+perm, perm);so can someone tell me how to solve the problem?
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)
Upvotes: 0
Views: 2663