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, 1 month 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

Samebug visitor profile picture
Unknown user
Once, 3 days ago
Once, 2 weeks ago
Once, 4 months ago
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
75 more bugmates

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