在JMeter 2.11中从JMeter 2.7打开JMX文件时发生转换错误

iyzzxitl  于 12个月前  发布在  其他
关注(0)|答案(7)|浏览(156)

我试图打开在最新版本Apache JMeter 2.11中使用Apache JMeter 2.7编写的jmx文件。我收到此错误日志:

2014/09/10 09:29:44 INFO  - jmeter.gui.action.Load: Loading file: C:\Temp\MEGA\Test_Anywhere_750 _Part3.jmx 
2014/09/10 09:29:44 INFO  - jmeter.services.FileServer: Set new base='C:\Temp\MEGA' 
2014/09/10 09:29:44 WARN  - jmeter.config.CSVDataSet: Could not translate shareMode=Toutes les unités using Locale:  
2014/09/10 09:29:44 WARN  - jmeter.config.CSVDataSet: Could not translate shareMode=Toutes les unités using Locale:  
2014/09/10 09:29:46 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: kg.apc.jmeter.vizualizers.CorrectedResultCollector : kg.apc.jmeter.vizualizers.CorrectedResultCollector
---- Debugging information ----
message             : kg.apc.jmeter.vizualizers.CorrectedResultCollector
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : kg.apc.jmeter.vizualizers.CorrectedResultCollector
class               : org.apache.jorphan.collections.ListedHashTree
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree[3]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number         : 92330
------------------------------- : kg.apc.jmeter.vizualizers.CorrectedResultCollector : kg.apc.jmeter.vizualizers.CorrectedResultCollector
---- Debugging information ----
message             : kg.apc.jmeter.vizualizers.CorrectedResultCollector
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : kg.apc.jmeter.vizualizers.CorrectedResultCollector
class               : org.apache.jorphan.collections.ListedHashTree
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree[3]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number         : 92330
-------------------------------
message             : kg.apc.jmeter.vizualizers.CorrectedResultCollector : kg.apc.jmeter.vizualizers.CorrectedResultCollector
---- Debugging information ----
message             : kg.apc.jmeter.vizualizers.CorrectedResultCollector
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : kg.apc.jmeter.vizualizers.CorrectedResultCollector
class               : org.apache.jorphan.collections.ListedHashTree
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree[3]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number         : 92330
-------------------------------
cause-exception     : com.thoughtworks.xstream.converters.ConversionException
cause-message       : kg.apc.jmeter.vizualizers.CorrectedResultCollector : kg.apc.jmeter.vizualizers.CorrectedResultCollector
first-jmeter-class  : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:65)
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[3]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number         : 92330
version             : 2.11 r1554548
------------------------------- 
2014/09/10 09:29:46 WARN  - jmeter.gui.action.Load: Unexpected error org.apache.jmeter.exceptions.IllegalUserActionException: Empty TestPlan - see log file
    at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:174)
    at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136)
    at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105)
    at org.apache.jmeter.gui.action.Load.doAction(Load.java:92)
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
    at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
    at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

字符串
我使用的是7.0.650.20版本的JAVA。有人知道为什么我打不开我的文件吗?
问候
西尔维

uinbv5nw

uinbv5nw1#

您正在使用第三方jmeter-plugins.org插件。
您需要在lib/ext中添加所需的jar,以便它工作。
here下载plugins-manager.jar并将其放入lib/ext目录,然后重新启动JMeter。

请注意,每次升级jmeter版本时都需要执行此操作!

如果你想正确地学习jmeter,这个book可以帮助你。

evrscar2

evrscar22#

下载plugins-manager.jar并将其放入lib/ext目录,然后重新启动JMeter。

pkbketx9

pkbketx93#

我正在使用JMeter 3.3,上面的答案对我不起作用。

解决方案:

1.从https://jmeter-plugins.org/downloads/all/下载plugins-manager.jar
1.将plugins-manager.jar放入JMeter/lib/ext
1.重新启动JMeter
1.打开JMX脚本,它会要求下载依赖项,点击Yes, install it. x1c 0d1x
1.将下载安装程序并重新启动JMeter。
Reference

p5fdfcr1

p5fdfcr14#

1)从http://jmeter-plugins.org/#/下载标准JMeterPlugins-Standard-1.4.0.zip
2)解压缩它并进入解压缩的文件夹/lib/ext。
4)将JMeterPlugins-Standard.jar和CMDRunner.jar从/lib/ext复制到Jmeter/lib/ext

s71maibg

s71maibg5#

对于使用命令行运行JMeter的人来说,这里是如何安装新插件的。
将插件管理器jar放在/lib/ext/中后,通过更改版本从该URL下载最新的cmdrunner。

wget http://search.maven.org/remotecontent?filepath=kg/apc/cmdrunner/2.2/cmdrunner-2.2.jar

字符串
将cmdrunner复制到jmeter/lib/目录

mv cmdrunner-2.2.jar apache-jmeter-5.1.1/lib/


执行以下命令生成脚本文件PluginsManagerCMD

java -cp apache-jmeter-5.1.1/lib/ext/jmeter-plugins-manager-1.3.jar org.jmeterplugins.repository.PluginManagerCMDInstaller


脚本生成后,您可以使用它来安装特定的插件

apache-jmeter-5.1.1/bin/PluginsManagerCMD.sh status
apache-jmeter-5.1.1/bin/PluginsManagerCMD.sh available
apache-jmeter-5.1.1/bin/PluginsManagerCMD.sh install jpgc-tst=2.5

ljsrvy3e

ljsrvy3e6#

1.从https://jmeter-plugins.org/downloads/file/JMeterPlugins-Standard-1.4.0.zip下载jar文件
1.解压并复制lib/etx/*.jar到jmeter/lib/etx/

c9qzyr3d

c9qzyr3d7#

如果你在代理服务器后面,请确保你已经配置了代理服务器。
我在lib\ext中有plugins-manager.jar,但只有在我将代理添加到bin\system.properties时才能工作:

http.proxyHost=my.proxy.server
https.proxyHost=my.proxy.server
http.proxyPort=8080
https.proxyPort=8080

字符串
或者:

jmeter -H my.proxy.server -P 8000 -u username -a password


https://jmeter.apache.org/usermanual/get-started.html#proxy_server

相关问题