使用 JRE 1.5 (IE6) 的小程序无法通过 HTTPS 打开 HTML 页面,但适用于 JRE1.6
我有一个小型(500kb)swing 小程序,它使用 JEditorPane 显示小型 HTML 页面。 这对于大多数浏览器和 JRE 都能很好地工作,但对于 JRE 1.5 (IE6),它似乎只显示空白。 java 控制台上没有错误消息或异常。
Applet 能够使用所有 JRE 加载 TXT 文件,使用 JAVA CONSOLE 跟踪 5 选项,它会为文本文件和 html 文件显示相同的诊断消息:
network: Connecting https://xxx.net/xxx/data/my.txt 与 proxy=DIRECT
网络:连接 https://xxx.net/xxx/data/my2.htm with proxy=DIRECT
任何想法如何进一步诊断出了什么问题,或者如何解决?
我没有控制台访问托管小程序的客户端服务器,但我有一台带有 IE6+JRE 1.5 的测试机,我可以用它来访问他们的 HTTPS url 并重现问题。 其他浏览器/JRE 1.6 不会出现此问题。
Applet 未签名,因为 HTML 页面和 applet 位于同一服务器的同一文件夹中。
I have a small (500kb) swing applet that displays small HTML page with JEditorPane.
This works nicely with most browsers and JREs, but with JRE 1.5 (IE6) it seem to display just blank. There are no error messages on java console or exceptions.
Applet is able to load TXT files with all JREs just fine, with JAVA CONSOLE tracing 5 option it displays the same diagnostic message for both text files and html files:
network: Connecting https://xxx.net/xxx/data/my.txt with proxy=DIRECT
network: Connecting https://xxx.net/xxx/data/my2.htm with proxy=DIRECT
Any ideas how to diagnose further whats going wrong, or how to fix it?
I don't have console access to my client's server hosting the applet, but I have a test machine with IE6+JRE 1.5 that I can use to access their HTTPS url and reproduce the problem. The problem does not appear with other browsers / JRE 1.6.
Applet is unsigned since the HTML page and applet are located in same folder in same server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否尝试过运行 Wireshark 之类的东西来查看请求是否确实发生,或者您是否确实收到了回复? 如果网络出现奇怪的情况(也许 1.5 JRE 对请求做了一些奇怪的事情),那么这可能会帮助您追踪它。
Have you tried running something like Wireshark to see if the request is actually happening or if you're actually getting a response? If it's something weird with the network (maybe the 1.5 JRE is doing something weird with the request) then that might help you track it down.
找到解决方案,JEditorPane 异步模式导致了此问题,切换到同步模式解决了 JRE 1.5 的错误
Solution found, JEditorPane Async mode was causing this issue, switching to Syncronized mode solved bug with JRE 1.5
难道你不能只将日志语句插入到小程序源代码中吗? 重新部署? 您应该能够在 java 控制台中看到日志输出。 这应该有助于缩小问题范围。
Can't you just insert logging statements into the applet source code & redeploy? You should be able to see the log output in the java console. That should help to narrow down the problem.