I have JMeter 5.4 added to a Docker container, based on Alpine 3.12.0. I've added a few plugins, including the ones I have identified for JMeterPluginsCMD.sh. These are;
- jpgc-cmd-2.2
- jpgc-synthesis-2.2
- jpgc-filterresults-2.2
I am running an aggregate report based on a results JTL file.
/opt/jmeter/bin/JMeterPluginsCMD.sh --generate-csv /test/aggregate.csv --input-jtl /test/results.jtl --plugin-type AggregateReport
But I get a Java error (added below for clarity). The equivalent command on my local Windows PC (with the same plugins) works fine;
c:\jmeter-5.4.1\bin\JMeterPluginsCMD.bat --generate-csv c:\temp\ar.csv --input-jtl c:\temp\results.jtl --plugin-type AggregateReport
I can't see what's different, apart from one running on Linux and one on Windows.
Here's the first part of the error, I can add more if it's needed.
ERROR: java.lang.InternalError: java.lang.reflect.InvocationTargetException
*** Problem's technical details go below ***
Home directory was detected as: /opt/jmeter/lib
Exception in thread "main" java.lang.InternalError:
java.lang.reflect.InvocationTargetException
at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:86)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)