https://bz.apache.org/bugzilla/show_bug.cgi?id=63241
Bug ID: 63241
Summary: __threadGroupName causes a NullPointerException when
used for samplers
Product: JMeter
Version: 5.1
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: major
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: JMETER_5.2
I have used the __threadGroupName function to name the HTTP Request samplers
eg: ${__threadGroupName}-LC_homepage
Script worked fine and gave the sampler name as expected in the reports.
When I tried a STOP while the script was running for a duration, it gave the
below error and continued till the end of the test duration. SHUTDOWN works
fine
019-03-06 14:04:49,115 INFO o.a.j.g.a.Start: Stopping test
2019-03-06 14:04:49,133 INFO o.a.j.t.JMeterThread: Stopping: xxxxxxx 1-2
2019-03-06 14:04:49,133 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NullPointerException: null
at
org.apache.jmeter.functions.ThreadGroupName.execute(ThreadGroupName.java:54)
~[ApacheJMeter_functions.jar:5.1 r1853635]
at
org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:136)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:111)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
org.apache.jmeter.testelement.property.FunctionProperty.getStringValue(FunctionProperty.java:92)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsString(AbstractTestElement.java:281)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
org.apache.jmeter.testelement.AbstractTestElement.getName(AbstractTestElement.java:165)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
org.apache.jmeter.threads.JMeterThread.interrupt(JMeterThread.java:808)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
org.apache.jmeter.threads.ThreadGroup.stopThread(ThreadGroup.java:359)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
org.apache.jmeter.threads.ThreadGroup.lambda$tellThreadsToStop$0(ThreadGroup.java:386)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1597)
~[?:1.8.0_144]
at
org.apache.jmeter.threads.ThreadGroup.tellThreadsToStop(ThreadGroup.java:386)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
org.apache.jmeter.threads.ThreadGroup.tellThreadsToStop(ThreadGroup.java:404)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
org.apache.jmeter.engine.StandardJMeterEngine$StopTest.tellThreadGroupsToStop(StandardJMeterEngine.java:285)
~[ApacheJMeter_core.jar:5.1 r1853635]
at
org.apache.jmeter.engine.StandardJMeterEngine$StopTest.run(StandardJMeterEngine.java:324)
~[ApacheJMeter_core.jar:5.1 r1853635]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
thanks
Kishore
--
You are receiving this mail because:
You are the assignee for the bug.