Jmeter - getting Exception - while running my suite in a new machine - jmeter

I copied my complete Jmeter folder from one machine to other and tried to run. Stuck with the error - ArrayIndexOutOfBoundsException: 0. Please help
INFO - jmeter.gui.util.MenuFactory: Skipping
org.apache.jmeter.assertions.BSFAssertion
INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.extractor.BSFPostProcessor
INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.modifiers.BSFPreProcessor
INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is
org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
INFO - jorphan.exec.KeyToolUtils: keytool found at 'keytool'
INFO - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd
party resources in file
G:\official\JMeter\apache-jmeter-3.1\bin\proxyserver.jks
INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.java.sampler.BSFSampler
INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.config.MongoSourceElement
INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.sampler.MongoScriptSampler
INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.timers.BSFTimer
INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.BSFListener
INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.MonitorHealthVisualizer
INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times
INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true
INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000
INFO - jmeter.services.FileServer: Default base='G:\official\JMeter\apache-jmeter-3.1\bin'
INFO - jmeter.gui.action.Load: Loading file: G:\official\JMeter\apache-jmeter-3.1\bin\Cafyne_3.0.jmx
INFO - jmeter.services.FileServer: Set new base='G:\official\JMeter\apache-jmeter-3.1\bin'
INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8
INFO - jmeter.save.SaveService: Using SaveService properties version 3.1
INFO - jmeter.save.SaveService: All converter versions present and correct
INFO - jmeter.save.SaveService: Loading file: G:\official\JMeter\apache-jmeter-3.1\bin\Cafyne_3.0.jmx
INFO - jmeter.protocol.http.control.CookieManager: Settings: Delete null: true Check: true Allow variable: true Save: false Prefix:
COOKIE_
INFO - jmeter.services.FileServer: Set new base='G:\official\JMeter\apache-jmeter-3.1\bin'
ERROR - jmeter.gui.action.ActionRouter: Error processing org.apache.jmeter.gui.action.Start#71687585
java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.jmeter.gui.action.Start.startEngine(Start.java:193) at org.apache.jmeter.gui.action.Start.startEngine(Start.java:174) at
org.apache.jmeter.gui.action.Start.startEngine(Start.java:164) at
org.apache.jmeter.gui.action.Start.doAction(Start.java:108) at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
at
org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at
org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62)
at java.awt.event.InvocationEvent.dispatch(Unknown Source) at
java.awt.EventQueue.dispatchEventImpl(Unknown Source) at
java.awt.EventQueue.access$500(Unknown Source) at
java.awt.EventQueue$3.run(Unknown Source) at
java.awt.EventQueue$3.run(Unknown Source) at
java.security.AccessController.doPrivileged(Native Method) at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at
java.awt.EventDispatchThread.run(Unknown Source)

I know the question is old but I went through the same problem and found no solutions. Then I analyzed the source code of JMeter and I leave here the solution for other people who go through it.
In my case when I created a test plan, by default it was disabled.
After I enabled the test plan (right click -> enable) it started working!

Code is: (failed in testTree.getArray()[0])
HashTree testTree = gui.getTreeModel().getTestPlan();
JMeter.convertSubTree(testTree);
if(threadGroupsToRun != null && threadGroupsToRun.length>0) {
removeThreadGroupsFromHashTree(testTree, threadGroupsToRun);
}
testTree.add(testTree.getArray()[0], gui.getMainFrame());
It seems that test plan is empty.
can you check G:\official\JMeter\apache-jmeter-3.1\bin\Cafyne_3.0.jmx
maybe file wasn't copied ok

Thanks to the two solutions/hints above, the reason is that the first item in the list (as you see below), which is the Test Plan itself, was disabled and gray (and usually is not noticed at the first glance).
Just enable it and run your test.

Related

JMeter 3.3 keeps stating class not found

