Getting exceptions while generating CSV aggregate file from the jtl.

942 views
Skip to first unread message

xara...@gmail.com

unread,
Oct 26, 2018, 6:23:39 AM10/26/18
to jmeter-plugins
Hi All,

Getting below exception when I try convert generated jtl file to csv using cmdRunner.jar. I'm running the jmx files using ant script(jmeter task), after the execution when I try get stats i.e. mainly aggregate report seeing below exception...even though I have all required jars in lib.

The issue is mainly when I run from a linux server but in local machine(windows OS) it is fine and I'm able to generate the csv.

Can someone please help on this.




aggregate-report:
     [java] ERROR: java.lang.NoSuchMethodError: org.apache.jmeter.save.CSVSaveService.saveCSVStats(Ljava/util/List;Ljava/io/FileWriter;[Ljava/lang/String;)V
     [java] *** Problem's technical details go below ***
     [java] Home directory was detected as: /opt/performance/apache/apache-jmeter-3.3/lib/ext
     [java] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.jmeter.save.CSVSaveService.saveCSVStats(Ljava/util/List;Ljava/io/FileWriter;[Ljava/lang/String;)V
     [java]     at kg.apc.jmeter.vizualizers.AggregateReportGui$FakeGraphPanelChart.saveGraphToCSV(AggregateReportGui.java:261)
     [java]     at kg.apc.jmeter.PluginsCMDWorker.doJob(PluginsCMDWorker.java:161)
     [java]     at kg.apc.cmdtools.ReporterTool.processParams(ReporterTool.java:250)
     [java]     at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:62)
     [java]     at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:21)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke(Method.java:498)
     [java]     at kg.apc.cmd.UniversalRunner.main(UniversalRunner.java:115)
     [java] Java Result: 1


artem....@blazemeter.com

unread,
Oct 26, 2018, 6:47:15 AM10/26/18
to jmeter-plugins
Hi,

Which version of jmeter-plugins-synthesis plugin do you use? Could you please try again with the latest version

Thanks,
Artem

пятница, 26 октября 2018 г., 13:23:39 UTC+3 пользователь xara...@gmail.com написал:

xara...@gmail.com

unread,
Oct 26, 2018, 6:51:41 AM10/26/18
to jmeter-plugins
Hi Artem,

I'm using latest version of the jar only it is 2.2. I have kept the same in lib/ext folder of Jmeter home.

artem....@blazemeter.com

unread,
Oct 26, 2018, 7:08:17 AM10/26/18
to jmeter-plugins
But I think that this stack trace from version ~2.0

Could execute attached jmx file for diagnostic your problem and then send jmeter.log file to me? It'll print in the log info about all jars in your jmeter/lib/ext folder and info about which plugins versions was loaded.
 
Artem

пятница, 26 октября 2018 г., 13:51:41 UTC+3 пользователь xara...@gmail.com написал:
PluginsDiagnostics.jmx

Anand Raj

unread,
Oct 26, 2018, 7:53:37 AM10/26/18
to jmeter-...@googlegroups.com
Hi Artem,

Please find attached log got after running the script you shared.

--
You received this message because you are subscribed to a topic in the Google Groups "jmeter-plugins" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jmeter-plugins/MWlbqsr0sNc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
jmeterLog.txt

Anand Raj

unread,
Oct 26, 2018, 7:55:04 AM10/26/18
to jmeter-...@googlegroups.com, artem....@blazemeter.com
Hi Artem,

Please find attached log got after running the script you shared.

jmeterLog.txt

artem....@blazemeter.com

unread,
Oct 26, 2018, 8:08:11 AM10/26/18
to jmeter-plugins
Please, remove /opt/performance/apache/apache-jmeter-3.3/lib/ext/JMeterPlugins-Standard.jar file. It's very old plugins set.

пятница, 26 октября 2018 г., 14:55:04 UTC+3 пользователь Anand Raj написал:

artem....@blazemeter.com

unread,
Oct 26, 2018, 8:12:13 AM10/26/18
to jmeter-plugins
Also your jmeter installation has a lot of jar conflicts. I recommend you cleanup all old jars from this log:

2018-10-26 06:44:39,159 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/commons-io-2.5.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/commons-io-1.3.2.jar
2018-10-26 06:44:39,159 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/commons-io-2.6.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/commons-io-2.5.jar
2018-10-26 06:44:39,159 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-casutg-2.6.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-casutg-2.5.jar
2018-10-26 06:44:39,159 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-cmd-2.2.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-cmd-2.1.jar
2018-10-26 06:44:39,159 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-cmn-jmeter-0.6.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-cmn-jmeter-0.5.jar
2018-10-26 06:44:39,159 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-filterresults-2.2.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-filterresults-2.1.jar
2018-10-26 06:44:39,160 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-manager-1.3.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-manager-1.1.jar
2018-10-26 06:44:39,160 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-plancheck-2.4.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-plancheck-2.2.jar
2018-10-26 06:44:39,160 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-senseuploader-3.5.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-senseuploader-3.4.jar
2018-10-26 06:44:39,160 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-synthesis-2.2.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-synthesis-2.1.jar
2018-10-26 06:44:39,160 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-tst-2.5.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-tst-2.4.jar
2018-10-26 06:44:39,160 WARN o.j.r.PluginManager: Found JAR conflict: /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-wsc-0.7.jar and /opt/performance/apache/apache-jmeter-3.3/lib/ext/jmeter-plugins-wsc-0.3.jar

Artem

пятница, 26 октября 2018 г., 15:08:11 UTC+3 пользователь artem....@blazemeter.com написал:

Anand Raj

unread,
Oct 26, 2018, 8:18:16 AM10/26/18
to jmeter-...@googlegroups.com, artem....@blazemeter.com
But is't the issue with this class   ERROR: java.lang.NoSuchMethodError: org.apache.jmeter.save.CSVSaveService.saveCSVStats,

and I think this doesn't come under JMeterPlugins-Standard.jar right.

Yes I'm cleaning those conflicting jars by removing all old jars.

artem....@blazemeter.com

unread,
Oct 26, 2018, 8:26:18 AM10/26/18
to jmeter-plugins
Sure. It is an issue in  Exception in thread "main" java.lang.NoSuchMethodError: org.apache.jmeter.save.CSVSaveService.saveCSVStats(Ljava/util/List;Ljava/io/FileWriter;[Ljava/lang/String;)V
     [java]     at kg.apc.jmeter.vizualizers.AggregateReportGui$FakeGraphPanelChart.saveGraphToCSV(AggregateReportGui.java:261)

But it was fixed on plugin side in  jmeter-plugins-synthesis-2.2.jar. From Your log I see, that AggregateReportGui class was loaded from JMeterPlugins-Standard.jar (it is previous version of jmeter-plugins-synthesis, like 1.9).
2018-10-26 06:44:39,102 INFO o.a.j.p.j.s.JSR223Sampler: kg.apc.jmeter.vizualizers.AggregateReportGui was loaded from /opt/performance/apache/apache-jmeter-3.3/lib/ext/JMeterPlugins-Standard.jar

Please, remove this jar and try again

Artem

пятница, 26 октября 2018 г., 15:18:16 UTC+3 пользователь Anand Raj написал:

Anand Raj

unread,
Oct 26, 2018, 8:51:53 AM10/26/18
to jmeter-...@googlegroups.com, artem....@blazemeter.com
Thanks a lo. After removing those old jars and the  JMeterPlugins-Standard.jar I'm able to run from the linux machine.

But not sure how it is still running in my local(windows os) even though I have conflicting jars and JMeterPlugins-Standard.jar.
Reply all
Reply to author
Forward
0 new messages