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

1、jmeter调用自己写的jar包

报错内容:
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目录下面的话就不会出现该问题

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值