I have seen multiple questions asking something similar to what I'm asking but for some reason, it's not working for me. I'm using the Jmeter 3.3 app (the latest at this point in time) so maybe the advice doesn't work on the newest version of JMeter.
I'm trying to create a test plan with JMeter to test hitting my DB.
Database URL: jdbc:impala://server.domain.com:21050/default;auth=noSasl
JDBC Driver class: com.cloudera.impala.core.ImpalaJDBCDriver
One answer/advice said to copy the jar (in my case ImpalaJDBC4.jar) to the lib dir, then restart JMeter, which I did. I also put it in the lib/ext dir too. However, it still doesn't work for me. I keep getting the same error in jmeter.log:
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class com.cloudera.impala.core.ImpalaJDBCDriver. See log file for details.
Not sure if path matters but I run jmeter from:
$ ~/tmp/apache-jmeter-3.3> bin/jmeter
and from
$ ~/tmp/apache-jmeter-3.3/bin> jmeter
Is there something I'm missing here? Am I putting it in the wrong place in JMeter? I know the driver class is there because I checked the contents of the jar file:
jar tvf ImpalaJDBC4.jar | less
2680 Thu Jan 04 08:11:12 PST 2018 com/cloudera/impala/core/ImpalaJDBCDriver.class
Thanks in advance for your help. I'm tired of banging my head against the wall.
Here are the logs. I tried to sanitize it so please ignore anything that might not be correct to do my sanitization.
2018-02-05 17:14:05,321 INFO o.a.j.u.JMeterUtils: Setting Locale to
en_US 2018-02-05 17:14:05,331 INFO o.a.j.JMeter: Loading user
properties from:
/Users/first.last/tmp/apache-jmeter-3.3/bin/user.properties 2018-02-05
17:14:05,332 INFO o.a.j.JMeter: Loading system properties from:
/Users/first.last/tmp/apache-jmeter-3.3/bin/system.properties
2018-02-05 17:14:05,336 INFO o.a.j.JMeter: Copyright (c) 1998-2017 The
Apache Software Foundation 2018-02-05 17:14:05,336 INFO o.a.j.JMeter:
Version 3.3 r1808647 2018-02-05 17:14:05,336 INFO o.a.j.JMeter:
java.version=1.8.0_162 2018-02-05 17:14:05,336 INFO o.a.j.JMeter:
java.vm.name=Java HotSpot(TM) 64-Bit Server VM 2018-02-05 17:14:05,336
INFO o.a.j.JMeter: os.name=Mac OS X 2018-02-05 17:14:05,336 INFO
o.a.j.JMeter: os.arch=x86_64 2018-02-05 17:14:05,337 INFO
o.a.j.JMeter: os.version=10.12.6 2018-02-05 17:14:05,337 INFO
o.a.j.JMeter: file.encoding=UTF-8 2018-02-05 17:14:05,337 INFO
o.a.j.JMeter: Max memory =536870912 2018-02-05 17:14:05,337 INFO
o.a.j.JMeter: Available Processors =8 2018-02-05 17:14:05,340 INFO
o.a.j.JMeter: Default Locale=English (United States) 2018-02-05
17:14:05,340 INFO o.a.j.JMeter: JMeter Locale=English (United States)
2018-02-05 17:14:05,340 INFO o.a.j.JMeter:
JMeterHome=/Users/first.last/tmp/apache-jmeter-3.3 2018-02-05
17:14:05,340 INFO o.a.j.JMeter: user.dir
=/Users/first.last/tmp/apache-jmeter-3.3 2018-02-05 17:14:05,341 INFO o.a.j.JMeter: PWD =/Users/first.last/tmp/apache-jmeter-3.3
2018-02-05 17:14:05,342 INFO o.a.j.JMeter: IP: 127.0.0.1 Name:
MSJCIT1050435 FullName: localhost 2018-02-05 17:14:06,930 INFO
o.a.j.g.a.LookAndFeelCommand: Using look and feel:
com.apple.laf.AquaLookAndFeel [Mac OS X, System] 2018-02-05
17:14:06,935 INFO o.a.j.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties 2018-02-05 17:14:07,722 INFO
o.a.j.e.u.CompoundVariable: Note: Function class names must contain
the string: '.functions.' 2018-02-05 17:14:07,722 INFO
o.a.j.e.u.CompoundVariable: Note: Function class names must not
contain the string: '.gui.' 2018-02-05 17:14:08,320 WARN
o.j.r.PluginManager: Found JAR conflict:
/Users/first.last/tmp/apache-jmeter-3.3/lib/ext/ImpalaJDBC4.jar and
/Users/first.last/tmp/apache-jmeter-3.3/lib/ImpalaJDBC4.jar 2018-02-05
17:14:09,830 INFO o.j.r.PluginManager: Plugins Status:
[jpgc-graphs-basic=2.0, jpgc-functions=2.0, jpgc-casutg=2.5,
jpgc-dummy=0.2, jpgc-ffw=2.0, jpgc-fifo=0.2, jpgc-perfmon=2.1,
jpgc-plugins-manager=0.19, jpgc-webdriver=2.3, jpgc-tst=2.1, webs
ocket-sampler=1.0.2-SNAPSHOT, websocket-samplers=1.1, jmeter-core=3.3,
jmeter-ftp=3.3, jmeter-http=3.3, jmeter-jdbc=3.3, jmeter-jms=3.3,
jmeter-junit=3.3, jmeter-java=3.3, jmeter-ldap=3.3, jmeter-mail=3.3,
jmeter-mongodb=3.3, jmeter-native=3.3, jmeter-tcp
=3.3, jmeter-components=3.3, jpgc-standard=2.0] 2018-02-05 17:14:09,863 INFO o.a.j.g.u.MenuFactory: Skipping
org.apache.jmeter.assertions.BSFAssertion 2018-02-05 17:14:09,964 INFO
o.a.j.g.u.MenuFactory: Skipping
org.apache.jmeter.extractor.BSFPostProcessor 2018-02-05 17:14:09,987
INFO o.a.j.g.u.MenuFactory: Skipping
org.apache.jmeter.modifiers.BSFPreProcessor 2018-02-05 17:14:10,013
INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-02-05 17:14:10,013 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for
application/xhtml+xml is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-02-05 17:14:10,013 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for
application/xml is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-02-05 17:14:10,013 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for
text/xml is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-02-05 17:14:10,013 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for
text/vnd.wap.wml is
org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2018-02-05
17:14:10,013 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is
org.apache.jmeter.protocol.http.parser.CssParser 2018-02-05
17:14:10,434 INFO o.a.j.e.KeyToolUtils: keytool found at 'keytool'
2018-02-05 17:14:10,435 INFO o.a.j.p.h.p.ProxyControl: HTTP(S) Test
Script Recorder SSL Proxy will use keys that support embedded 3rd
party resources in file
/Users/first.last/tmp/apache-jmeter-3.3/bin/proxyserver.jks 2018-02-05
17:14:10,557 INFO o.a.j.g.u.MenuFactory: Skipping
org.apache.jmeter.protocol.java.sampler.BSFSampler 2018-02-05
17:14:10,586 INFO o.a.j.s.FileServer: Default
base='/Users/first.last/tmp/apache-jmeter-3.3' 2018-02-05 17:14:10,639
INFO o.a.j.g.u.MenuFactory: Skipping
org.apache.jmeter.protocol.mongodb.config.MongoSourceElement
2018-02-05 17:14:10,639 INFO o.a.j.g.u.MenuFactory: Skipping
org.apache.jmeter.protocol.mongodb.sampler.MongoScriptSampler
2018-02-05 17:14:10,727 INFO o.a.j.g.u.MenuFactory: Skipping
org.apache.jmeter.timers.BSFTimer 2018-02-05 17:14:10,743 INFO
o.a.j.g.u.MenuFactory: Skipping
org.apache.jmeter.visualizers.BSFListener 2018-02-05 17:14:10,834 INFO
o.a.j.s.SampleResult: Note: Sample TimeStamps are START times
2018-02-05 17:14:10,835 INFO o.a.j.s.SampleResult:
sampleresult.default.encoding is set to ISO-8859-1 2018-02-05
17:14:10,835 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true
2018-02-05 17:14:10,835 INFO o.a.j.s.SampleResult:
sampleresult.nanoThreadSleep=5000 2018-02-05 17:14:40,008 INFO
o.a.j.g.a.Load: Loading file: /Users/first.last/tmp/impala.jmx
2018-02-05 17:14:40,009 INFO o.a.j.s.FileServer: Set new
base='/Users/first.last/tmp' 2018-02-05 17:14:40,125 INFO
o.a.j.s.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL)
version: 2.2 2018-02-05 17:14:40,129 INFO o.a.j.s.SaveService: Using
SaveService properties file encoding UTF-8 2018-02-05 17:14:40,130
INFO o.a.j.s.SaveService: Using SaveService properties version 3.2
2018-02-05 17:14:40,132 INFO o.a.j.s.SaveService: Loading file:
/Users/first.last/tmp/impala.jmx 2018-02-05 17:14:40,479 INFO
o.a.j.s.FileServer: Set new base='/Users/first.last/tmp' 2018-02-05
17:14:44,337 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2018-02-05 17:14:44,337 INFO o.a.j.s.SampleEvent: List of
sample_variables: [] 2018-02-05 17:14:44,337 INFO o.a.j.s.SampleEvent:
List of sample_variables: [] 2018-02-05 17:14:44,356 INFO
o.a.j.g.u.JMeterMenuBar: setRunning(true, local) 2018-02-05
17:14:44,516 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup:
1 : Thread Group 2018-02-05 17:14:44,517 INFO
o.a.j.e.StandardJMeterEngine: Starting 3 threads for group Thread
Group. 2018-02-05 17:14:44,517 INFO o.a.j.e.StandardJMeterEngine:
Thread will continue on error 2018-02-05 17:14:44,517 INFO
o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=3
ramp-up=1 perThread=333.33334 delayedStart=false 2018-02-05
17:14:44,521 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2018-02-05 17:14:44,522 INFO o.a.j.e.StandardJMeterEngine: All thread
groups have been started 2018-02-05 17:14:44,522 INFO
o.a.j.t.JMeterThread: Thread started: Thread Group 1-1 2018-02-05
17:14:44,525 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group
1-1 2018-02-05 17:14:44,526 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoClassDefFoundError: org/apache/thrift/protocol/TProtocol
at com.cloudera.impala.core.ImpalaJDBCDriver.(Unknown Source) ~[ImpalaJDBC4.jar:ImpalaJDBC_2.5.42.1062]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_162]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_162]
at org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2124)
~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2033)
~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.jmeter.protocol.jdbc.config.DataSourceElement$DataSourceComponentImpl.getConnection(DataSourceElement.java:326)
~[ApacheJMeter_jdbc.jar:3.3 r1808647]
at org.apache.jmeter.protocol.jdbc.config.DataSourceElement.getConnection(DataSourceElement.java:191)
~[ApacheJMeter_jdbc.jar:3.3 r1808647]
at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:79)
~[ApacheJMeter_jdbc.jar:3.3 r1808647]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:498)
~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:424)
~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
~[ApacheJMeter_core.jar:3.3 r1808647]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162] Caused by: java.lang.ClassNotFoundException:
org.apache.thrift.protocol.TProtocol
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_162]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_162]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_162]
... 13 more 2018-02-05 17:14:44,860 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-2 2018-02-05 17:14:44,862 INFO
o.a.j.t.JMeterThread: Thread finished: Thread Group 1-2 2018-02-05
17:14:44,862 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoClassDefFoundError: Could not initialize class
com.cloudera.impala.core.ImpalaJDBCDriver
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_162]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_162]
at org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2124)
~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2033)
~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.jmeter.protocol.jdbc.config.DataSourceElement$DataSourceComponentImpl.getConnection(DataSourceElement.java:326)
~[ApacheJMeter_jdbc.jar:3.3 r1808647]
at org.apache.jmeter.protocol.jdbc.config.DataSourceElement.getConnection(DataSourceElement.java:191)
~[ApacheJMeter_jdbc.jar:3.3 r1808647]
at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:79)
~[ApacheJMeter_jdbc.jar:3.3 r1808647]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:498)
~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:424)
~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
~[ApacheJMeter_core.jar:3.3 r1808647]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162] 2018-02-05 17:14:45,191 INFO o.a.j.t.JMeterThread: Thread started:
Thread Group 1-3 2018-02-05 17:14:45,192 INFO o.a.j.t.JMeterThread:
Thread finished: Thread Group 1-3 2018-02-05 17:14:45,192 ERROR
o.a.j.JMeter: Uncaught exception: java.lang.NoClassDefFoundError:
Could not initialize class com.cloudera.impala.core.ImpalaJDBCDriver
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_162]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_162]
at org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2124)
~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2033)
~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.jmeter.protocol.jdbc.config.DataSourceElement$DataSourceComponentImpl.getConnection(DataSourceElement.java:326)
~[ApacheJMeter_jdbc.jar:3.3 r1808647]
at org.apache.jmeter.protocol.jdbc.config.DataSourceElement.getConnection(DataSourceElement.java:191)
~[ApacheJMeter_jdbc.jar:3.3 r1808647]
at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:79)
~[ApacheJMeter_jdbc.jar:3.3 r1808647]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:498)
~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:424)
~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
~[ApacheJMeter_core.jar:3.3 r1808647]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162] 2018-02-05 17:14:45,193 INFO o.a.j.e.StandardJMeterEngine: Notifying
test listeners of end of test 2018-02-05 17:14:45,195 INFO
o.a.j.g.u.JMeterMenuBar: setRunning(false, local)
From the error you are missing class org/apache/thrift/protocol/TProtocol which is part of apache thrift jar - libthrift-X.X.X.jar. Impala driver have list of mandatory jars,
See Configure Impala JDBC:
download the JAR files to each client machine that will use JDBC with Impala:...
libthrift-X.X.X.jar
To enable JDBC support for Impala on the system where you run the JDBC application:
Download the JAR files listed above to each client machine.
Full list of dependencies:
commons-logging-X.X.X.jar
hadoop-common.jar
hive-common-X.XX.X-cdhX.X.X.jar
hive-jdbc-X.XX.X-cdhX.X.X.jar
hive-metastore-X.XX.X-cdhX.X.X.jar
hive-service-X.XX.X-cdhX.X.X.jar
httpclient-X.X.X.jar
httpcore-X.X.X.jar
libfb303-X.X.X.jar
libthrift-X.X.X.jar
log4j-X.X.XX.jar
slf4j-api-X.X.X.jar
slf4j-logXjXX-X.X.X.jar

