java.security.AccessControlException: Preventing sample.SittingDuck from access: (java.io.FilePermission C:\Program Files\robocode\robots\sample read): You may only read files in your own root package directory.

robocode | cmwi96 | 1 decade ago
  1. 0

    Java Errors disabling bots that write.

    robocode | 1 decade ago | cmwi96
    java.security.AccessControlException: Preventing sample.SittingDuck from access: (java.io.FilePermission C:\Program Files\robocode\robots\sample read): You may only read files in your own root package directory.
  2. 0

    Java file input and output

    Stack Overflow | 7 years ago | CiarĂ¡n
    java.security.AccessControlException: Preventing itc.solomon from access: (java.io.FilePermission log.txt read): You may only read files in your own root package directory.
  3. 0

    Java FilePermission error during startup

    robocode | 10 years ago | *anonymous
    java.security.ProviderException: Error parsing configuration
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Logging?

    robocode | 10 years ago | res1st
    java.security.AccessControlException: Preventing ingo.testbot.IngosTestBot from access: (java.util.logging.LoggingPermission control)
  6. 0

    Robot problem after Options->Clean robot cache

    robocode | 8 years ago | vitting
    java.security.AccessControlException: Preventing unknown thread sample.SittingDuck (1) from access: (java.io.FilePermission C:\robocode\robots\sample\SittingDuck.data\count.dat read)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.AccessControlException

      Preventing sample.SittingDuck from access: (java.io.FilePermission C:\Program Files\robocode\robots\sample read): You may only read files in your own root package directory.

      at robocode.security.RobocodeSecurityManager.checkPermission()
    2. robocode.security
      RobocodeSecurityManager.checkPermission
      1. robocode.security.RobocodeSecurityManager.checkPermission(RobocodeSecurityManager.java:322)
      1 frame
    3. Java RT
      File.getCanonicalFile
      1. java.lang.SecurityManager.checkRead(Unknown Source)
      2. java.io.File.exists(Unknown Source)
      3. java.io.Win32FileSystem.canonicalize(Unknown Source)
      4. java.io.File.getCanonicalPath(Unknown Source)
      5. java.io.File.getCanonicalFile(Unknown Source)
      5 frames
    4. robocode.peer.robot
      RobotFileSystemManager.getReadableDirectory
      1. robocode.peer.robot.RobotFileSystemManager.getReadableDirectory(RobotFileSystemManager.java:120)
      1 frame
    5. robocode.security
      RobocodeSecurityManager.checkPermission
      1. robocode.security.RobocodeSecurityManager.checkPermission(RobocodeSecurityManager.java:307)
      1 frame
    6. Java RT
      File.getCanonicalFile
      1. java.lang.SecurityManager.checkRead(Unknown Source)
      2. java.io.File.exists(Unknown Source)
      3. java.io.Win32FileSystem.canonicalize(Unknown Source)
      4. java.io.File.getCanonicalPath(Unknown Source)
      5. java.io.File.getCanonicalFile(Unknown Source)
      5 frames
    7. robocode.peer.robot
      RobotFileSystemManager.getWritableDirectory
      1. robocode.peer.robot.RobotFileSystemManager.getWritableDirectory(RobotFileSystemManager.java:135)
      1 frame
    8. robocode
      AdvancedRobot.getDataFile
      1. robocode.AdvancedRobot.getDataFile(AdvancedRobot.java:369)
      1 frame
    9. Java EE Connector Architecture API Specification
      SittingDuck.run
      1. sample.SittingDuck.run(SittingDuck.java:25)
      1 frame
    10. robocode.peer
      RobotPeer.run
      1. robocode.peer.RobotPeer.run(RobotPeer.java:633)
      1 frame
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame