jmeter和metersphere引用jar包报错Error invoking bsh method和 not found in namespace

2024-01-09 09:26:38 ERROR 54b7e26f 1-1 Error invoking bsh method: eval Sourced file: inline evaluation of: // BeanShell脚本开始 import com.example.demo.DemoApplication; DemoApplica . . . '' : Typed variable declaration : Class: DemoApplication not found in namespace 2024-01-09 09:26:38 WARN 54b7e26f 1-1 Exception executing script. org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: // BeanShell脚本开始 import com.example.demo.DemoApplication; DemoApplica . . . ‘’ : Typed variable declaration : Class: DemoApplication not found in namespace

1.查看jar包有没有上传
2.引用包名.类名.方法名
3.查看包是否引用第三方依赖,如果有打包的是需要依赖一起打包
pom文件里面配置:

          <plugin>  
              <artifactId>maven-assembly-plugin</artifactId>  
              <configuration>  
                  <!--这部分可有可无,加上的话则直接生成可运行jar包-->
                  <!--<archive>-->
                      <!--<manifest>-->
                          <!--<mainClass>${exec.mainClass}</mainClass>-->
                      <!--</manifest>-->
                  <!--</archive>-->
                  <descriptorRefs>  
                      <descriptorRef>jar-with-dependencies</descriptorRef>  
                  </descriptorRefs>  
             </configuration>
        </plugin>

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-10 12:56:03       4 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-10 12:56:03       5 阅读
  3. 在Django里面运行非项目文件

    2024-01-10 12:56:03       4 阅读
  4. Python语言-面向对象

    2024-01-10 12:56:03       4 阅读

热门阅读

  1. 认识do-while循环

    2024-01-10 12:56:03       41 阅读
  2. 理解并使用ThreadLocal实现线程级别的数据隔离

    2024-01-10 12:56:03       35 阅读
  3. 独立站营销:那些适合海外推广的视频平台!

    2024-01-10 12:56:03       48 阅读
  4. vue路由及参数router

    2024-01-10 12:56:03       37 阅读