Jmeter - 在查看结果树中单击响应时出现 Java 异常

我面临这个问题:一旦测试计划完成,如果有错误,当我点击红行时,我在日志中得到这个异常:


    2018-07-18 15:15:03,837 ERROR o.a.j.JMeter: Uncaught exception: 

java.lang.ClassCastException: java.desktop/javax.swing.text.AbstractDocument$DefaultDocumentEventUndoableWrapper cannot be cast to java.desktop/javax.swing.text.AbstractDocument$DefaultDocumentEvent

    at jsyntaxpane.CompoundUndoMan.undoableEditHappened(CompoundUndoMan.java:61) ~[jsyntaxpane-1.0.0.jar:1.0.0]

    at javax.swing.text.AbstractDocument.fireUndoableEditUpdate(AbstractDocument.java:293) ~[?:?]

    at javax.swing.text.AbstractDocument.handleRemove(AbstractDocument.java:632) ~[?:?]

    at javax.swing.text.AbstractDocument.remove(AbstractDocument.java:596) ~[?:?]

    at javax.swing.JEditorPane.setText(JEditorPane.java:1422) ~[?:?]

    at org.apache.jmeter.visualizers.SamplerResultTab.clearData(SamplerResultTab.java:202) ~[ApacheJMeter_components.jar:4.0 r1823414]

    at org.apache.jmeter.visualizers.SamplerResultTab.setupTabPane(SamplerResultTab.java:222) ~[ApacheJMeter_components.jar:4.0 r1823414]

    at org.apache.jmeter.visualizers.ViewResultsFullVisualizer.valueChanged(ViewResultsFullVisualizer.java:387) ~[ApacheJMeter_components.jar:4.0 r1823414]

    at org.apache.jmeter.visualizers.ViewResultsFullVisualizer.valueChanged(ViewResultsFullVisualizer.java:365) ~[ApacheJMeter_components.jar:4.0 r1823414]

    at javax.swing.JTree.fireValueChanged(JTree.java:2968) ~[?:?]

    at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3457) ~[?:?]

    at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:641) ~[?:?]

    at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1111) ~[?:?]

    at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:297) ~[?:?]

    at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:191) ~[?:?]

    at javax.swing.JTree.setSelectionPath(JTree.java:1657) ~[?:?]


你知道如何解决它吗?



Qyouu
浏览 299回答 2
2回答

慕标琳琳

我相信这可能是 Jmeter 尚不支持 Java 10 的问题。这是针对 Jmeter 3.x 报告的类似问题,不支持 Java 9 Bug 61529。我建议尝试使用 Java 9 运行,然后我相信你会避免这个问题。

慕田峪4524236

我面临着同样的问题。我已在此处登录Apache Bugzilla 上的错误。请为这个错误投票。有人建议我从 JMeter 5.1.1降级到可以在此处找到的 4.0版。我试过了,它奏效了!
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java