このマニュアルを使用して Jmeter を Kibana に接続しようとしています: https://blogs.sap.com/2016/04/06/load-testing-with-jmeter-test-results-visualization-using-kibana-dashboards/comment-ページ-1/#コメント-398399
私は JMeter 3.2 を使用しており、elasticsearch-5.6.4.zip をダウンロードしました。
zip を解凍し、elasticsearch-5.6.4 フォルダーを C:\Jmeter\apache-jmeter-3.2\lib に配置します。
jar JMeter_ElasticsearchListener.jar をダウンロードし、C:\Jmeter\apache-jmeter-3.2\lib\ext に配置しました。
JMeter を再起動し、追加 -> リスナー -> バックエンド リスナーを押すと、次のエラーが発生します。
017-11-11 09:39:12,429 ERROR o.a.j.g.GuiPackage: Problem retrieving gui for org.apache.jmeter.visualizers.backend.BackendListenerGui
java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClientBuilder$HttpClientConfigCallback
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_141]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:166) ~[ApacheJMeter_components.jar:3.2 r1790748]
at javax.swing.JComboBox.fireActionEvent(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedItem(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedIndex(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.clearGui(BackendListenerGui.java:281) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:348) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_141]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_141]
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.client.RestClientBuilder$HttpClientConfigCallback
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
... 25 more
2017-11-11 09:39:40,782 ERROR o.a.j.g.a.AddToTree: Exception while adding a component to tree.
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClientBuilder$HttpClientConfigCallback
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:359) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_141]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_141]
Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClientBuilder$HttpClientConfigCallback
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_141]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:166) ~[ApacheJMeter_components.jar:3.2 r1790748]
at javax.swing.JComboBox.fireActionEvent(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedItem(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedIndex(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.clearGui(BackendListenerGui.java:281) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:348) ~[ApacheJMeter_core.jar:3.2 r1790748]
... 17 more
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.client.RestClientBuilder$HttpClientConfigCallback
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_141]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:166) ~[ApacheJMeter_components.jar:3.2 r1790748]
at javax.swing.JComboBox.fireActionEvent(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedItem(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedIndex(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.clearGui(BackendListenerGui.java:281) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:348) ~[ApacheJMeter_core.jar:3.2 r1790748]
... 17 more