java.security.AccessControlException: access denied (java.io.FilePermission counter.txt read)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807546, 1 year ago
access denied (java.io.FilePermission counter.txt read)
via Oracle Community by 843797, 1 year ago
access denied (java.io.FilePermission file:C:sundaricancel.gif read)
via Stack Overflow by Unknown author, 2 years ago
access denied ("java.io.FilePermission" "C:\tstsecdata\data" "read")
via Google Groups by JBless, 3 months ago
access denied (java.io.FilePermission docs.txt read)
via Oracle Community by 807597, 1 year ago
access denied (java.io.FilePermission ftestread.txt read)
via Oracle Community by 843807, 1 year ago
access denied (java.io.FilePermission http:\192.168.1.3:8080\someproject\classes\test.txt read)
java.security.AccessControlException: access denied (java.io.FilePermission counter.txt read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileReader.(Unknown Source)
at undefined.counter.getCount(counter.java:100)
at undefined.counter.(counter.java:48)

Users with the same issue

2 times, 1 month ago
Once, 6 months ago
Once, 6 months ago
Once, 7 months ago
12 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.