JEditorPane.setpage不再适用于java 1.6.22

JEditorPane.setpage不再适用于java 1.6.22,java,applet,Java,Applet,现在安装了新的Java1.6.22更新(以前的版本还可以),我的客户报告了一个严重的问题 仅当第二次使用我的小程序时,editorPane.setPage()才会引发异常 (意味着使用浏览器或小程序查看器重新加载我的小程序) 重新启动小程序时,重新加载时不会出现问题 Exception in thread "Thread-10" java.lang.NullPointerException at javax.swing.text.html.parser.Parser.errorConte

现在安装了新的Java1.6.22更新(以前的版本还可以),我的客户报告了一个严重的问题

仅当第二次使用我的小程序时,editorPane.setPage()才会引发异常 (意味着使用浏览器或小程序查看器重新加载我的小程序) 重新启动小程序时,重新加载时不会出现问题

Exception in thread "Thread-10" java.lang.NullPointerException
    at javax.swing.text.html.parser.Parser.errorContext(Unknown Source)
    at javax.swing.text.html.parser.Parser.parse(Unknown Source)
    at javax.swing.text.html.parser.DocumentParser.parse(Unknown Source)
    at javax.swing.text.html.parser.ParserDelegator.parse(Unknown Source)
    at javax.swing.text.html.HTMLEditorKit.read(Unknown Source)
    at javax.swing.JEditorPane.read(Unknown Source)
    at javax.swing.JEditorPane$PageLoader.run(Unknown Source)
我正在使用m_editorPane.seteditorkit for contenttype

如何修复小程序,使setPage不会因新的JRE 1.6.22而崩溃 我不能告诉客户使用较旧的JRE。

是的


该链接中描述了一种变通方法。

出于某种原因,该错误被标记为无效错误的副本

可能相关的错误id: