jmeter调用jar包报错:Method Invocation Client.getDatas

1、jmeter调用自己写的jar包

jmeter调用jar包报错:Method Invocation Client.getDatas_第1张图片

报错内容:
2018-12-10 17:46:08,734 INFO o.a.j.u.JsseSSLManager: SSL session context: per-thread
2018-12-10 17:46:08,766 INFO o.a.j.u.SSLManager: JmeterKeyStore Location:  type JKS
2018-12-10 17:46:08,767 INFO o.a.j.u.SSLManager: KeyStore created OK
2018-12-10 17:46:08,767 WARN o.a.j.u.SSLManager: Keystore file not found, loading empty keystore
2018-12-10 17:46:09,501 INFO o.a.j.u.BeanShellTestElement: =====data========>>>>
2018-12-10 17:46:09,510 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval    Sourced file: inline evaluation of: ``import com.crm.opportunity.*; import com.crm.opportunity.Client;  log.info("==== . . . '' : Typed variable declaration : Method Invocation Client.getDatas
2018-12-10 17:46:09,511 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.crm.opportunity.*; import com.crm.opportunity.Client;  log.info("==== . . . '' : Typed variable declaration : Method Invocation Client.getDatas
2、产生该问题的原因:因为jar包中有引用第三方的jar包,此时如果第三方的jar包没有导入到jmeter/lib/ext中的时候,就会报这个错误,如果将第三方引入的jar报直接放到jmeter/lib/ext目录下面的话就不会出现该问题

你可能感兴趣的:(jmeter)