jmeter remote testing - IP address

Is it possible to configure which IP address should jmeter-server use?
We have 1 Windows jMeter client server and 2 Linux jMeter server.
Windows:
User-IP 44.44.44.110
Backup-IP 180.110.110.10
Linux 1:
User-IP 44.44.44.111
Backup-IP 180.110.110.11
Linux 2:
User-IP 44.44.44.112
Backup-IP 180.110.110.12
I send execution of test to the slaves on IPs: 44.44.44.111 and 44.44.44.112, but slaves try to send me results back on IPs 180.110.110.11 and 180.110.110.12.
I get an Error:
2017/11/03 22:18:09 ERROR - jmeter.samplers.RemoteListenerWrapper: testStarted(host) java.rmi.ConnectIOException: Exception creating connection to: 180.110.110.10; nested exception is:
java.net.NoRouteToHostException: No route to host
Backup-IP communication is forbidden, so I have to use only User-IP. How to hande this?
still the same problem.
root#slave02jm:/usr/jmeter/apache-jmeter-3.0/bin : ps -ef | grep jmeter
root 31350 30659 0 09:38 pts/0 00:00:00 /bin/sh ./jmeter-server
root 31352 31350 0 09:38 pts/0 00:00:00 /bin/sh ./jmeter -Djava.rmi.server.hostname=44.44.44.112 -Dserver_port=1099 -s -j jmeter-server.log
root 31381 31352 9 09:38 pts/0 00:00:00 java -server -XX:+HeapDumpOnOutOfMemoryError -Xms1024m -Xmx6144m -XX:MaxTenuringThreshold=2 -XX:+CMSClassUnloadingEnabled -jar ./ApacheJMeter.jar -Djava.rmi.server.hostname=44.44.44.112 -Dserver_port=1099 -s -j jmeter-server.log
log
2017/11/04 09:38:23 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US
2017/11/04 09:38:24 INFO - jmeter.JMeter: Loading user properties from: /usr/jmeter/apache-jmeter-3.0/bin/user.properties
2017/11/04 09:38:24 INFO - jmeter.JMeter: Loading system properties from: /usr/jmeter/apache-jmeter-3.0/bin/system.properties
2017/11/04 09:38:24 INFO - jmeter.JMeter: Setting System property: java.rmi.server.hostname=44.44.44.112
2017/11/04 09:38:24 INFO - jmeter.JMeter: Setting System property: server_port=1099
2017/11/04 09:38:24 INFO - jmeter.JMeter: Copyright (c) 1998-2016 The Apache Software Foundation
2017/11/04 09:38:24 INFO - jmeter.JMeter: Version 3.0 r1743807
2017/11/04 09:38:24 INFO - jmeter.JMeter: java.version=1.8.0_102
2017/11/04 09:38:24 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM
2017/11/04 09:38:24 INFO - jmeter.JMeter: os.name=Linux
2017/11/04 09:38:24 INFO - jmeter.JMeter: os.arch=amd64
2017/11/04 09:38:24 INFO - jmeter.JMeter: os.version=3.0.101-108.10-default
2017/11/04 09:38:24 INFO - jmeter.JMeter: file.encoding=ANSI_X3.4-1968
2017/11/04 09:38:24 INFO - jmeter.JMeter: Max memory =5726797824
2017/11/04 09:38:24 INFO - jmeter.JMeter: Available Processors =4
2017/11/04 09:38:24 INFO - jmeter.JMeter: Default Locale=English (United States)
2017/11/04 09:38:24 INFO - jmeter.JMeter: JMeter Locale=English (United States)
2017/11/04 09:38:24 INFO - jmeter.JMeter: JMeterHome=/usr/jmeter/apache-jmeter-3.0
2017/11/04 09:38:24 INFO - jmeter.JMeter: user.dir =/usr/jmeter/apache-jmeter-3.0/bin
2017/11/04 09:38:24 INFO - jmeter.JMeter: PWD =/usr/jmeter/apache-jmeter-3.0/bin
2017/11/04 09:38:24 INFO - jmeter.JMeter: IP: 44.44.44.112 Name: slave02 FullName: slave02
2017/11/04 09:38:24 INFO - jmeter.engine.RemoteJMeterEngineImpl: Starting backing engine on 1099
2017/11/04 09:38:24 INFO - jmeter.engine.RemoteJMeterEngineImpl: Resolving by name the value of System property 'java.rmi.server.hostname':44.44.44.112
2017/11/04 09:38:24 INFO - jmeter.engine.RemoteJMeterEngineImpl: Local IP address=44.44.44.112
2017/11/04 09:38:24 INFO - jmeter.engine.RemoteJMeterEngineImpl: Creating RMI registry (server.rmi.create=true)
2017/11/04 09:38:24 INFO - jmeter.engine.RemoteJMeterEngineImpl: Bound to registry on port 1099
2017/11/04 09:38:57 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2017/11/04 09:38:57 INFO - jmeter.protocol.http.control.CookieManager: Settings: Delete null: true Check: true Allow variable: true Save: false Prefix: COOKIE_
2017/11/04 09:38:57 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2017/11/04 09:38:57 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2017/11/04 09:38:57 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2017/11/04 09:38:57 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2017/11/04 09:38:57 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2017/11/04 09:38:57 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2017/11/04 09:38:57 INFO - jmeter.protocol.http.control.CacheManager: Will only cache the following methods: [GET]
2017/11/04 09:38:57 INFO - jmeter.samplers.BatchSampleSender: Using batching for this run. Thresholds: num=100, time=60000
2017/11/04 09:38:57 INFO - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run
2017/11/04 09:39:00 INFO - jmeter.engine.RemoteJMeterEngineImpl: Creating JMeter engine on host slave02 base '.'
2017/11/04 09:39:00 INFO - jmeter.engine.RemoteJMeterEngineImpl: Remote client host: 44.44.44.110
2017/11/04 09:39:00 INFO - jmeter.services.FileServer: Default base='/usr/jmeter/apache-jmeter-3.0/bin'
2017/11/04 09:39:00 INFO - jmeter.services.FileServer: Set new base='.'
2017/11/04 09:39:00 INFO - jmeter.engine.StandardJMeterEngine: Applying properties {}
2017/11/04 09:39:00 INFO - jmeter.engine.RemoteJMeterEngineImpl: Running test
2017/11/04 09:39:00 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2017/11/04 09:39:00 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2017/11/04 09:39:00 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2017/11/04 09:39:00 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2017/11/04 09:39:03 ERROR - jmeter.samplers.RemoteListenerWrapper: testStarted(host) java.rmi.ConnectIOException: Exception creating connection to: 180.110.110.10; nested exception is:
java.net.NoRouteToHostException: No route to host
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:631)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:130)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179)
at com.sun.proxy.$Proxy1.testStarted(Unknown Source)
at org.apache.jmeter.samplers.RemoteListenerWrapper.testStarted(RemoteListenerWrapper.java:85)
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:205)
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:324)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.NoRouteToHostException: No route to host
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:211)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:148)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 10 more
do you see any problem?
Thanks for your help.
s.
When starting the jmeter-server ensure you add
-Djava.rmi.server.hostname=Internal_IP
This will do what you want
configuration setting in system.properties (jmeter Windows client) do the trick java.rmi.server.hostname=44.44.44.110

VSTS Load Testing With JMeter plugin PathNotFoundException?

I have created a load test in JMeter to retrieve a valid access token, and then perform several requests to my webAPI to test querying, which works in JMeter.
My test plan uses the JSONPathExtractor plugin to extract the token from the JSON response, before storing that token as a property for use in proceeding Test Groups. I want to upload and run these JMeter test in Visual Studio Team Services, however I am given an "internal error occurred in the service when initializing the test run".
Here is the generated log file from VSTS:
2016/10/20 13:26:22 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US
2016/10/20 13:26:22 INFO - jmeter.JMeter: Loading user properties from: C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\1.8\Downloads\0\approot\JMeterLoadTest\clt_jmeterdrop\bin\user.properties
2016/10/20 13:26:22 INFO - jmeter.JMeter: Loading system properties from: C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\1.8\Downloads\0\approot\JMeterLoadTest\clt_jmeterdrop\bin\system.properties
2016/10/20 13:26:23 INFO - jmeter.JMeter: Copyright (c) 1998-2015 The Apache Software Foundation
2016/10/20 13:26:23 INFO - jmeter.JMeter: Version 2.13 r1665067
2016/10/20 13:26:23 INFO - jmeter.JMeter: java.version=1.8.0_60
2016/10/20 13:26:23 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM
2016/10/20 13:26:23 INFO - jmeter.JMeter: os.name=Windows Server 2012 R2
2016/10/20 13:26:23 INFO - jmeter.JMeter: os.arch=amd64
2016/10/20 13:26:23 INFO - jmeter.JMeter: os.version=6.3
2016/10/20 13:26:23 INFO - jmeter.JMeter: file.encoding=Cp1252
2016/10/20 13:26:23 INFO - jmeter.JMeter: Default Locale=English (United States)
2016/10/20 13:26:23 INFO - jmeter.JMeter: JMeter Locale=English (United States)
2016/10/20 13:26:23 INFO - jmeter.JMeter: JMeterHome=C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\1.8\Downloads\0\approot\JMeterLoadTest\clt_jmeterdrop
2016/10/20 13:26:23 INFO - jmeter.JMeter: user.dir =C:\Windows\system32
2016/10/20 13:26:23 INFO - jmeter.JMeter: PWD =C:\Windows\System32
2016/10/20 13:26:23 INFO - jmeter.JMeter: IP: 10.0.0.4 Name: vstsloadagent0 FullName: vstsloadagent0.oykuxugkk15uzmtpoj4pw2mxgh.fx.internal.cloudapp.net
2016/10/20 13:26:23 INFO - jmeter.services.FileServer: Default base='C:\Windows\system32'
2016/10/20 13:26:23 INFO - jmeter.services.FileServer: Set new base='d:\0\td\99ed1\TestRun\Out'
2016/10/20 13:26:23 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2016/10/20 13:26:23 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8
2016/10/20 13:26:23 INFO - jmeter.save.SaveService: Using SaveService properties file version 1656252
2016/10/20 13:26:23 INFO - jmeter.save.SaveService: Using SaveService properties version 2.8
2016/10/20 13:26:23 INFO - jmeter.save.SaveService: All converter versions present and correct
2016/10/20 13:26:23 INFO - jmeter.save.SaveService: Loading file: d:\0\td\99ed1\TestRun\Out\JMeter Tile Test (Complete).jmx
2016/10/20 13:26:23 INFO - jmeter.protocol.http.control.CookieManager: Settings: Delete null: true Check: true Allow variable: true Save: false Prefix: COOKIE_
2016/10/20 13:26:23 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default
2016/10/20 13:26:23 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is
2016/10/20 13:26:23 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is
2016/10/20 13:26:23 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is
2016/10/20 13:26:23 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is
2016/10/20 13:26:23 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2016/10/20 13:26:23 ERROR - jmeter.JMeter: Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'d:\0\td\99ed1\TestRun\Out\JMeter Tile Test (Complete).jmx', conversion error com.thoughtworks.xstream.converters.ConversionException: com/jayway/jsonpath/PathNotFoundException : com/jayway/jsonpath/PathNotFoundException
---- Debugging information ----
message : com/jayway/jsonpath/PathNotFoundException
cause-exception : java.lang.NoClassDefFoundError
cause-message : com/jayway/jsonpath/PathNotFoundException
first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:102)
class : org.apache.jmeter.save.ScriptWrapper
required-type : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[3]/hashTree/hashTree[3]/com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
line number : 118
version : 2.13 r1665067
-------------------------------
at org.apache.jmeter.save.SaveService.readTree(SaveService.java:586)
at org.apache.jmeter.save.SaveService.loadTree(SaveService.java:537)
at org.apache.jmeter.JMeter.runNonGui(JMeter.java:750)
at org.apache.jmeter.JMeter.startNonGui(JMeter.java:737)
at org.apache.jmeter.JMeter.start(JMeter.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.jmeter.NewDriver.main(NewDriver.java:264)
Caused by: com.thoughtworks.xstream.converters.ConversionException: com/jayway/jsonpath/PathNotFoundException : com/jayway/jsonpath/PathNotFoundException
---- Debugging information ----
message : com/jayway/jsonpath/PathNotFoundException
cause-exception : java.lang.NoClassDefFoundError
cause-message : com/jayway/jsonpath/PathNotFoundException
first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:102)
class : org.apache.jmeter.save.ScriptWrapper
required-type : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[3]/hashTree/hashTree[3]/com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
line number : 118
version : 2.13 r1665067
-------------------------------
at org.apache.jmeter.save.ScriptWrapperConverter.createConversionException(ScriptWrapperConverter.java:105)
at org.apache.jmeter.save.ScriptWrapperConverter.unmarshal(ScriptWrapperConverter.java:97)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1206)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1190)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1061)
at org.apache.jmeter.save.SaveService.readTree(SaveService.java:559)
... 9 more
Caused by: java.lang.NoClassDefFoundError: com/jayway/jsonpath/PathNotFoundException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:102)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
at org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
at org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
at org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
at org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
at org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at org.apache.jmeter.save.ScriptWrapperConverter.unmarshal(ScriptWrapperConverter.java:95)
... 19 more
Caused by: java.lang.ClassNotFoundException: com.jayway.jsonpath.PathNotFoundException
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 59 more
It appears that VSTS Load Testing can't find the JSONPathExtractor plugin. How can I include this in my .jmx file or supporting files upload? Many thanks!
This could be caused by the JMeter version since VSTS Load Testing is still using JMeter 2.13 version on the test agent, refer to this link for details: Apache JMeter tests:
Q: What is the supported JMeter version?
A: The load test agents run Apache JMeter version 2.13, the latest
version available currently.
There is already an user voice submitted for this, you can vote it here: Support jMeter 3.0.
Your issue is that your plan depends on 3rd party plugin JSON Path Extractor by JMeter-plugins project.
So you would need to add it as long as its dependencies.
But a better option is to use JMeter 3.0 and the native JSON Post Processor :
http://jmeter.apache.org/usermanual/component_reference.html#JSON_Path_PostProcessor
That's not an issue of JMeter or it's version, it's VSTS issue, visual studio doesn't recognize/support JSON Path Extractor used in JMeter script, better to use regular expressions.

