Using JSONPathAssertion breaks the NonGUIDriver

1,159 views
Skip to first unread message

Hans-Juergen Rennau

unread,
Mar 27, 2015, 5:54:56 AM3/27/15
to jmeter-...@googlegroups.com
Dear colleagues,

JSONPathAssertion works fine when using JMeter via GUI, but it breaks the NonGUIDriver:

jmeter -n -t \projects\mockMachine-projects\gateway10\jmx\gateway10.jmx
Error in NonGUIDriver java.lang.NullPointerException

After commenting out the assertion, the NonGUIDriver works again.

JSONPathExtractor has the same effect.

Is there a remedy?

Cheers,
Hans-Jürgen

Andrey Pokhilko

unread,
Mar 27, 2015, 8:44:08 AM3/27/15
to jmeter-...@googlegroups.com
Could you post full exception stacktrace, it will help resolving it. Also which version of the plugins do you use?

--
Andrey

пятница, 27 марта 2015 г., 12:54:56 UTC+3 пользователь Hans-Juergen Rennau написал:

tom.m...@gmail.com

unread,
Jun 17, 2015, 6:45:07 AM6/17/15
to jmeter-...@googlegroups.com
Hi,

I have got the same problem.

Here is a stacktrace:

[debug] JMeter is called with the following command line arguments: -n -t /Users/tomMantsch/IdeaProjects/service-automation/trunk/src/test/jmeter/JMeterTestPlan-GetContent.jmx -l /Users/tomMantsch/IdeaProjects/service-automation/trunk/target/jmeter/results/JMeterTestPlan-GetContent.jtl -d /Users/tomMantsch/IdeaProjects/service-automation/trunk/target/jmeter -j /Users/tomMantsch/IdeaProjects/service-automation/trunk/target/jmeter/logs/JMeterTestPlan-GetContent.jmx.log
[info] Executing test: JMeterTestPlan-GetContent.jmx
[debug] Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'/Users/tomMantsch/IdeaProjects/service-automation/trunk/src/test/jmeter/JMeterTestPlan-GetContent.jmx', conversion error com.thoughtworks.xstream.converters.ConversionException: com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
[debug] ---- Debugging information ----
[debug] message             : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
[debug] cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
[debug] cause-message       : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
[debug] class               : org.apache.jorphan.collections.ListedHashTree
[debug] required-type       : org.apache.jorphan.collections.ListedHashTree
[debug] converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
[debug] path                : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree/com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
[debug] line number         : 117
[debug] ------------------------------- : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor

Any idea what might be wrong here?

and...@blazemeter.com

unread,
Jun 17, 2015, 8:41:03 AM6/17/15
to jmeter-...@googlegroups.com, tom.m...@gmail.com
You did not install plugins properly.

--
Andrey

Thomas Mantsch

unread,
Jun 18, 2015, 1:55:49 AM6/18/15
to and...@blazemeter.com, jmeter-...@googlegroups.com
I am using it with Maven and I have got the following dependencies:

<dependency>
<groupId>kg.apc</groupId>
<artifactId>jmeter-plugins-standard</artifactId>
<version>1.2.1</version>
</dependency>

<dependency>
<groupId>kg.apc</groupId>
<artifactId>jmeter-plugins-extras-libs</artifactId>
<version>1.2.1</version>
</dependency>
And this plugin:
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>1.10.1</version>
<configuration>
<testResultsTimestamp>false</testResultsTimestamp>
</configuration>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
</plugin>

Andrey Pokhilko

unread,
Jun 22, 2015, 9:41:11 AM6/22/15
to jmeter-...@googlegroups.com, tom.m...@gmail.com, and...@blazemeter.com, tom.m...@gmail.com
Sorry, I'm not experienced with using Maven+JmeterPlugins. Maybe somebody else has any insights.

четверг, 18 июня 2015 г., 8:55:49 UTC+3 пользователь Thomas Mantsch написал:

pooj...@gmail.com

unread,
Sep 10, 2015, 2:53:39 AM9/10/15
to jmeter-plugins, tom.m...@gmail.com, and...@blazemeter.com
Hi...I am facing the same problem in maven+jmeter plugins. Can you please let me know how did you resolve the problem?

bino...@gmail.com

unread,
Feb 22, 2016, 9:36:56 AM2/22/16
to jmeter-plugins, tom.m...@gmail.com, and...@blazemeter.com, pooj...@gmail.com
Did you find the solution? I am stuck with the same problem. 

heli...@gmail.com

unread,
Feb 22, 2017, 3:59:39 AM2/22/17
to jmeter-plugins

Got the same issue, please let me know if it's fixed once 

在 2015年3月27日星期五 UTC+8下午5:54:56,Hans-Juergen Rennau写道:

Andrey Pokhilko

unread,
Feb 22, 2017, 4:50:01 AM2/22/17
to jmeter-...@googlegroups.com

Can you provide full stacktrace, please?

Andrey Pokhilko

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

verma....@gmail.com

unread,
Oct 9, 2018, 4:51:02 PM10/9/18
to jmeter-plugins

jmeter -n -t /Users/kverma1/Downloads/Jmeter_testing/dashboard_Kriti.jmx -l jmeter.jtl

Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'/Users/kverma1/Downloads/Jmeter_testing/dashboard_Kriti.jmx'. 

Cause:

CannotResolveClassException: com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor


 Detail:com.thoughtworks.xstream.converters.ConversionException: 

---- Debugging information ----

cause-exception     : com.thoughtworks.xstream.converters.ConversionException

cause-message       : 

first-jmeter-class  : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)

class               : org.apache.jmeter.save.ScriptWrapper

required-type       : org.apache.jorphan.collections.ListedHashTree

converter-type      : org.apache.jmeter.save.ScriptWrapperConverter

path                : /jmeterTestPlan/hashTree/hashTree/hashTree[5]/hashTree[10]/hashTree[18]/com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor

line number         : 9009

version             : 5.0 r1840935

Andrey Pokhilko

unread,
Oct 10, 2018, 3:13:16 AM10/10/18
to jmeter-...@googlegroups.com

You need to install corresponding plugin into your JMeter.

Andrey Pokhilko

09.10.2018 23:51, verma....@gmail.com пишет:

programme...@gmail.com

unread,
Feb 1, 2019, 2:59:20 AM2/1/19
to jmeter-plugins
I was able to solve this problem by upgrading to java 1.8 (or enabling it)

If you have java 1.7 this may be the cause "java -version"

Here's how to fix on centOS / AWS

sudo yum install -y java-1.8.0-openjdk.x86_64
sudo /usr/sbin/alternatives --set java /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
sudo /usr/sbin/alternatives --set javac /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/javac

Now "java -version" should say 1.8

Remove the jmeter installation and try again

rm -rf ~/.bzt/jmeter-taurus/5.0
(replace 5.0 with current version)
Reply all
Reply to author
Forward
0 new messages