我将面对这个问题: 一旦测试计划完成,如果有错误,在我点击红色行时,日志中会出现此异常:
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) ~[?:?]
at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2736) ~[?:?]
at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:4015) ~[?:?]
at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3954) ~[?:?]
at java.awt.Component.processMouseEvent(Component.java:6586) ~[?:?]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3342) ~[?:?]
at java.awt.Component.processEvent(Component.java:6354) ~[?:?]
at java.awt.Container.processEvent(Container.java:2261) ~[?:?]
at java.awt.Component.dispatchEventImpl(Component.java:4966) ~[?:?]
at java.awt.Container.dispatchEventImpl(Container.java:2319) ~[?:?]
at java.awt.Component.dispatchEvent(Component.java:4798) ~[?:?]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4914) ~[?:?]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4540) ~[?:?]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4484) ~[?:?]
at java.awt.Container.dispatchEventImpl(Container.java:2305) ~[?:?]
at java.awt.Window.dispatchEventImpl(Window.java:2772) ~[?:?]
at java.awt.Component.dispatchEvent(Component.java:4798) ~[?:?]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) ~[?:?]
at java.awt.EventQueue.access$600(EventQueue.java:97) ~[?:?]
at java.awt.EventQueue$4.run(EventQueue.java:721) ~[?:?]
at java.awt.EventQueue$4.run(EventQueue.java:715) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87) ~[?:?]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) ~[?:?]
at java.awt.EventQueue$5.run(EventQueue.java:745) ~[?:?]
at java.awt.EventQueue$5.run(EventQueue.java:743) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87) ~[?:?]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:742) ~[?:?]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) [?:?]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) [?:?]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) [?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) [?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:?]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]
你有没有想过如何修复它?
MAC OSX High Sierra Jmeter 4.0 r1823414 java 10.0.1 2018-04-17