I download JMeter 3.3 and opened the example CSVSample.jmx in examples folder and executed, I get the below Stackoverflow exception
Test Plan:
017-09-24 16:38:09,452 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.StackOverflowError: null
at jdk.internal.dynalink.support.AbstractCallSiteDescriptor.hashCode(AbstractCallSiteDescriptor.java:142) ~[nashorn.jar:?]
at java.util.concurrent.ConcurrentHashMap.putVal(Unknown Source) ~[?:1.8.0_144]
at java.util.concurrent.ConcurrentHashMap.putIfAbsent(Unknown Source) ~[?:1.8.0_144]
at jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor.get(NashornCallSiteDescriptor.java:167) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor.get(NashornCallSiteDescriptor.java:158) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.LinkerCallSite.newLinkerCallSite(LinkerCallSite.java:114) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.Bootstrap.bootstrap(Bootstrap.java:208) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.Bootstrap.createDynamicInvoker(Bootstrap.java:371) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.Bootstrap.createDynamicInvoker(Bootstrap.java:345) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.InvokeByName.<init>(InvokeByName.java:86) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.InvokeByName.<init>(InvokeByName.java:73) ~[nashorn.jar:?]
at jdk.nashorn.internal.objects.Global.<init>(Global.java:96) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.Context.newGlobal(Context.java:1111) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine$2.run(NashornScriptEngine.java:350) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine$2.run(NashornScriptEngine.java:346) ~[nashorn.jar:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at jdk.nashorn.api.scripting.NashornScriptEngine.createNashornGlobal(NashornScriptEngine.java:346) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine.createGlobalMirror(NashornScriptEngine.java:340) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine.createBindings(NashornScriptEngine.java:170) ~[nashorn.jar:?]
at org.apache.jmeter.control.IfController$NashornJsEngine.evaluate(IfController.java:123) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:185) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.IfController.next(IfController.java:239) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:219) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.GenericController.next(GenericController.java:173) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.WhileController.next(WhileController.java:106) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.WhileController.nextIsNull(WhileController.java:82) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.GenericController.next(GenericController.java:168) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.WhileController.next(WhileController.java:106) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:222) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.GenericController.next(GenericController.java:173) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.WhileController.next(WhileController.java:106) ~[ApacheJMeter_core.jar:3.3 r1808647]
at
This is because While Controller condition uses a function __jexl that has been removed:
${__jexl("${ACTION}" != "")}
Should be:
${__jexl3("${ACTION}" != "")}
Fixed today in jmeter code:
http://svn.apache.org/viewvc?view=revision&revision=1809530
Related
I'm testing http://lifecharger.org/make-the-rest-of-your-life-the-best-of-your-life/ through Jmeter and I'm getting below error.
my JMeter version is 5.1.1
2019-07-08 11:47:04,668 ERROR o.a.j.g.a.ActionRouter: Error processing org.apache.jmeter.gui.action.Start#12ab28e
java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.jmeter.gui.action.Start.startEngine(Start.java:188) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.Start.doAction(Start.java:114) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_211]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_211]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_211]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_211]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_211]
at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_211]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_211]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_211]
How to fix this issue?
I'm using jmeter automation testing resource to learn JMeter
Your Test Plan is disabled (gray) and that's causing the exception
You can enable it using Ctrl + T or Right Click on it and Enable
java.rmi.ConnectException: Connection refused to host: localhost;
nested exception is: java.net.ConnectException: Connection refused:
connect at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown
Source) ~[?:1.8.0_111] at
sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
~[?:1.8.0_111] at
sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
~[?:1.8.0_111] at sun.rmi.server.UnicastRef.newCall(Unknown Source)
~[?:1.8.0_111] at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown
Source) ~[?:1.8.0_111] at java.rmi.Naming.lookup(Unknown Source)
~[?:1.8.0_111] at
org.apache.jmeter.engine.ClientJMeterEngine.getEngine(ClientJMeterEngine.java:54)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.engine.ClientJMeterEngine.(ClientJMeterEngine.java:67)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.engine.DistributedRunner.createEngine(DistributedRunner.java:237)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.engine.DistributedRunner.getClientEngine(DistributedRunner.java:213)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.engine.DistributedRunner.init(DistributedRunner.java:93)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:86)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:65)
~[ApacheJMeter_core.jar:3.3 r1808647] at
java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_111]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
[?:1.8.0_111] at java.awt.EventQueue.access$500(Unknown Source)
[?:1.8.0_111] at java.awt.EventQueue$3.run(Unknown Source)
[?:1.8.0_111] at java.awt.EventQueue$3.run(Unknown Source)
[?:1.8.0_111] at java.security.AccessController.doPrivileged(Native
Method) ~[?:1.8.0_111] at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source) [?:1.8.0_111] at java.awt.EventQueue.dispatchEvent(Unknown
Source) [?:1.8.0_111] at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[?:1.8.0_111] at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[?:1.8.0_111] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[?:1.8.0_111] at java.awt.EventDispatchThread.pumpEvents(Unknown
Source) [?:1.8.0_111] at
java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_111]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_111]
Caused by: java.net.ConnectException: Connection refused: connect at
java.net.DualStackPlainSocketImpl.connect0(Native Method)
~[?:1.8.0_111] at
java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
~[?:1.8.0_111] at java.net.AbstractPlainSocketImpl.doConnect(Unknown
Source) ~[?:1.8.0_111] at
java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
~[?:1.8.0_111] at java.net.AbstractPlainSocketImpl.connect(Unknown
Source) ~[?:1.8.0_111] at java.net.PlainSocketImpl.connect(Unknown
Source) ~[?:1.8.0_111] at java.net.SocksSocketImpl.connect(Unknown
Source) ~[?:1.8.0_111] at java.net.Socket.connect(Unknown Source)
~[?:1.8.0_111] at java.net.Socket.connect(Unknown Source)
~[?:1.8.0_111] at java.net.Socket.(Unknown Source)
~[?:1.8.0_111] at java.net.Socket.(Unknown Source)
~[?:1.8.0_111] at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown
Source) ~[?:1.8.0_111] at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown
Source) ~[?:1.8.0_111] ... 28 more 2017-11-28 20:12:51,444 INFO
o.a.j.e.DistributedRunner: Failed to configure localhost 2017-11-28
20:12:51,444 INFO o.a.j.e.DistributedRunner: Configuring remote
engine: 192.168.20.16 2017-11-28 20:12:51,528 INFO
o.a.j.e.DistributedRunner: Configuring remote engine: 192.168.20.142
2017-11-28 20:12:54,604 INFO o.a.j.e.DistributedRunner: Configuring
remote engine: 192.168.20.57 2017-11-28 20:12:54,711 INFO
o.a.j.e.DistributedRunner: Stopping remote engines 2017-11-28
20:12:54,711 INFO o.a.j.e.ClientJMeterEngine: about to stop remote
test on 192.168.20.57 2017-11-28 20:12:54,745 ERROR
o.a.j.e.ClientJMeterEngine: java.lang.NullPointerException: null at
org.apache.jmeter.engine.RemoteJMeterEngineImpl.rstopTest(RemoteJMeterEngineImpl.java:198)
~[ApacheJMeter_core.jar:3.3 r1808647] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source) ~[?:1.8.0_111] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Unknown Source)
~[?:1.8.0_111] at sun.rmi.server.UnicastServerRef.dispatch(Unknown
Source) ~[?:1.8.0_111] at sun.rmi.transport.Transport$1.run(Unknown
Source) ~[?:1.8.0_111] at sun.rmi.transport.Transport$1.run(Unknown
Source) ~[?:1.8.0_111] at
java.security.AccessController.doPrivileged(Native Method)
~[?:1.8.0_111] at sun.rmi.transport.Transport.serviceCall(Unknown
Source) ~[?:1.8.0_111] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
~[?:1.8.0_111] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown
Source) ~[?:1.8.0_111] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(Unknown
Source) ~[?:1.8.0_111] at
java.security.AccessController.doPrivileged(Native Method)
~[?:1.8.0_111] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source) ~[?:1.8.0_111] at
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
~[?:1.8.0_111] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
~[?:1.8.0_111] at java.lang.Thread.run(Unknown Source) ~[?:1.8.0_111]
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
Source) ~[?:1.8.0_111] at
sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
~[?:1.8.0_111] at sun.rmi.server.UnicastRef.invoke(Unknown Source)
~[?:1.8.0_111] at
java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown
Source) ~[?:1.8.0_111] at
java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
~[?:1.8.0_111] at com.sun.proxy.$Proxy21.rstopTest(Unknown Source)
~[?:?] at
org.apache.jmeter.engine.ClientJMeterEngine.stopTest(ClientJMeterEngine.java:84)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.engine.DistributedRunner.stop(DistributedRunner.java:157)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.engine.DistributedRunner.stop(DistributedRunner.java:174)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.engine.DistributedRunner.init(DistributedRunner.java:111)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:86)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
~[ApacheJMeter_core.jar:3.3 r1808647] at
org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:65)
~[ApacheJMeter_core.jar:3.3 r1808647] at
java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_111]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
[?:1.8.0_111] at java.awt.EventQueue.access$500(Unknown Source)
[?:1.8.0_111] at java.awt.EventQueue$3.run(Unknown Source)
[?:1.8.0_111] at java.awt.EventQueue$3.run(Unknown Source)
[?:1.8.0_111] at java.security.AccessController.doPrivileged(Native
Method) ~[?:1.8.0_111] at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source) [?:1.8.0_111] at java.awt.EventQueue.dispatchEvent(Unknown
Source) [?:1.8.0_111] at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[?:1.8.0_111] at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[?:1.8.0_111] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[?:1.8.0_111] at java.awt.EventDispatchThread.pumpEvents(Unknown
Source) [?:1.8.0_111] at
java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_111]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_111]
2017-11-28 20:12:54,745 INFO o.a.j.e.ClientJMeterEngine: about to stop
remote test on 192.168.20.142
Make sure you define java.rmi.server.hostname and server_port system properties either via -D command-line argument or by putting the appropriate values into system.properties file.
Make sure that port 1099 is open and you can reach JMeter server from the slaves and vice versa using telnet or equivalent
Enable logging on JMeter slaves by passing the desired log file name and path via -j command-line argument
If nothing help - update your question including all the defined properties, command lines to start server and slaves and log files.
References:
java.rmi Properties
JMeter Distributed Testing Step-by-step
How to Perform Distributed Testing in JMeter
I am trying to connect Jmeter to Kibana using this manual:
https://blogs.sap.com/2016/04/06/load-testing-with-jmeter-test-results-visualization-using-kibana-dashboards/comment-page-1/#comment-398399
I am using JMeter 3.2, and downloaded elasticsearch-5.6.4.zip.
I extract the zip and put the folder elasticsearch-5.6.4 in C:\Jmeter\apache-jmeter-3.2\lib
I downloaded the jar JMeter_ElasticsearchListener.jar and put it in C:\Jmeter\apache-jmeter-3.2\lib\ext
I restart JMeter and pressed add -> listener -> backend listener and get these errors:
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
You are missing a jar, which is the REST client jar, just add the following jar to your lib folder (C:\Jmeter\apache-jmeter-3.2\lib)
elasticsearch-rest-client-5.6.4.jar
I don't think JMeter recursively searches any folders in its "lib" folder looking for any .jars it can add to its classpath, so I would recommend either moving all .jars from the elasticsearch-5.6.4 folder to JMeter's "lib" folder.
Alternatively you can add the next line to user.properties file (lives under "bin" folder of your JMeter installation)
user.classpath=C:\Jmeter\apache-jmeter-3.2\lib\elasticsearch-5.6.4`
In both cases JMeter restart will be required to pick the libraries up.
More information:
JMeter Classpath
Apache JMeter Properties Customization Guide
I use JMeter 3.3, I opened the Function Helper and tried the new function __RandomDate, Click Generate and got an error (other functions are working)
When calling in Test Plan ${__RandomDate(,2017-01-01,2018-01-01,,)} it works, but in Function Helper when you click Generate it ignores the input field and use the function without any values
2017-09-25 08:44:30,112 ERROR o.a.j.f.RandomDate: Failed to parse the date '' to shift with formatter 'Value(YearOfEra,4,19,EXCEEDS_PAD)'-'Value(MonthOfYear,2)'-'Value(DayOfMonth,2)java.time.format.DateTimeFormatterBuilder$DefaultValueParser#6426866cjava.time.format.DateTimeFormatterBuilder$DefaultValueParser#4b46653bjava.time.format.DateTimeFormatterBuilder$DefaultValueParser#108462fd'
java.time.format.DateTimeParseException: Text '' could not be parsed at index 0
at java.time.format.DateTimeFormatter.parseResolved0(Unknown Source) ~[?:1.8.0_144]
at java.time.format.DateTimeFormatter.parse(Unknown Source) ~[?:1.8.0_144]
at java.time.LocalDate.parse(Unknown Source) ~[?:1.8.0_144]
at org.apache.jmeter.functions.RandomDate.execute(RandomDate.java:189) [ApacheJMeter_functions.jar:3.3 r1808647]
at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:137) [ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:112) [ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.functions.gui.FunctionHelper.actionPerformed(FunctionHelper.java:181) [ApacheJMeter_core.jar:3.3 r1808647]
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) [?:1.8.0_144]
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) [?:1.8.0_144]
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) [?:1.8.0_144]
at javax.swing.DefaultButtonModel.setPressed(Unknown Source) [?:1.8.0_144]
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) [?:1.8.0_144]
at java.awt.Component.processMouseEvent(Unknown Source) [?:1.8.0_144]
at javax.swing.JComponent.processMouseEvent(Unknown Source) [?:1.8.0_144]
at java.awt.Component.processEvent(Unknown Source) [?:1.8.0_144]
at java.awt.Container.processEvent(Unknown Source) [?:1.8.0_144]
at java.awt.Component.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
at java.awt.Container.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
at java.awt.Component.dispatchEvent(Unknown Source) [?:1.8.0_144]
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) [?:1.8.0_144]
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) [?:1.8.0_144]
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) [?:1.8.0_144]
at java.awt.Container.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
at java.awt.Window.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
at java.awt.Component.dispatchEvent(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_144]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue$4.run(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue$4.run(Unknown Source) [?:1.8.0_144]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_144]
2017-09-25 08:44:30,113 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.IllegalArgumentException: bound must be greater than origin
at java.util.concurrent.ThreadLocalRandom.nextLong(Unknown Source) ~[?:1.8.0_144]
at org.apache.jmeter.functions.RandomDate.execute(RandomDate.java:196) ~[ApacheJMeter_functions.jar:3.3 r1808647]
at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:137) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:112) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.functions.gui.FunctionHelper.actionPerformed(FunctionHelper.java:181) ~[ApacheJMeter_core.jar:3.3 r1808647]
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) ~[?:1.8.0_144]
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) ~[?:1.8.0_144]
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) ~[?:1.8.0_144]
at javax.swing.DefaultButtonModel.setPressed(Unknown Source) ~[?:1.8.0_144]
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) ~[?:1.8.0_144]
at java.awt.Component.processMouseEvent(Unknown Source) ~[?:1.8.0_144]
at javax.swing.JComponent.processMouseEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.Component.processEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.Container.processEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.Component.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
at java.awt.Window.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_144]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_144]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_144]
EDIT
Opened a bug.
You're getting an error because "End date" is mandatory.
Since 3.3, Generate does an additional thing which is to show the result of function call.
But as you're not filling end date it fails with the error message you mention.
Fill in the required parameters and it works as documented:
http://jmeter.apache.org/usermanual/functions.html#__RandomDate
As you can see End date is required
We are in the process of switching from Java 7 to Java 8 ( about time I think :-)) and we are getting issues where we used HibernateValidator's ScriptAssert. Looks like Nashorn Javascript engine is not initialized properly
The ScriptAssert is used as follows
#ScriptAssert(
lang = "javascript",
script = "_this.owner != null && _this.owner.id != null"
+ " && _this.owner.id.matches('^[0-9A-F]{8}-[0-9A-F]{4}-[1-5][0-9A-
F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$')"
)
What we are getting is an exception like below, This happens on JDK1.8.0_131 on Linux.
Any help would be appreciated. Following is the stack trace.
java.lang.NoSuchMethodError:
java.lang.invoke.MethodHandle.invokeExact(Ljava/lang/Object;Ljava/lang/Object;)V
at jdk.nashorn.internal.runtime.AccessorProperty.invokeSetter(AccessorProperty.java:462)
~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.AccessorProperty.setValue(AccessorProperty.java:485)
~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.ScriptObject.erasePropertyValue(ScriptObject.java:916)
~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.ScriptObject.deleteOwnProperty(ScriptObject.java:928)
~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.ScriptFunction.createBuiltin(ScriptFunction.java:324)
~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.ScriptFunction.createBuiltin(ScriptFunction.java:339)
~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.ScriptFunction.createBuiltin(ScriptFunction.java:350)
~[nashorn.jar:?]
at jdk.nashorn.internal.objects.NativeFunction$Prototype.(Unknown
Source) ~[nashorn.jar:?]
at jdk.nashorn.internal.objects.NativeFunction$Constructor.(Unknown
Source) ~[nashorn.jar:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
~[?:1.8.0_131]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
~[?:1.8.0_131]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
~[?:1.8.0_131]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
~[?:1.8.0_131]
at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_131]
at jdk.nashorn.internal.objects.Global.initConstructor(Global.java:2549)
~[nashorn.jar:?]
at jdk.nashorn.internal.objects.Global.initFunctionAndObject(Global.java:2618)
~[nashorn.jar:?]
at jdk.nashorn.internal.objects.Global.init(Global.java:2257) ~[nashorn.jar:?]
at jdk.nashorn.internal.objects.Global.initBuiltinObjects(Global.java:1094)
~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.Context.initGlobal(Context.java:1150)
~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine.createNashornGlobal(NashornScriptEngine.java:360)
~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine.(NashornScriptEngine.java:143)
~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngineFactory.getScriptEngine(NashornScriptEngineFactory.java:148)
~[nashorn.jar:?]
at javax.script.ScriptEngineManager.getEngineByName(ScriptEngineManager.java:238)
~[?:1.8.0_131]
at org.hibernate.validator.internal.util.scriptengine.ScriptEvaluatorFactory.createNewScriptEvaluator(ScriptEvaluatorFactory.java:87)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.util.scriptengine.ScriptEvaluatorFactory.getScriptEvaluatorByLanguageName(ScriptEvaluatorFactory.java:70)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.constraintvalidators.hv.ScriptAssertContext.getScriptEvaluator(ScriptAssertContext.java:60)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.constraintvalidators.hv.ScriptAssertContext.(ScriptAssertContext.java:34)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.constraintvalidators.hv.ScriptAssertValidator.initialize(ScriptAssertValidator.java:43)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.constraintvalidators.hv.ScriptAssertValidator.initialize(ScriptAssertValidator.java:28)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintValidatorManager.initializeValidator(ConstraintValidatorManager.java:225)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintValidatorManager.createAndInitializeValidator(ConstraintValidatorManager.java:151)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintValidatorManager.getInitializedValidator(ConstraintValidatorManager.java:109)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.getConstraintValidatorNoUnwrapping(ConstraintTree.java:301)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.getConstraintValidatorInstanceForAutomaticUnwrapping(ConstraintTree.java:242)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.getInitializedConstraintValidator(ConstraintTree.java:163)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:116)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:87)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.metadata.core.MetaConstraint.validateConstraint(MetaConstraint.java:73)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.ValidatorImpl.validateMetaConstraint(ValidatorImpl.java:616)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:581)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForNonDefaultGroup(ValidatorImpl.java:543)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:457)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:410)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.hibernate.validator.internal.engine.ValidatorImpl.validate(ValidatorImpl.java:207)
~[hibernate-validator-5.4.1.Final.jar:5.4.1.Final]
at org.springframework.validation.beanvalidation.SpringValidatorAdapter.validate(SpringValidatorAdapter.java:108)
~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.validation.DataBinder.validate(DataBinder.java:781)
~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]