Note that there are some explanatory texts on larger screens.

plurals
  1. PONo read/write access to file on my GWT application runtime (java.io.FilePermission)
    primarykey
    data
    text
    <p>I am getting this error on runtime, when trying to run my GWT application:</p> <pre><code>­java.security.AccessControlException: access denied (java.io.FilePermission C:\Users\Admin\AppData\Local\Temp\tmp-andami read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) </code></pre> <p>(Stack trace is longer, but I guess that this is enough to focus the problem source)</p> <p>I have searched in Google about this issue and what I have found is, in general terms, to change permissions on <strong>java.policy</strong> file (located in C:\Program Files\Java\jre6\lib\security), so I did things like:</p> <pre><code>permission java.io.FilePermission "&lt;&lt;ALL FILES&gt;&gt;" , "read"; permission java.io.FilePermission "C:\Users\Admin\AppData\Local\Temp\tmp-andami" , "read"; permission java.security.AllPermission; </code></pre> <p>The problem is that in that PATH file or folder "tmp-andami" does not exist (maybe it is hidden), so I dont know if it is a problem of permission or a problem that this files does not exist and therefore can not be read.</p> <p>All this comes from a line that is written on my code:</p> <pre><code>private static final String tempDirectoryPath = System.getProperty("java.io.tmpdir")+"/tmp-andami"; </code></pre> <p>But I need to write this file, here or in another PATH, I dont care. I have tried to write the file under "C:/" but I got the same result.</p> <p>Any idea about this issue? Am I doing something wrong?</p> <p>Thank you very much!</p> <hr> <p>But I am using the access to my filesystem from the "server" package side, not the "client" that contains the translatable code. </p> <p>I thought it would be possible to do this.</p> <p>So, what can I do? It should exist a way of accessing local file system, isn't it? Or at least an alternative way of doing the same.</p> <p>And, what about placing this file under the local deployed app file system? I mean, under "war" directory or something like that. If the browser can access this folder to read .jars and so on, would it be possible to do the same but with another purpose?</p> <p>Thanks for your help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload