'Error while generating report in apache-jmeter-5.4.1.tgz

sh jmeter.sh -n -t filePath.jmx -l outFilePath.jtl -e -o folderPath

Error generating the report: org.apache.jmeter.report.dashboard.GenerationException: Error while processing samples: Consumer failed with message :Consumer failed with message :Consumer failed with message :Consumer failed with message :Begin size 0 is not equal to fixed size 5

In resume

Consumer failed with message :Begin size 0 is not equal to fixed size 5
  • currently using Java version "17" 2021-09-14 LTS
  • MacOS big SUR version 11.4
  • the properties files are fresh and values are equal to the default ones
  • Jmeter 5.4.1
  • outFile.jtl
timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Latency,IdleTime,Connect
1632430450882,1117,HTTP Request,200,OK,FIRST_Jmeter_Test 1-3,text,true,,3824,557,3,3,Url_hidden,1111,0,256
1632430450448,1755,HTTP Request,200,OK,FIRST_Jmeter_Test 1-2,text,true,,3836,557,3,3,Url_hidden,1755,0,690
1632430450448,1755,HTTP Request,200,OK,FIRST_Jmeter_Test 1-1,text,true,,3828,557,3,3,Url_hidden,1755,0,690
1632430452312,585,HTTP Request,200,OK,FIRST_Jmeter_Test 1-2,text,true,,3836,557,3,3,Url_hidden,585,0,144
1632430452238,758,HTTP Request,200,OK,FIRST_Jmeter_Test 1-3,text,true,,3832,557,3,3,Url_hidden,757,0,137
1632430452301,806,HTTP Request,200,OK,FIRST_Jmeter_Test 1-1,text,true,,3828,557,3,3,Url_hidden,805,0,136
1632430452962,550,HTTP Request,200,OK,FIRST_Jmeter_Test 1-2,text,true,,3824,557,3,3,Url_hidden,550,0,152
1632430453328,593,HTTP Request,200,OK,FIRST_Jmeter_Test 1-1,text,true,,3828,557,2,2,Url_hidden,592,0,135
1632430453276,815,HTTP Request,200,OK,FIRST_Jmeter_Test 1-3,text,true,,3840,557,1,1,Url_hidden,814,0,142

The thread run successfully and the jtl file is created as well.

I quite new on Jmeter and tried to see where that "size" attribute is currently locate to see how change it, but could not find it on any *.properties file

any though how can be this fixed, what the message is referring to?

thanks



Solution 1:[1]

This error is likely due to an incompatibility of JMeter with Java 17 (as mentioned by Dmitri T).

Whilst we wait for a fix, a workaround would be downgrading to Java 16. I can confirm this solved the issue for me.

Solution 2:[2]

I had the same issue with:

  • MacOS big SUR version 11.6
  • Jmeter 5.4.1 (installed via brew)
  • Temurin 11 (LTS) OpenJDK & Temurin 8 (LTS) OpenJDK

Running Jmeter with Java 8 solved my issue. The problem was, that Jmeter always used Java 11. I struggled some days to find out, how to set the Jmeter Java version:

  • set the correct Java 8 Home in: /usr/local/Cellar/jmeter/5.4.1/bin/jmeter:

    JAVA_HOME=$JAVA_8_HOME exec "/usr/local/Cellar/jmeter/5.4.1/libexec/bin/jmeter" "$@"

Maybe there are easier ways to set Java 8 for Jmeter - but this was the only solution which worked for me.

Solution 3:[3]

I had Java 8 installed however, the JMeter was picking up Java 1.17 which was nowhere in my system. So uninstalling and reinstalling jmeter, worked like a charm for me.

Solution 4:[4]

I cannot reproduce your issue using:

  1. openjdk:8-jre-alpine docker image
  2. JMeter 5.4.1
  3. Test plan Test.jmx from extras folder of JMeter

Demo:

enter image description here

If you cannot reproduce the above behaviour I think you made some changes either to Results File Configuration or to Reporting Configuration or both so you need to inspect all the JMeter Properties which differ from the defaults and restore their values to the original ones.

If you need further support you need to share at least first 2 lines of your outFilePath.jtl results file. Better if possible the full file and all the .properties files from JMeter's "bin" folder.

Solution 5:[5]

exec commandline /usr/libexec/java_home -V enter image description here

replace bin of jmeter JAVA_HOME enter image description here

and then ,it is success.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andrew Rimmer
Solution 2 felix
Solution 3
Solution 4 Dmitri T
Solution 5 zhanghan