重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

在Beanshell里使用source命令加载java源文件的报错:MethodInvocationthis.interpreter.source怎么解决

本篇内容主要讲解“在Beanshell里使用source命令加载java源文件的报错:Method Invocation this.interpreter.source怎么解决”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“在Beanshell里使用source命令加载java源文件的报错:Method Invocation this.interpreter.source怎么解决”吧!

创新互联公司专业为企业提供项城网站建设、项城做网站、项城网站设计、项城网站制作等企业网站建设、网页设计与制作、项城企业网站模板建站服务,10余年项城做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

用Jmeter在Beanshell里使用source命令加载java源文件的报错:Method Invocation this.interpreter.source

具体报错如下:

BeanShellSampler: Exception executing script. org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval    
Sourced file: inline evaluation of: ". . . '' : Method Invocation this.interpreter.source

原因大概是引用的java源文件里有interface的定义,去掉interface的定义则不会报这个错。

深层原因暂未探究。

解决办法:把interface的定义放到jar包里去再引用jar包。

到此,相信大家对“在Beanshell里使用source命令加载java源文件的报错:Method Invocation this.interpreter.source怎么解决”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!


网站名称:在Beanshell里使用source命令加载java源文件的报错:MethodInvocationthis.interpreter.source怎么解决
浏览路径:http://cqcxhl.cn/article/ggcjgg.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP