Bug 65847 - Wrong version of Java in log file
Summary: Wrong version of Java in log file
Status: RESOLVED INVALID
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.4.3
Hardware: Macintosh other
: P2 normal (vote)
Target Milestone: JMETER_5.5
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-25 23:06 UTC by Mihir Modi
Modified: 2022-01-26 11:10 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mihir Modi 2022-01-25 23:06:34 UTC
Hi,

Just installed JMeter 5.4.3 version. I am not able to create a HTML report from jtl file. 

It gives me following error:
An error occurred: 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 

Looking at the jmeter.log file it shows me java.version=17.0.1 but my machine has only one JDK installation and it's 11.0.5 

I have attached screenshots for logs and java version on machine. 

Thank you

Mihir Modi
Comment 1 Felix Schumacher 2022-01-26 11:10:22 UTC
As JMeter contains no JDK (at least the official distribution from the ASF site) and the JDK will (most probably) not lie about its version number, I suspect, that you have another JDK on your machine and that either the path or JAVA_HOME is pointing to it.

This question is better placed on the mailing list, as it is not a bug in JMeter (as far as I can tell).

You can try to look at the process, when JMeter runs and find the path to the JDK that way, or you could log/print the system property java.home

The latter could be achieved by adding a JSR-223 sampler (groovy) with a single line "System.getProperty('java.home')" in it and looking at the result of that sampler after running it.

Further discussion of this should be held on the users mailing list.
Comment 2 The ASF infrastructure team 2022-09-24 20:38:23 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5624