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

"java.lang.RuntimePermission createClassLoader" from Firefox 3.5 extension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 6u14
    • deploy
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0_14"
      Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
      Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1) Gecko/20090624 Firefox/3.5

      Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)

      A DESCRIPTION OF THE PROBLEM :
      An exception is thrown when I do a "var cl = new java.net.URLClassLoader( [ xmldapUrl ]  )" inside a Firefox extension. Those are expected to have the priveledge to create a classloader; how else should I load my jar files?

      uncaught exception: Error calling method on NPObject! [plugin exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)].

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      - Start Firefox 3.5 and install openinfocard from here: http://openinfocard.googlecode.com/files/xmldap-0.9.9.200905172122.xpi
      (Download the file to disk then drag it into a browser window.)
      - Navigate to e.g. https://xmldap.org/relyingparty/
      - click on the image
      - look in the console for the error message

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No exception should be thrown. A Firefox extension that wants to load jar files should be able to do this.
      ACTUAL -
      An exception is thrown when a class loader is created. The offending line is:
       var cl = new java.net.URLClassLoader( [ xmldapUrl ] );
      in file
      http://code.google.com/p/openinfocard/source/browse/trunk/firefox/chrome/infocard/content/tokenissuerXul.js#50


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      uncaught exception: Error calling method on NPObject! [plugin exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)].

      REPRODUCIBILITY :
      This bug can be reproduced always.

            hdongorcl Hao Dong (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: