VISTA: accesscontrolexception in javaplugin when loading jar file from cache

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 6
    • Affects Version/s: 6
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: