https://bz.apache.org/bugzilla/show_bug.cgi?id=62760
Bug ID: 62760
Summary: StackOverFlow error returned for IF controller when
Loop count is set to forever
Product: JMeter
Version: 5.0
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: JMETER_5.1
Created attachment 36162
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36162&action=edit
Jmx file - Please refer attached jmx file wherein Loop count is set to Forever,
under If controller - condition is set to false and Interpret condition as
variable expression is uncheck
Under Thread Group, give any number of threads, rampup and scheduler duration
as you need but set Loop count to forever.
Add If controller under same thread group and add one HTTP Sampler.
Under If controller, uncheck Interpret Condition as Variable Expression? and
set condition is such a way that it should return false. For e.g
"PASS"=="PASSED" (This will return false)
Now if you run the script, In console, you can find UncaughtException --
2018-09-26 11:25:06,132 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.StackOverflowError: null
at
org.apache.jmeter.threads.JMeterContextService.getContext(JMeterContextService.java:60)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.engine.util.SimpleVariable.getVariables(SimpleVariable.java:65)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.engine.util.SimpleVariable.toString(SimpleVariable.java:51)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:142)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:111)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.testelement.property.FunctionProperty.getStringValue(FunctionProperty.java:101)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsString(AbstractTestElement.java:281)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.control.IfController.getCondition(IfController.java:177)
~[ApacheJMeter_core.jar:5.0 r1840935]
at org.apache.jmeter.control.IfController.next(IfController.java:237)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:222)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.control.GenericController.next(GenericController.java:175)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.control.LoopController.next(LoopController.java:134)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.control.LoopController.nextIsNull(LoopController.java:166)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.control.GenericController.next(GenericController.java:170)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.control.LoopController.next(LoopController.java:134)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:225)
~[ApacheJMeter_core.jar:5.0 r1840935]
at
org.apache.jmeter.control.GenericController.next(GenericController.java:175)
~[ApacheJMeter_core.jar:5.0 r18
--
You are receiving this mail because:
You are the assignee for the bug.