导入jmx报ERROR:CannotReslovedClassException:kg.apc.jmeter.vizualizers.correctedResultCollector

本文介绍了如何处理JMeter导入jmx文件时出现的CannotResolvedClassException,包括检查扩展jar包问题和通过添加特定插件解决,确保本地JMeter环境配置正确。

导入jmx报ERROR:

CannotReslovedClassException:kg.apc.jmeter.vizualizers.correctedResultCollector

Detail:com.throughtworks.xstream.converters.ConversionException

解决方法:

1.导入他人的jmx报错,是因为其jmx脚本中包含了扩展的jar包,但本地的jmeter没有对应的jar导致的,可以把他人jmeter安装路径下的ext文件夹拷贝替换我们安装路径下ext文件夹,重启jmeter,能够在listener监听器中看到对应gc@xxx的插件项。

2.还可以下载:jpgc-graphs-basic-2.0.zip文件解压有三个文件,拷贝jmeter-plugins-cmn-jmeter-0.3.jar到jmeter安装目录的lib文件夹下面,将lib/ext里的jmeter-plugins-graphs-basic-2.0.jar和jmeter-plugins-manager-0.10.jar拷贝到ext目录。再重启jmeter,能够在listener监听器中看到对应gc@xxx的插件项。

这是正常的?2025-09-10 10:25:57,266 INFO o.j.r.JARSourceHTTP: Found cached repo 2025-09-10 10:25:57,394 INFO o.j.r.PluginManager: Plugins Status: [jpgc-graphs-basic=2.0, jpgc-functions=2.2, jpgc-casutg=3.1.1, jpgc-dummy=0.4, jpgc-ffw=2.0, jpgc-fifo=0.2, jpgc-perfmon=2.1, jpgc-plugins-manager=1.10, jpgc-tst=2.6, jpgc-udp=0.4, jmeter-core=5.6.3, jmeter-ftp=5.6.3, jmeter-http=5.6.3, jmeter-jdbc=5.6.3, jmeter-jms=5.6.3, jmeter-junit=5.6.3, jmeter-java=5.6.3, jmeter-ldap=5.6.3, jmeter-mail=5.6.3, jmeter-mongodb=5.6.3, jmeter-native=5.6.3, jmeter-tcp=5.6.3, jmeter-components=5.6.3, jpgc-standard=2.0] 2025-09-10 10:25:57,394 INFO o.j.r.PluginManagerMenuItem: Plugins Manager has upgrades: [jpgc-plugins-manager] 2025-09-10 10:28:36,500 INFO o.a.j.s.FileServer: Default base='C:\Users\10433' 2025-09-10 10:28:36,501 INFO o.a.j.s.FileServer: Set new base='C:\Users\10433' 2025-09-10 10:28:36,567 INFO o.a.j.s.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 2025-09-10 10:28:36,571 INFO o.a.j.s.SaveService: Using SaveService properties file encoding UTF-8 2025-09-10 10:28:36,572 INFO o.a.j.s.SaveService: Using SaveService properties version 5.0 2025-09-10 10:28:38,272 INFO o.a.j.e.StandardJMeterEngine: Running the test! 2025-09-10 10:28:38,273 INFO o.a.j.s.SampleEvent: List of sample_variables: [] 2025-09-10 10:28:38,273 INFO o.a.j.s.SampleEvent: List of sample_variables: [] 2025-09-10 10:28:38,273 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must contain the string: '.functions.' 2025-09-10 10:28:38,273 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 2025-09-10 10:28:38,413 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-manager-1.11.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,414 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-dummy-0.4.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,415 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-ffw-2.0.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,415 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-graphs-basic-2.0.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,416 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-casutg-3.1.1.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,416 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-manager-1.10.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,417 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-functions-2.2.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,418 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-perfmon-2.1.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,418 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-fifo-0.2.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,421 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-tst-2.6.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,422 INFO o.a.j.r.ClassFinder: Will scan jar C:\mySoft\program\apache-jmeter-5.6.3\lib\ext\jmeter-plugins-udp-0.4.jar with filter ExtendsClassFilter [parents=[interface org.apache.jmeter.functions.Function], inner=false, contains=null, notContains=null]. Consider exposing JMeter plugins via META-INF/services, and add JMeter-Skip-Class-Scanning=true manifest attribute so JMeter can skip classfile scanning 2025-09-10 10:28:38,425 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*) 2025-09-10 10:28:38,479 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : 线程组 2025-09-10 10:28:38,479 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group 线程组. 2025-09-10 10:28:38,479 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error 2025-09-10 10:28:38,480 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false 2025-09-10 10:28:38,482 INFO o.a.j.t.ThreadGroup: Started thread group number 1 2025-09-10 10:28:38,482 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started 2025-09-10 10:28:38,484 INFO o.a.j.t.JMeterThread: Thread started: 线程组 1-1 2025-09-10 10:28:38,487 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps are START times 2025-09-10 10:28:38,487 INFO o.a.j.s.SampleResult: sampleresult.default.encoding is set to UTF-8 2025-09-10 10:28:38,487 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true 2025-09-10 10:28:38,487 INFO o.a.j.s.SampleResult: sampleresult.nanoThreadSleep=5000 2025-09-10 10:28:39,506 INFO o.a.j.t.JMeterThread: Thread is done: 线程组 1-1 2025-09-10 10:28:39,506 INFO o.a.j.t.JMeterThread: Thread finished: 线程组 1-1 2025-09-10 10:28:39,507 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test 2025-09-10 10:28:39,507 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*) 2025-09-10 10:29:26,611 INFO o.a.j.e.StandardJMeterEngine: Running the test! 2025-09-10 10:29:26,611 INFO o.a.j.s.SampleEvent: List of sample_variables: [] 2025-09-10 10:29:26,612 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*) 2025-09-10 10:29:26,686 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : 线程组 2025-09-10 10:29:26,686 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group 线程组. 2025-09-10 10:29:26,686 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error 2025-09-10 10:29:26,686 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false 2025-09-10 10:29:26,686 INFO o.a.j.t.ThreadGroup: Started thread group number 1 2025-09-10 10:29:26,686 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started 2025-09-10 10:29:26,687 INFO o.a.j.t.JMeterThread: Thread started: 线程组 1-1 2025-09-10 10:29:27,689 INFO o.a.j.t.JMeterThread: Thread is done: 线程组 1-1 2025-09-10 10:29:27,690 INFO o.a.j.t.JMeterThread: Thread finished: 线程组 1-1 2025-09-10 10:29:27,690 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test 2025-09-10 10:29:27,690 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)
最新发布
09-11
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值