java and signed jars on Mac

匆匆过客 提交于 2019-12-11 19:56:43

问题


I have a thick Java client that is launched as jnlp. The jars are all signed.

this application works on all OSes except on Mac OSX 10.5.8.

Using Safari or FireFox, when I launch the app, I get the following error:

java.lang.NullPointerException
at java.util.jar.JarVerifier.mapSignersToCodeSource(JarVerifier.java:496)
at java.util.jar.JarVerifier.mapSignersToCodeSources(JarVerifier.java:508)
at java.util.jar.JarVerifier.getCodeSources(JarVerifier.java:826)
at java.util.jar.JarFile.getCodeSources(JarFile.java:613)
at java.util.jar.JavaUtilJarAccessImpl.getCodeSources(JavaUtilJarAccessImpl.java:25)
at com.sun.deploy.cache.DeployCacheJarAccessImpl.getCodeSources(DeployCacheJarAccessImpl.java:60)
at com.sun.javaws.security.SigningInfo.getCommonCodeSignersForJar(SigningInfo.java:382)
at com.sun.javaws.security.SigningInfo.check(SigningInfo.java:291)
at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(LaunchDownload.java:1498)
at com.sun.javaws.LaunchDownload.checkSignedResources(LaunchDownload.java:1268)
at com.sun.javaws.Launcher.prepareResources(Launcher.java:1222)
at com.sun.javaws.Launcher.prepareAllResources(Launcher.java:624)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:332)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:204)
at com.sun.javaws.Launcher.launch(Launcher.java:121)
at com.sun.javaws.Main.launchApp(Main.java:418)
at com.sun.javaws.Main.continueInSecureThread(Main.java:255)
at com.sun.javaws.Main$1.run(Main.java:115)
at java.lang.Thread.run(Thread.java:613)

Is this a function of the browser settings or the Java configuration on this machine? As I said the jars are signed and verified on all other OS/platforms except this one OS/machine.

Any ideas on this

来源:https://stackoverflow.com/questions/11142497/java-and-signed-jars-on-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!