我是jmeter的新手。当我使用Graphs Generator插件运行我的测试时,我得到了这个例外。
ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoClassDefFoundError: kg/apc/jmeter/PluginsCMDWorker
at kg.apc.jmeter.listener.GraphsGeneratorListener.testEnded(GraphsGeneratorListener.java:146) ~[JMeterPlugins-Extras.jar:?]
at kg.apc.jmeter.listener.GraphsGeneratorListener.testEnded(GraphsGeneratorListener.java:137) ~[JMeterPlugins-Extras.jar:?]
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:227) ~[ApacheJMeter_core.jar:4.0 r1823414]
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:495) ~[ApacheJMeter_core.jar:4.0 r1823414]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.ClassNotFoundException: kg.apc.jmeter.PluginsCMDWorker
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:?]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
... 5 more
2018-04-05 13:33:26,076 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(Unknown Source) ~[?:?]
at javax.swing.text.AbstractDocument.handleInsertString(Unknown Source) ~[?:?]
at javax.swing.text.AbstractDocument.insertString(Unknown Source) ~[?:?]
at javax.swing.text.PlainDocument.insertString(Unknown Source) ~[?:?]
at javax.swing.text.DefaultEditorKit.read(Unknown Source) ~[?:?]
at javax.swing.JEditorPane.setText(Unknown Source) ~[?:?]
at org.apache.jmeter.visualizers.RenderAsText.showTextResponse(RenderAsText.java:36) ~[ApacheJMeter_components.jar:4.0 r1823414]
at org.apache.jmeter.visualizers.RenderAsText.renderResult(RenderAsText.java:31) ~[ApacheJMeter_components.jar:4.0 r1823414]
at org.apache.jmeter.visualizers.ViewResultsFullVisualizer.valueChanged(ViewResultsFullVisualizer.java:392) ~[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(Unknown Source) ~[?:?]
at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source) ~[?:?]
at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source) ~[?:?]
at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source) ~[?:?]
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source) ~[?:?]
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source) ~[?:?]
at javax.swing.JTree.setSelectionPath(Unknown Source) ~[?:?]
at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source) ~[?:?]
at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source) ~[?:?]
at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source) ~[?:?]
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source) ~[?:?]
at java.awt.Component.processMouseEvent(Unknown Source) ~[?:?]
at javax.swing.JComponent.processMouseEvent(Unknown Source) ~[?:?]
at java.awt.Component.processEvent(Unknown Source) ~[?:?]
at java.awt.Container.processEvent(Unknown Source) ~[?:?]
at java.awt.Component.dispatchEventImpl(Unknown Source) ~[?:?]
at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:?]
at java.awt.Component.dispatchEvent(Unknown Source) ~[?:?]
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
另外,我添加了插件管理器.jar文件,但是当我点击插件管理器时,我收到一个连接超时错误,它没有将我重定向到插件窗口。
答案 0 :(得分:0)
您需要安装JMeterPluginsCMD Command Line Tool,推荐的安装方法是使用JMeter Plugins Manager
如果由于某种原因您无法使用插件管理器,您可以随时从https://jmeter-plugins.org/?search=jpgc-cmd下载jar,将其放到JMeter安装的“lib / ext”文件夹中,然后重新启动JMeter以进行拾取。