JRE 7更新51和扩展机制

时间:2014-03-04 12:07:04

标签: java

我开发了一个使用Java扩展机制安装扩展包的applet。 两个JAR都已签名,我已将其放入清单中:

Permissions: all-permissions
Codebase: *
Application-Library-Allowable-Codebase: *
Caller-Allowable-Codebase: *

它适用于JRE 1.7更新45,但是使用最后一个版本的JRE(1.7更新51),我收到以下错误:

java.lang.NullPointerException
    at com.sun.deploy.security.DeployManifestChecker.verifyCodebase(Unknown Source)
    at com.sun.deploy.security.DeployManifestChecker.verifyApplicationLibraryAllowableCodebase(Unknown Source)
    at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
    at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
    at sun.plugin.extension.ExtensionInstallationImpl.verifyJar(Unknown Source)
    at sun.plugin.extension.ExtensionInstallationImpl.access$100(Unknown Source)
    at sun.plugin.extension.ExtensionInstallationImpl$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.extension.ExtensionInstallationImpl.installExtension(Unknown Source)
    at sun.misc.ExtensionDependency.installExtension(Unknown Source)
    at sun.misc.ExtensionDependency.checkExtension(Unknown Source)
    at sun.misc.ExtensionDependency.checkExtensions(Unknown Source)
    at sun.misc.ExtensionDependency.checkExtensionsDependencies(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.parseExtensionsDependencies(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.getClassPath(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

如果我将包扩展名复制到JRE的lib / ext目录中,则applet可以正常工作。 我已经阅读了the changes in the new JRE,但我怎么能让它发挥作用?

0 个答案:

没有答案