java.security.AccessControlException: access denied (java.io.FilePermission C:\LensView312\policy\PhotoDBApp.policy write)

Coderanch | Sai Krishna Padmanabhan | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Java policy file related problems

    Coderanch | 5 years ago | Sai Krishna Padmanabhan
    java.security.AccessControlException: access denied (java.io.FilePermission C:\LensView312\policy\PhotoDBApp.policy write)

    Root Cause Analysis

    1. java.security.AccessControlException

      access denied (java.io.FilePermission C:\LensView312\policy\PhotoDBApp.policy write)

      at java.security.AccessControlContext.checkPermission()
    2. Java RT
      File.setReadable
      1. java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
      2. java.security.AccessController.checkPermission(AccessController.java:546)
      3. java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      4. java.lang.SecurityManager.checkWrite(SecurityManager.java:962)
      5. java.io.File.setReadable(File.java:1386)
      5 frames
    3. MaintainData
      LensView.main
      1. MaintainData.InstallDB.setandwritepolicyfile(InstallDB.java:596)
      2. MaintainData.LensView.main(LensView.java:464)
      2 frames