java.io.IOException异常:无效的密钥库格式 [英] java.io.IOException: Invalid Keystore format

查看:6145
本文介绍了java.io.IOException异常:无效的密钥库格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何解决这个问题?
我试过很多东西,但没有一次成功。

当我点击更多的细节我得到这样的:

 在sun.security.provider.JavaKeyStore.engineLoad(来源不明)
atsun.security.provider.JavaKeyStore $ JKS.engineLoad(来源不明)
在java.security.KeyStore.load(来源不明)
在com.sun.deploy.security.RootCertStore $ 1.run(来源不明)
在java.security.AccessController.doPrivileged(本机方法)
在com.sun.deploy.security.RootCertStore.loadCertStore(来源不明)
在com.sun.deploy.security.RootCertStore.load(来源不明)
在com.sun.deploy.security.RootCertStore.load(来源不明)
在com.sun.deploy.security.ImmutableCertStore.load(来源不明)
在com.sun.deploy.security.TrustDecider.isAllPermissionGranted(来源不明)
在com.sun.deploy.security.TrustDecider.isAllPermissionGranted(来源不明)
在sun.plugin.security.PluginClassLoader.getPermissions(来源不明)
在java.security.SecureClassLoader.getProtectionDomain(来源不明)
在java.security.SecureClassLoader.defineClass(来源不明)
在java.net.URLClassLoader.defineClass(来源不明)
在java.net.URLClassLoader.access $ 000(来源不明)
在java.net.URLClassLoader的$ 1.run(来源不明)
在java.security.AccessController.doPrivileged(本机方法)
在java.net.URLClassLoader.findClass(来源不明)
在sun.applet.AppletClassLoader.findClass(来源不明)
在java.lang.ClassLoader.loadClass(来源不明)
在sun.applet.AppletClassLoader.loadClass(来源不明)
在java.lang.ClassLoader.loadClass(来源不明)
在sun.applet.AppletClassLoader.load code(来源不明)
在sun.applet.AppletPanel.createApplet(来源不明)
在sun.plugin.AppletViewer.createApplet(来源不明)
在sun.applet.AppletPanel.runLoader(来源不明)
在sun.applet.AppletPanel.run(来源不明)
在java.lang.Thread.run(来源不明)


解决方案

您可能会损坏复制/传输过程中的文件。

您使用maven?
如果要复制密钥库文件与过滤器= true,则有可能会损坏文件。

请检查文件的大小。

Does anyone know how to solve this? I tried many things, but none of them worked.

And when I click more details I get this:

at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
atsun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at com.sun.deploy.security.RootCertStore$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.RootCertStore.loadCertStore(Unknown Source)
at com.sun.deploy.security.RootCertStore.load(Unknown Source)
at com.sun.deploy.security.RootCertStore.load(Unknown Source)
at com.sun.deploy.security.ImmutableCertStore.load(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

解决方案

You may corrupt the file during copy/transfer.

Are you using maven? If you are copying keystore file with "filter=true", you may corrupt the file.

Please check the file size.

这篇关于java.io.IOException异常:无效的密钥库格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