Bug 58515 - New JSON related components : JSON-PATH Extractor and JSON-PATH Renderer in View Results Tree
Summary: New JSON related components : JSON-PATH Extractor and JSON-PATH Renderer in V...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.13
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-21 21:23 UTC by Philippe Mouawad
Modified: 2015-10-23 09:31 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Philippe Mouawad 2015-10-21 21:35:28 UTC
Author: pmouawad
Date: Wed Oct 21 21:34:12 2015
New Revision: 1709925

URL: http://svn.apache.org/viewvc?rev=1709925&view=rev
Log:
Bug 58515 - New JSON related components : JSON-PATH Extractor and JSON-PATH Renderer in View Results Tree
Mention donation
Bugzilla Id: 58515

Modified:
    jmeter/trunk/xdocs/changes.xml
    
Author: pmouawad
Date: Wed Oct 21 21:32:51 2015
New Revision: 1709924

URL: http://svn.apache.org/viewvc?rev=1709924&view=rev
Log:
Bug 58515 - New JSON related components : JSON-PATH Extractor and JSON-PATH Renderer in View Results Tree
Update SaveService svn revision id
Bugzilla Id: 58515

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/save/SaveService.java
    

Author: pmouawad
Date: Wed Oct 21 21:31:06 2015
New Revision: 1709923

URL: http://svn.apache.org/viewvc?rev=1709923&view=rev
Log:
Bug 58515 - New JSON related components : JSON-PATH Extractor and JSON-PATH Renderer in View Results Tree
Exclude from lib
Add to aareadme.txt
Bugzilla Id: 58515

Modified:
    jmeter/trunk/lib/   (props changed)
    jmeter/trunk/lib/aareadme.txt
    
    
Author: pmouawad
Date: Wed Oct 21 21:26:58 2015
New Revision: 1709921

URL: http://svn.apache.org/viewvc?rev=1709921&view=rev
Log:
Bug 58515 - New JSON related components : JSON-PATH Extractor and JSON-PATH Renderer in View Results Tree
Bugzilla Id: 58515

Added:
    jmeter/trunk/docs/images/screenshots/json-post-processor.png   (with props)
    jmeter/trunk/licenses/bin/json-path-2.0.0.txt   (with props)
    jmeter/trunk/licenses/bin/json-smart-2.2.txt   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/jsonpath/
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/jsonpath/JSONManager.java   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/jsonpath/JSONPostProcessor.java   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/jsonpath/gui/
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/jsonpath/gui/JSONPostProcessorGui.java   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/render/
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/render/RenderAsJsonRenderer.java   (with props)
    jmeter/trunk/xdocs/images/screenshots/json-post-processor.png   (with props)
Modified:
    jmeter/trunk/bin/saveservice.properties
    jmeter/trunk/build.properties
    jmeter/trunk/build.xml
    jmeter/trunk/eclipse.classpath
    jmeter/trunk/res/maven/ApacheJMeter_parent.pom
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/RenderAsJSON.java
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/src/core/org/apache/jmeter/save/SaveService.java
    jmeter/trunk/test/src/org/apache/jmeter/visualizers/TestRenderAsJson.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 2 Milamber 2015-10-23 07:03:21 UTC
Hello

When I try to use the JSON Path PostProcessor on an existing script, I've this error:

2015/10/23 07:57:50 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.NoClassDefFoundError: com/jayway/jsonpath/Predicate
	at org.apache.jmeter.extractor.json.jsonpath.JSONManager.getJsonPath(JSONManager.java:45)
	at org.apache.jmeter.extractor.json.jsonpath.JSONManager.extractWithJsonPath(JSONManager.java:65)
	at org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor.process(JSONPostProcessor.java:103)
	at org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread.java:749)
	at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:451)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.jayway.jsonpath.Predicate
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 7 more

Probably a missing dependency? JsonPath (under AL2)
Comment 3 UbikLoadPack support 2015-10-23 07:08:20 UTC
Hi Bruno,
Are you using a NIghtly build or your project in eclipse ?

If Eclipse, did you run ant download_jars ?
Thanks
Comment 4 Milamber 2015-10-23 07:23:45 UTC
Why this question? nightly or eclipse have differences with the dependencies management?

Neither, directly from SVN


svn co https://svn.apache.org/repos/asf/jmeter/trunk jmetertemp
cd jmetertemp/
ant download_jars
ant -Djmeter.version=2.14-SNAPSHOT -Duser.name=milamber@apache.org distribution -Ddisable-svnCheck=true -Ddisable-check-versions=true
cd dist/
tar xfz apache-jmeter-2.14-SNAPSHOT.tgz
cd apache-jmeter-2.14-SNAPSHOT/
cd bin
./jmeter&
Comment 5 Milamber 2015-10-23 07:25:32 UTC
Platform: Oracle Java v8 on Linux
Comment 6 UbikLoadPack support 2015-10-23 07:39:40 UTC
Even in nightly the json-smart and json-path are not here.
Although they are in build.xml and build.properties.

Do you see what issue it could be ? svn:eol related ?

Thanks
Comment 7 Milamber 2015-10-23 08:38:53 UTC
Jars dependencies fixes.

URL: http://svn.apache.org/viewvc?rev=1710137&view=rev
Log:
Fix little issue on properties names for JSON libs
Bugzilla Id: 58515

Modified:
    jmeter/trunk/build.xml


And space policy


URL: http://svn.apache.org/viewvc?rev=1710138&view=rev
Log:
Space policy for ident (json libs)
One more space for jodd
Bugzilla Id: 58515

Modified:
    jmeter/trunk/build.properties
Comment 8 Milamber 2015-10-23 09:10:35 UTC
Review finished (I thinks)


URL: http://svn.apache.org/viewvc?rev=1710149&view=rev
Log:
Format code and NON-NLS strings
Bugzilla Id: 58515

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/jsonpath/gui/JSONPostProcessorGui.java
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/render/RenderAsJsonRenderer.java


URL: http://svn.apache.org/viewvc?rev=1710152&view=rev
Log:
Complete the maven pom
Bugzilla Id: 58515

Modified:
    jmeter/trunk/res/maven/ApacheJMeter_parent.pom
Comment 9 Milamber 2015-10-23 09:31:44 UTC
URL: http://svn.apache.org/viewvc?rev=1710153&view=rev
Log:
Oups! JSON libs Already inside.
Bugzilla Id: 58515

Modified:
    jmeter/trunk/res/maven/ApacheJMeter_parent.pom