jmeter报错ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method:

ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: import com.gh.operateexcel.TestExcel; TestExcel testExcel = new TestExcel(); . . . '' : Method Invocation testExcel.isNum WARN o.a.j.p.j.s.BeanShellSampler: Exception executing script. org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of:import com.gh.operateexcel.TestExcel; TestExcel testExcel = new TestExcel(); . . . ‘’ : Method Invocation testExcel.isNum

提取关键信息:ERROR o.a.j.u.BeanShellInterpreter:和WARN o.a.j.p.j.s.BeanShellSampler: Exception executing script.
前提:脚本能够正常执行,但还是有报错信息。

以上报错一般是因为,未加try…catch造成的。所执行的代码有异常,但异常未进行捕获处理。

你可能感兴趣的:(jmeter)