Jmeter beanshell classnotfounderror

I am trying to use beanshell on jmeter (last version), but everytime I add a beanshell processor (pre, pro or whatever), I got this error
ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter
Ubuntu last stable versione, jmeter last stable version(2.13)
I don't understand what I need to do..
Any suggestions?
Thanks in advance!
EDIT: here full logs:
2016/03/02 14:44:05 INFO - jmeter.util.JMeterUtils: Setting Locale to en_IE 2016/03/02 14:44:05 INFO - jmeter.JMeter: Loading user properties from: /home/asada/Downloads/apache-jmeter-2.13/bin/user.properties 2016/03/02 14:44:05 INFO - jmeter.JMeter: Loading system properties from: /home/asada/Downloads/apache-jmeter-2.13/bin/system.properties 2016/03/02 14:44:05 INFO - jmeter.JMeter: Copyright (c) 1998-2012 The Apache Software Foundation 2016/03/02 14:44:05 INFO - jmeter.JMeter: Version 2.8.20130705 2016/03/02 14:44:05 INFO - jmeter.JMeter: java.version=1.8.0_72 2016/03/02 14:44:05 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 2016/03/02 14:44:05 INFO - jmeter.JMeter: os.name=Linux 2016/03/02 14:44:05 INFO - jmeter.JMeter: os.arch=amd64 2016/03/02 14:44:05 INFO - jmeter.JMeter: os.version=3.19.0-49-generic 2016/03/02 14:44:05 INFO
- jmeter.JMeter: file.encoding=UTF-8 2016/03/02 14:44:05 INFO - jmeter.JMeter: Default Locale=English (Ireland) 2016/03/02 14:44:05 INFO - jmeter.JMeter: JMeter Locale=English (Ireland) 2016/03/02 14:44:05 INFO - jmeter.JMeter: JMeterHome=/usr/share/jmeter 2016/03/02 14:44:05 INFO - jmeter.JMeter: user.dir
=/home/asada/Downloads/apache-jmeter-2.13/bin 2016/03/02 14:44:05 INFO - jmeter.JMeter: PWD
=/home/asada/Downloads/apache-jmeter-2.13/bin 2016/03/02 14:44:05 INFO - jmeter.JMeter: IP: 127.0.1.1 Name: asada-Precision-WorkStation-T5500 FullName: asada-Precision-WorkStation-T5500 2016/03/02 14:44:05 INFO - jmeter.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties 2016/03/02 14:44:06 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.' 2016/03/02 14:44:06 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 2016/03/02 14:44:07 INFO - jmeter.gui.action.LookAndFeelCommand: Using look and feel: javax.swing.plaf.metal.MetalLookAndFeel [Metal, CrossPlatform] 2016/03/02 14:44:08 INFO - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Reuse SSL session context on subsequent iterations: true 2016/03/02 14:44:08 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui 2016/03/02 14:44:08 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times 2016/03/02 14:44:08 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 2016/03/02 14:44:08 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true 2016/03/02 14:44:08 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000 2016/03/02 14:44:24 ERROR - jmeter.util.BeanShellInterpreter: Beanshell Interpreter not found 2016/03/02 14:44:24 ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter 2016/03/02 14:44:29 ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter 2016/03/02 14:44:29 ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter 2016/03/02 14:44:29 INFO - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version 2016/03/02 14:44:29 INFO - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false 2016/03/02 14:44:29 INFO - jmeter.engine.StandardJMeterEngine: Running the test! 2016/03/02 14:44:29 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,local) 2016/03/02 14:44:30 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 2016/03/02 14:44:30 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group. 2016/03/02 14:44:30 INFO
- jmeter.engine.StandardJMeterEngine: Thread will continue on error 2016/03/02 14:44:30 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false 2016/03/02 14:44:30 INFO - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties) 2016/03/02 14:44:30 INFO - jmeter.threads.JMeterThread: Running PostProcessors in forward order 2016/03/02 14:44:30 ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter 2016/03/02 14:44:30 ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter 2016/03/02 14:44:30 INFO - jmeter.threads.ThreadGroup: Started thread group number 1 2016/03/02 14:44:30 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started 2016/03/02 14:44:30 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1 2016/03/02 14:44:30 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1 2016/03/02 14:44:30 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2016/03/02 14:44:30 INFO - jmeter.services.FileServer: Default base='/home/asada/Downloads/apache-jmeter-2.13/bin' 2016/03/02 14:44:30 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,local)
Double check your JMeter installation, it should contain bsh-2.0b5.jar. If it doesn't - download it from i.e. http://repo1.maven.org/maven2/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar and drop to /lib folder of your JMeter installation. If you installed it from Ubuntu repositories it can be something like /usr/share/jmeter/lib/
Just in case take the following steps:
Create a new Ubuntu user and log into its account.
Download the latest version of Oracle Java Server JRE or JDK an unpack it somewhere
Set JAVA_HOME system variable pointing to Java installation folder and add $JAVA_HOME/bin to PATH variable like:
JAVA_HOME=/opt/java && export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH && export PATH
Download JMeter 2.13 (or newer) and unpack it somewhere
In the same terminal window you set JAVA_HOME and PATH navigate to /bin folder of your JMeter installation and type ./jmeter
If the problem still persists - post full jmeter.log file contents here.
If there will be nothing suspicious in the jmeter.log file - add
debug();
line at the beginning of your Beanshell script and inspect terminal output.
I have faced similar issue. It could be due to your JAVA_TOOLS_OPTIONS.
Remove that, Relaunch everything and Try again.
Close the terminal
ReLaunch the terminal
type jmeter (or ./jmeter)and hit enter
Now - What do you see in the Terminal once jmeter is launched?
Now It works.
With windows I never had a single problem.
BTW I did:
sudo apt-get remove jmeter
delete the folder where I had the second jmeter in my pc.
I update the java alternatives and I choose the
java 8 with both commands: sudo update-alternatives --config java
sudo update-alternatives --config javac
Restart the pc
Download again jmeter
this time I moved the dir on /opt/apache-jmeter-2.13.
I went in bin and I just ran ./jmeter.
This time without errors. I really don't know what was the problem.

