ava.security.AccessControlException: access denied (java.io.FilePermission load.gif read)

Coderanch | Sven Habermann | 1 decade 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

    access Denied (FilePermission)

    Coderanch | 1 decade ago | Sven Habermann
    ava.security.AccessControlException: access denied (java.io.FilePermission load.gif read)

    Root Cause Analysis

    1. ava.security.AccessControlException

      access denied (java.io.FilePermission load.gif read)

      at java.security.AccessControlContext.checkPermission()
    2. Java RT
      ImageIcon.<init>
      1. java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
      2. java.security.AccessController.checkPermission(AccessController.java:401)
      3. java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
      4. java.lang.SecurityManager.checkRead(SecurityManager.java:887)
      5. sun.awt.SunToolkit.getImageFromHash(SunToolkit.java:486)
      6. sun.awt.SunToolkit.getImage(SunToolkit.java:500)
      7. javax.swing.ImageIcon.<init>(ImageIcon.java:81)
      8. javax.swing.ImageIcon.<init>(ImageIcon.java:107)
      8 frames
    3. Unknown
      SHSimulationsApplet.<init>
      1. TPSimulator$LoadFile.<init>(TPSimulator.java:252)
      2. TPSimulator$Input.<init>(TPSimulator.java:152)
      3. TPSimulator.<init>(TPSimulator.java:34)
      4. Gui.<init>(Gui.java:48)
      5. SHSimulationsApplet.<init>(SHSimulationsApplet.java:29)
      5 frames
    4. Java RT
      AppletPanel.createApplet
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      5. java.lang.Class.newInstance0(Class.java:306)
      6. java.lang.Class.newInstance(Class.java:259)
      7. sun.applet.AppletPanel.createApplet(AppletPanel.java:566)
      7 frames
    5. sun.plugin
      AppletViewer.createApplet
      1. sun.plugin.AppletViewer.createApplet(AppletViewer.java:1775)
      1 frame
    6. Java RT
      Thread.run
      1. sun.applet.AppletPanel.runLoader(AppletPanel.java:495)
      2. sun.applet.AppletPanel.run(AppletPanel.java:292)
      3. java.lang.Thread.run(Thread.java:536)
      3 frames