Bug 65685 - Not able to generate report at end of Jmeter test
Summary: Not able to generate report at end of Jmeter test
Status: NEEDINFO
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.4.1
Hardware: Macintosh other
: P2 normal (vote)
Target Milestone: JMETER_5.5
Assignee: JMeter issues mailing list
URL:
Keywords:
: 65618 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-17 00:26 UTC by Rimjhim
Modified: 2021-11-20 20:24 UTC (History)
3 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rimjhim 2021-11-17 00:26:31 UTC
I am using Apache Jmeter 5.4.1, MacOS (Big Sur) and Java version 1.8.0_311.

When I am running the jmeter in nonGUI moe, while generating the report, I am getting following error :

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 1 is not equal to fixed size 5
... end of run

The log file suggests this error :

Caused by: java.lang.IllegalStateException: Begin size 1 is not equal to fixed size 5
    at java.util.stream.Nodes$FixedNodeBuilder.begin(Nodes.java:1214) ~[?:?]
    at java.util.stream.Sink$ChainedReference.begin(Sink.java:253) ~[?:?]
    at java.util.stream.SliceOps$1$1.begin(SliceOps.java:192) ~[?:?]
    at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:354) ~[?:?]
    at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:528) ~[?:?]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513) ~[?:?]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?]
    at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[?:?]
    at org.apache.jmeter.report.processor.Top5ErrorsSummaryData.getTop5ErrorsMetrics(Top5ErrorsSummaryData.java:82) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.Top5ErrorsBySamplerConsumer.createDataResult(Top5ErrorsBySamplerConsumer.java:97) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.Top5ErrorsBySamplerConsumer.createDataResult(Top5ErrorsBySamplerConsumer.java:29) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.AbstractSummaryConsumer.createResultFromKey(AbstractSummaryConsumer.java:200) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.AbstractSummaryConsumer.stopConsuming(AbstractSummaryConsumer.java:261) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.AbstractSampleConsumer.stopProducing(AbstractSampleConsumer.java:241) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.FilterConsumer.stopConsuming(FilterConsumer.java:111) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.AbstractSampleConsumer.stopProducing(AbstractSampleConsumer.java:241) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.FilterConsumer.stopConsuming(FilterConsumer.java:111) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.AbstractSampleConsumer.stopProducing(AbstractSampleConsumer.java:241) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.NormalizerSampleConsumer.stopConsuming(NormalizerSampleConsumer.java:125) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.CsvFileSampleSource$PrivateProducer.stopProducing(CsvFileSampleSource.java:335) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.CsvFileSampleSource.produce(CsvFileSampleSource.java:182) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.processor.CsvFileSampleSource.run(CsvFileSampleSource.java:235) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.report.dashboard.ReportGenerator.generate(ReportGenerator.java:240) ~[ApacheJMeter_core.jar:5.4.1]
Comment 1 Vladimir Sitnikov 2021-11-17 06:39:13 UTC
I saw the same exception when upgrading JMeter to Java 17: https://github.com/apache/jmeter/commit/0c7af0ce99d0fd1136de5aaf1a0ac8bd4eec66b3#diff-c3b565c1ec51140a42e1e13d818dbc584c3e688f9dd2ed582896d9df0cdb280bR82

So I believe the issue is fixed in Git, and the next nightly build should resolve the issue.

Thanks for the report.
Comment 2 Philippe Mouawad 2021-11-20 20:21:29 UTC
*** Bug 65618 has been marked as a duplicate of this bug. ***
Comment 3 Philippe Mouawad 2021-11-20 20:23:58 UTC
Hello Rimjhim,
Can you try a nightly build:
https://ci.apache.org/projects/jmeter/nightlies/

And give us your feedback ?
If issue persists, please share jmeter.log file.

Thanks