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

VISTA: accesscontrolexception in javaplugin when loading jar file from cache

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: deploy
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_vista

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: