java.security.AccessControlException: access denied ("java.io.FilePermission" "/tmp/abcd#4910205138484207578.tmp" "read")

JDK Bug System | Rajan Halade | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [#JDK-8017212] File.createTempFile requires unnecessary "read" permission - Java Bug System

    java.net | 2 years ago
    java.security.AccessControlException: access denied ("java.io.FilePermission" "/tmp/abcd#4910205138484207578.tmp" "read")

    Root Cause Analysis

    1. java.security.AccessControlException

      access denied ("java.io.FilePermission" "/tmp/abcd#4910205138484207578.tmp" "read")

      at java.security.AccessControlContext.checkPermission()
    2. Java RT
      File.createTempFile
      1. java.security.AccessControlContext.checkPermission(AccessControlContext.java:453)
      2. java.security.AccessController.checkPermission(AccessController.java:820)
      3. java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
      4. java.lang.SecurityManager.checkRead(SecurityManager.java:888)
      5. java.io.File.exists(File.java:814)
      6. java.io.File.createTempFile(File.java:2003)
      6 frames
    3. Unknown
      FileTempTest.main
      1. FileTempTest.run(FileTempTest.java:46)
      2. SecurityTest.verify(SecurityTest.java:76)
      3. FileTempTest.main(FileTempTest.java:60)
      3 frames