Skip to content

The Constant Throughput Timer is throwing a NullPointerException when using variables (vars.get) in "Target Throughput"-field #6165

Closed
@cslfst

Description

@cslfst

Expected behavior

The Constant Throughput Timer is supposed to ensure the number of times a Use Case is executed within a minute.
How often the Use Case ist executed depends on the value specified in the Field "Target troughput (in samples per minute)"
The value in this case is a variable (${__groovy( vars.get("throughput").toDouble() )}).

Actual behavior

The Use Case is not being executed once and while the test is still running, no further actions are executed. It is stuck.
A NullPointerException occures: javax.script.ScriptException: javax.script.ScriptException: java.lang.NullPointerException: Cannot invoke method toDouble() on null object.
The Issue #6162 might be similar.

Steps to reproduce the problem

The attached test.jmx should reproduce the problem.

jmeter.log
test.zip

The Constant Throughput Timer works as expcted with jmeter 5.5 and older, dispite having the same NullPointerException.

JMeter Version

5.6.2

Java Version

openjdk version "11.0.19" 2023-04-18 LTS

OS Version

Microsoft Windows [Version 10.0.14393]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions