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

Coderanch | Sai Krishna Padmanabhan | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Java policy file related problems

    Coderanch | 4 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