在Jmeter中run JDBC Request时,收到了Cannot load JDBC driver class \'com.mysql.jdbc.Driver\',在网上搜了一些办法,结合自己的实际情况,找到了以下解决办法:
1.点击这里下载 mysql-connector-java-5.1.47.zip(或者其他版本)
2.解压之后,将mysql-connector-java-5.1.47文件夹下的mysql-connector-java-5.1.47-bin.jar文件放到Jmeter的安装目录\apache-jmeter-5.1.1\lib\ext
3.重启Jmeter
如此,即可解决。
Caused by: com.thoughtworks.xstream.converters.ConversionException: kg.apc.jmeter.vizualizers.CorrectedResultCollector : kg.apc.jmeter.vizualizers.CorrectedResultCollector
---- Debugging information ---
原因:缺少了一个Jar 包;
解决:需要下载一个JAR包导进来,目录D:\Program Files\JMeter\apache-jmeter-3.0\lib\ext中导入文件jmeter-plugins-standard-1.3.0.jar;
下载地址:http://grepcode.com/snapshot/repo1.maven.org/maven2/kg.apc/jmeter-plugins-standard/1.3.0/
Error
Problem loading XMLfrom:\'D:\software\apace-jmeter-3.3\bin\线程组jmx\',
missing class com.thoughtworks.xstream.converters.ConversionException:
--- Debugging information---
cause-exception:com.thoughtworks.xstream.converters.ConversionException
cause-message :
first-jmeter-class:org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
class :org.apache.jmeter.save.ScriptWrapper
required-type :org.apache.jorphan.collections.ListedHashTree
converter-type:org.apache.jmeter.save.ScriptWrapperConverter
path:/jmeterTestPlan/hashTree/hashTree/hashTree/kg.apc.jmeter.vizualizers.CorrectedResultCollector
是因为jmx文件中使用了JMeter的扩展jar包,但是JMeter中却没有相关jar包导致报错。
导入以下jar包即可解决。
jpgc-graphs-basic-2.0.zip
将该文件加压:
jpgc-graphs-basic-2.0.zip
该文件包含:
lib/jmeter-plugins-cmn-jmeter-0.3.jar
lib/ext/jmeter-plugins-graphs-basic-2.0.jar
lib/ext/jmeter-plugins-manager-0.11.jar
复制到JMeter的安装路径下的lib中,重启JMeter,重新打开相应的 jmx 文件即可
jpgc-perfmon-2.1永久下载地址
下载之后,将jpgc-perfmon-2.1.zip解压,jpgc-perfmon-2.1\lib下面的两个jar文件放置到*\apache-jmeter-5.0\lib\下面,jpgc-perfmon-2.1\lib\ext下面的2个jar文件放置到\apache-jmeter-5.0\lib\ext下面。
链接:https://pan.baidu.com/s/1TOhIq3C5rR_e23p9tmSv7Q
提取码:4kwz