我开发了一个小程序,但我发现了一个奇怪的行为。
这用于在 GWT、Hibernate 和 Spring 中构建的基于安全性的应用程序。
小程序主要是获取浏览器证书,用于数据的加解密。
它在所有系统上都运行良好,但我不知道有一台客户端计算机出现了奇怪的行为。
当我登录 Internet Explorer 时。小程序加载在以下位置停止,然后自动关闭。
applet 控制台出错:
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@337d0f
basic: Plugin2ClassLoader.addURL parent called for http://phil.etenders.in/securityApplet.jar security: Blacklist revocation check is enabled security: Trusted libraries list check is enabled network: Cache entry found [url: http://phil.etenders.in/securityApplet.jar, version: null] prevalidated=false/0
删除了黑名单撤销检查和可信库检查但没有影响。 (他们顺利通过),
如果我打开来自 http://csis.pace.edu/~bergin/Java/applets.htm 的任何示例小程序 它在下一行停止
basic: Plugin2ClassLoader.isTrustedByPolicy called
basic: Plugin2ClassLoader.isTrustedByPolicy returns false
在所有三种浏览器上的行为。
- Firefox and Chrome : Does not load at all.
- IE : First time does not load when hit refresh it loads.
如果需要更多详细信息,请告诉我。 引用来自 here 的源代码 .
最佳答案
我在客户端机器上升级了最新版本的 java 版本,它工作正常。
关于java - 证书加载问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18525908/