https://issues.apache.org/bugzilla/show_bug.cgi?id=51868
--- Comment #8 from Philippe Mouawad <[email protected]> 2011-10-01 15:27:51 UTC --- Hello, Your second BeanShell Sampler has an error, it should be: vars.put("spent_time",execution_time.toString()); look in jmeter.log you have: 2011/10/01 17:05:14 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``current_time = System.currentTimeMillis(); start_time = vars.get("start_time"); . . . '' : Error in method invocation: Method put( java.lang.String, long ) not found in class'org.apache.jmeter.threads.JMeterVariables' 2011/10/01 17:05:16 WARN - jmeter.protocol.java.sampler.BeanShellSampler: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: ``current_time = System.currentTimeMillis(); start_time = vars.get("start_time"); . . . '' : Error in method invocation: Method put( java.lang.String, long ) not found in class'org.apache.jmeter.threads.JMeterVariables' Regarding the issue, this is my analysis, when error occurs in either HTTP Sampler or bean, as Start NExt loop is configured we enter this part of code of JMeterThread: sam = controller.next(); // need perfom a until loop for special case (tc as parent) while (sam != null && !sam.equals(firstSampler)) { // while the thread is NOT on the begining of the tree sam = controller.next(); } next controller is IfController , I think we enter a known issue: "The If Controller may cause an infinite loop if the condition is always false from the first iteration" Anyway, Maybe IfController#evaluateCondition should throw an exception when condition has a evaluation error instead of returning false, it would stop test and let you know your condition is wrong. Regards Philippe -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