jmeter thread group not running all users

I am running a recorded test plan. I have assigned 5 diferents users in the Thread Group, with a Ramp-up Period of 5 and Loop Count of 1.
This is what happens:
Start the test.
The test runs without errors and it seems that the 5 users are execute correctly when I check in the View Results Tree but when I check in the system only 2 or 3 users are registrated. I delete the registrated users and run the script again and again 2 or 3 users are registrated (some times are not the same) of the 5 users.
I don't understand what can possibly do that my test behave like that...
Why does my test plan not run for the 5 users?
I've checked the resources being utilized on my machine but they were fine, no problems with that.
The log of the Jmeter is the follow:
2015/01/23 12:54:11 INFO - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2015/01/23 12:54:12 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui
2015/01/23 12:54:12 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
2015/01/23 12:54:12 INFO - jorphan.exec.KeyToolUtils: keytool found at 'C:\Program Files (x86)\Java\jre1.8.0_25\bin\keytool'
2015/01/23 12:54:12 INFO - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file E:\Pruebas no Funcionales\JMeter\apache-jmeter-2.12\apache-jmeter-2.12\bin\proxyserver.jks
2015/01/23 12:54:12 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times
2015/01/23 12:54:12 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2015/01/23 12:54:12 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true
2015/01/23 12:54:12 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000
2015/01/23 12:54:54 INFO - jmeter.services.FileServer: Default base='E:\Pruebas no Funcionales\JMeter\apache-jmeter-2.12\apache-jmeter-2.12\bin'
2015/01/23 12:54:54 INFO - jmeter.gui.action.Load: Loading file: E:\Pruebas no Funcionales\JMeter\JMScripts\Solicitud_Credito.jmx
2015/01/23 12:54:54 INFO - jmeter.services.FileServer: Set new base='E:\Pruebas no Funcionales\JMeter\JMScripts'
2015/01/23 12:54:54 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2015/01/23 12:54:54 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8
2015/01/23 12:54:54 INFO - jmeter.save.SaveService: Using SaveService properties version 2.7
2015/01/23 12:54:54 INFO - jmeter.save.SaveService: Using SaveService properties file version 1618048
2015/01/23 12:54:54 INFO - jmeter.save.SaveService: All converter versions present and correct
2015/01/23 12:54:54 INFO - jmeter.protocol.http.control.CookieManager: Settings: Delete null: true Check: false Allow variable: true Save: true Prefix:
2015/01/23 12:54:55 INFO - jmeter.services.FileServer: Set new base='E:\Pruebas no Funcionales\JMeter\JMScripts'
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2015/01/23 12:55:06 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2015/01/23 12:55:06 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2015/01/23 12:55:06 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Carga_Usuarios
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Carga_Usuarios.
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2015/01/23 12:55:06 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=true
2015/01/23 12:55:06 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2015/01/23 12:55:06 INFO - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties)
2015/01/23 12:55:06 INFO - jmeter.threads.JMeterThread: Running PostProcessors in forward order
2015/01/23 12:55:06 INFO - jmeter.threads.JMeterThread: Thread started: Carga_Usuarios 1-1
2015/01/23 12:55:06 INFO - jmeter.services.FileServer: Stored: Filecnx.csv
2015/01/23 12:55:06 INFO - jmeter.protocol.http.sampler.HTTPHCAbstractImpl: Local host = CONSULT0002
2015/01/23 12:55:06 INFO - jmeter.protocol.http.sampler.HTTPHC4Impl: HTTP request retry count = 0
2015/01/23 12:55:06 INFO - jmeter.protocol.http.sampler.HTTPHC4Impl: Setting up HTTPS TrustAll scheme
2015/01/23 12:55:06 INFO - jmeter.util.JsseSSLManager: Using default SSL protocol: TLS
2015/01/23 12:55:06 INFO - jmeter.util.JsseSSLManager: SSL session context: per-thread
2015/01/23 12:55:56 INFO - jmeter.threads.JMeterThread: Thread is done: Carga_Usuarios 1-1
2015/01/23 12:55:56 INFO - jmeter.threads.JMeterThread: Thread finished: Carga_Usuarios 1-1
2015/01/23 12:55:56 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2015/01/23 12:55:56 INFO - jmeter.services.FileServer: Close: Filecnx.csv
2015/01/23 12:55:56 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
If you need any other information, please let me know...
thank you !
I already found the answer to this problem. It wasn't any problem with the script was a conflict between the data that was sending related to the city and the town. The script was sending a fix value of the city and the town belong of that city.
When the city was different it wasn't a problem because the combobox included all the citys but when the town was different, the script was inserted a value that it doesn't exist in the town combobox so it shows an error validation that stop the flow of that user but it didn't show any error in the JMeter.
So when the users had the same city and town, they were inserted but if they didn't it shows no error but was not inserted in the DB.

Resources