Bug 51272 - controller as first child of If Controller causes exception when conditional is false
Summary: controller as first child of If Controller causes exception when conditional ...
Status: RESOLVED DUPLICATE of bug 50618
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: Nightly (Please specify date)
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 16:51 UTC by Chris Newell
Modified: 2011-05-26 20:38 UTC (History)
1 user (show)



Attachments
run 'BUGGED' thread and review jmeter.log (9.59 KB, application/octet-stream)
2011-05-26 16:51 UTC, Chris Newell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Newell 2011-05-26 16:51:02 UTC
Created attachment 27072 [details]
run 'BUGGED' thread and review jmeter.log

Using JMeter-r1095243 (a semi-recent nightly)

When the first child of an If Controller is a Controller an exception is thrown when the condition for the If Controller is false.

Exception:

2011/05/26 12:33:28 INFO  - jmeter.threads.JMeterThread: Thread started: BUGGED 1-1
2011/05/26 12:33:28 INFO  - jmeter.util.BeanShellTestElement: beanshell ran
2011/05/26 12:33:29 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError
	at java.lang.String.indexOf(Unknown Source)
	at java.lang.ClassLoader.checkName(Unknown Source)
	at java.lang.ClassLoader.findLoadedClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at org.mozilla.javascript.DefiningClassLoader.loadClass(DefiningClassLoader.java:72)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
	at java.lang.Class.getConstructor0(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.mozilla.javascript.optimizer.Codegen.createScriptObject(Codegen.java:83)
	at org.mozilla.javascript.Context.compileImpl(Context.java:2280)
	at org.mozilla.javascript.Context.compileString(Context.java:1284)
	at org.mozilla.javascript.Context.compileString(Context.java:1273)
	at org.mozilla.javascript.Context.evaluateString(Context.java:1129)
	at org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:105)
	at org.apache.jmeter.control.IfController.next(IfController.java:162)
	at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
	at org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
	at org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)

[REPEATED ~1000 times]
Comment 1 Milamber 2011-05-26 17:20:03 UTC
See Bug 50618
Comment 2 Sebb 2011-05-26 20:38:54 UTC

*** This bug has been marked as a duplicate of bug 50618 ***
Comment 3 The ASF infrastructure team 2022-09-24 20:37:46 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2495