How to install json path extractor plugin

3,266 views
Skip to first unread message

pd

unread,
Oct 22, 2015, 3:58:45 PM10/22/15
to jmeter-plugins
Can anyone please give me step by step instructions to get json path extractor available in my jmeter . I followed the steps in the documentation and I don't see the JSON path extractor option . 

Thank You 

gli...@gmail.com

unread,
Oct 23, 2015, 1:20:09 PM10/23/15
to jmeter-plugins, pooja...@gmail.com
Double check your installation, in ideal world:

  • you should have JMeterPlugins-ExtrasLibs.jar under /lib/ext folder 
  • you should have the following jars under /lib folder

commons-beanutils-1.8.3.jar ezmorph-1.0.6.jar json-path-0.9.0.jar qpid-common-0.20.jar xom-1.2.10.jar

commons-lang-2.6.jar jedis-2.2.1.jar json-smart-1.2.jar spring-core-2.5.6.jar

commons-pool-1.6.jar json-lib-2.4-jdk15.jar qpid-client-0.20.jar spring-jms-2.5.6.jar

  • you should not have any errors in jmeter.log file 
Troubleshooting tips:

  1. Try again with the latest clean JMeter and plugins (JMeterPlugins-ExtrasLibs-1.3.1.zip) 
  2. If it doesn't help - you can run your test via Taurus tool - it'll automatically download and install all the plugins including JSON ones
  3. If it doesn't help - try follows steps from Parsing JSON chapter of the Using the XPath Extractor in JMeter guide. 

Pooja Reddy

unread,
Oct 23, 2015, 2:44:30 PM10/23/15
to gli...@gmail.com, jmeter-plugins
Thank You Glinius. I was able to get the Json path extractor plugin added to Jmeter but I get this error .

ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.NoSuchMethodError: com.jayway.jsonpath.JsonPath.read(Ljava/lang/Object;Lcom/jayway/jsonpath/Configuration;)Ljava/lang/Object;
at com.jayway.jsonpath.internal.JsonReader.read(JsonReader.java:103)
at com.jayway.jsonpath.internal.JsonReader.read(JsonReader.java:97)
at com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor.process(JSONPathExtractor.java:106)
at org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread.java:739)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:441)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:258)
at java.lang.Thread.run(Thread.java:745)

Pooja Reddy

unread,
Oct 23, 2015, 3:53:09 PM10/23/15
to Dmitri Tikhanski, jmeter-plugins
I uninstalled everything and installed back again and it is working fine . 

Thank you, 

htal...@prosper.com

unread,
Feb 11, 2018, 10:15:14 PM2/11/18
to jmeter-plugins
I am facing the below error while running from the command line:

2018-02-11 18:44:20,835 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1 2018-02-11 18:44:20,857 ERROR o.a.j.JMeter: Uncaught exception: java.lang.NoClassDefFoundError: com/jayway/jsonpath/internal/JsonReader at com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor.process(JSONPathExtractor.java:102) ~[jmeter-plugins-extras-libs-1.3.1.jar:?] at org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread.java:833)

Below is my POM,

<plugins>
<plugin>
        <jmeterExtensions>
<artifact>kg.apc:jmeter-plugins-manager:0.19</artifact>
<artifact>Kg.apc:jmeter-plugins-extras-libs:1.3.1</artifact>
<artifact>kg.apc:jmeter-plugins-json:jar:2.3</artifact>
</jmeterExtensions>
<!-- The plugin uses some broken dependencies
An alternative is to set this to true and use excludedArtifacts, see below
-->
<downloadExtensionDependencies>false</downloadExtensionDependencies>

</configuration>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>kg.apc</groupId>
<artifactId>jmeter-plugins-extras-libs</artifactId>
<version>1.3.1</version>
</dependency>

</dependencies>
</plugin>


When I run from the UI, it works perfectly fine. I am using JSON path extractor in my jmx file to get some values from json response. (not using jp@gc json path extractor, I am using the default one provided by Apache Jmeter 3.3)

Any help is highly appreciated.  Thanks in advance.

Andrey Pokhilko

unread,
Feb 12, 2018, 2:02:03 AM2/12/18
to jmeter-...@googlegroups.com

Hi,

I'm not familiar with Maven plugin to run JMeter, but modern JSON plugin has different artifact and much later version: http://search.maven.org/#artifactdetails%7Ckg.apc%7Cjmeter-plugins-json%7C2.6%7Cjar

Andrey Pokhilko

12.02.2018 06:15, htal...@prosper.com пишет:
--
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.

Reply all
Reply to author
Forward
0 new messages