google app engine - No read/write access to file on my GWT application runtime (java.io.FilePermission) -
i getting error on runtime, when trying run gwt application:
java.security.accesscontrolexception: access denied (java.io.filepermission c:\users\admin\appdata\local\temp\tmp-andami read) @ java.security.accesscontrolcontext.checkpermission(unknown source) @ java.security.accesscontroller.checkpermission(unknown source) @ java.lang.securitymanager.checkpermission(unknown source) (stack trace longer, guess enough focus problem source)
i have searched in google issue , have found is, in general terms, change permissions on java.policy file (located in c:\program files\java\jre6\lib\security), did things like:
permission java.io.filepermission "<<all files>>" , "read"; permission java.io.filepermission "c:\users\admin\appdata\local\temp\tmp-andami" , "read"; permission java.security.allpermission; the problem in path file or folder "tmp-andami" not exist (maybe hidden), dont know if problem of permission or problem files not exist , therefore can not read.
all comes line written on code:
private static final string tempdirectorypath = system.getproperty("java.io.tmpdir")+"/tmp-andami"; but need write file, here or in path, dont care. have tried write file under "c:/" got same result.
any idea issue? doing wrong?
thank much!
but using access filesystem "server" package side, not "client" contains translatable code.
i thought possible this.
so, can do? should exist way of accessing local file system, isn't it? or @ least alternative way of doing same.
and, placing file under local deployed app file system? mean, under "war" directory or that. if browser can access folder read .jars , on, possible same purpose?
thanks help!
gwt compiles code javascript runs in browser. javascript not have access filesystem (for reason).
java.io.filepermission not listed in jre emulation reference can't use in client-side code, shouldn't able compiled gwt.
Comments
Post a Comment