Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6459786

VISTA: accesscontrolexception in javaplugin when loading jar file from cache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 6
    • 6
    • deploy
    • x86
    • windows_vista

      FULL PRODUCT VERSION :
      1.6.0-rc

      ADDITIONAL OS VERSION INFORMATION :
      Windows Vista 6.0

      A DESCRIPTION OF THE PROBLEM :
      the following exception is thrown when an applet tries to load a jar file

      ava.security.AccessControlException: access denied (java.io.FilePermission C:\Users\root\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\46\1eb256e-5c10fb0d read)
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkRead(Unknown Source)
      at java.util.zip.ZipFile.<init>(Unknown Source)
      at java.util.jar.JarFile.<init>(Unknown Source)
      at java.util.jar.JarFile.<init>(Unknown Source)
      at com.sun.deploy.cache.CachedJarFile.<init>(Unknown Source)
      at com.sun.deploy.cache.CachedJarFile.clone(Unknown Source)
      at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
      at sun.plugin.net.protocol.jar.CachedJarURLConnection.getContent(Unknown Source)
      at java.net.URL.getContent(Unknown Source)
      ...

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      no excpetion thrown
      ACTUAL -
      exception

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkRead(Unknown Source)
      at java.util.zip.ZipFile.<init>(Unknown Source)
      at java.util.jar.JarFile.<init>(Unknown Source)
      at java.util.jar.JarFile.<init>(Unknown Source)
      at com.sun.deploy.cache.CachedJarFile.<init>(Unknown Source)
      at com.sun.deploy.cache.CachedJarFile.clone(Unknown Source)
      at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
      at sun.plugin.net.protocol.jar.CachedJarURLConnection.getContent(Unknown Source)
      at java.net.URL.getContent(Unknown Source)
      ...

      REPRODUCIBILITY :
      This bug can be reproduced always.

            mleisunw Mike Lei (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: