can't run any script which recorded by JMeter
See original GitHub issueHi,Dev team
I have got a problem, and I don’t how to resolve this problem,below is the details:
I can run a script which recorded by badboy, but I can’t run any script which recorded by JMeter, so that I can’t get the result ***.jtl file, below is the log file, can you help to look into this issue?It’s very urgent…Thanks!!!
2013/06/07 14:16:38 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US 2013/06/07 14:16:38 INFO - jmeter.JMeter: Loading user properties from: C:\Users\kxu\Downloads\workspace\jmeter-maven-plugin-project\helloworld\target\jmeter\bin\user.properties 2013/06/07 14:16:38 INFO - jmeter.JMeter: Loading system properties from: C:\Users\kxu\Downloads\workspace\jmeter-maven-plugin-project\helloworld\target\jmeter\bin\system.properties 2013/06/07 14:16:38 INFO - jmeter.JMeter: Copyright © 1998-2013 The Apache Software Foundation 2013/06/07 14:16:38 INFO - jmeter.JMeter: Version 2.9 r1437961 2013/06/07 14:16:38 INFO - jmeter.JMeter: java.version=1.7.0_21 2013/06/07 14:16:38 INFO - jmeter.JMeter: java.vm.name=Java HotSpot™ 64-Bit Server VM 2013/06/07 14:16:38 INFO - jmeter.JMeter: os.name=Windows 7 2013/06/07 14:16:38 INFO - jmeter.JMeter: os.arch=amd64 2013/06/07 14:16:38 INFO - jmeter.JMeter: os.version=6.1 2013/06/07 14:16:38 INFO - jmeter.JMeter: file.encoding=Cp1252 2013/06/07 14:16:38 INFO - jmeter.JMeter: Default Locale=English (United States) 2013/06/07 14:16:38 INFO - jmeter.JMeter: JMeter Locale=English (United States) 2013/06/07 14:16:38 INFO - jmeter.JMeter: JMeterHome=C:\Users\kxu\Downloads\workspace\jmeter-maven-plugin-project\helloworld\target\jmeter 2013/06/07 14:16:38 INFO - jmeter.JMeter: user.dir =C:\Users\kxu\Downloads\workspace\jmeter-maven-plugin-project\helloworld\target\jmeter\bin 2013/06/07 14:16:38 INFO - jmeter.JMeter: PWD =C:\Users\kxu\Downloads\workspace\jmeter-maven-plugin-project\helloworld\target\jmeter\bin 2013/06/07 14:16:38 INFO - jmeter.JMeter: IP: 10.254.202.85 Name: HA7VDI0JPI0162 FullName: HA7VDI0JPI0162.hbo.homebox.com 2013/06/07 14:16:38 INFO - jmeter.services.FileServer: Default base=‘C:\Users\kxu\Downloads\workspace\jmeter-maven-plugin-project\helloworld\target\jmeter\bin’ 2013/06/07 14:16:38 INFO - jmeter.services.FileServer: Set new base=‘C:\Users\kxu\Downloads\workspace\jmeter-maven-plugin-project\helloworld\src\test\jmeter’ 2013/06/07 14:16:38 INFO - jmeter.JMeter: Loading file: C:\Users\kxu\Downloads\workspace\jmeter-maven-plugin-project\helloworld\src\test\jmeter\test.jmx 2013/06/07 14:16:38 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 2013/06/07 14:16:38 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 2013/06/07 14:16:38 INFO - jmeter.save.SaveService: Using SaveService properties file version 1427507 2013/06/07 14:16:38 INFO - jmeter.save.SaveService: Using SaveService properties version 2.4 2013/06/07 14:16:38 INFO - jmeter.save.SaveService: All converter versions present and correct 2013/06/07 14:16:38 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: org.apache.jmeter.protocol.ssh.sampler.SSHSampler : org.apache.jmeter.protocol.ssh.sampler.SSHSampler ---- Debugging information ---- message : org.apache.jmeter.protocol.ssh.sampler.SSHSampler cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : org.apache.jmeter.protocol.ssh.sampler.SSHSampler 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/org.apache.jmeter.protocol.ssh.sampler.SSHSampler line number : 29 ------------------------------- : org.apache.jmeter.protocol.ssh.sampler.SSHSampler : org.apache.jmeter.protocol.ssh.sampler.SSHSampler ---- Debugging information ---- message : org.apache.jmeter.protocol.ssh.sampler.SSHSampler cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : org.apache.jmeter.protocol.ssh.sampler.SSHSampler 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/org.apache.jmeter.protocol.ssh.sampler.SSHSampler
line number : 29
message : org.apache.jmeter.protocol.ssh.sampler.SSHSampler : org.apache.jmeter.protocol.ssh.sampler.SSHSampler ---- Debugging information ---- message : org.apache.jmeter.protocol.ssh.sampler.SSHSampler cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : org.apache.jmeter.protocol.ssh.sampler.SSHSampler 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/org.apache.jmeter.protocol.ssh.sampler.SSHSampler
line number : 29
cause-exception : com.thoughtworks.xstream.converters.ConversionException cause-message : org.apache.jmeter.protocol.ssh.sampler.SSHSampler : org.apache.jmeter.protocol.ssh.sampler.SSHSampler 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/org.apache.jmeter.protocol.ssh.sampler.SSHSampler line number : 29
version : 2.9 r1437961
2013/06/07 14:16:38 ERROR - jmeter.JMeter: Error in NonGUIDriver java.lang.NullPointerException at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:93) at org.apache.jmeter.JMeter.runNonGui(JMeter.java:746) at org.apache.jmeter.JMeter.startNonGui(JMeter.java:724) at org.apache.jmeter.JMeter.start(JMeter.java:388) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.jmeter.NewDriver.main(NewDriver.java:218) at com.lazerycode.jmeter.testrunner.TestManager.executeSingleTest(TestManager.java:92) at com.lazerycode.jmeter.testrunner.TestManager.executeTests(TestManager.java:60) at com.lazerycode.jmeter.JMeterMojo.execute(JMeterMojo.java:50) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
The actual script is below:
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.4" jmeter="2.9 r1437961">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="TestPlan.user_define_classpath"></stringProp>
</TestPlan>
<hashTree>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">1</stringProp>
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
<longProp name="ThreadGroup.start_time">1368700190000</longProp>
<longProp name="ThreadGroup.end_time">1368700190000</longProp>
<boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration"></stringProp>
<stringProp name="ThreadGroup.delay"></stringProp>
</ThreadGroup>
<hashTree>
<org.apache.jmeter.protocol.ssh.sampler.SSHSampler guiclass="TestBeanGUI" testclass="org.apache.jmeter.protocol.ssh.sampler.SSHSampler" testname="SSH Command" enabled="true">
<stringProp name="hostname">nyctjbapp01d</stringProp>
<intProp name="port">22</intProp>
<stringProp name="username">jboss</stringProp>
<stringProp name="password">hbo123</stringProp>
<stringProp name="command">cd /home/jboss/hbolag/messageConsumption/HBO_LA/processed; rm meta-HBO_LA-017870.xml</stringProp>
</org.apache.jmeter.protocol.ssh.sampler.SSHSampler>
<hashTree/>
<JDBCSampler guiclass="TestBeanGUI" testclass="JDBCSampler" testname="JDBC Request" enabled="true">
<stringProp name="dataSource">Oracle</stringProp>
<stringProp name="query">select jobinstance_tkey, launched_by, launched_time,finished_time from ESP.jobinstance where finished_time like '%28-MAY-13%'</stringProp>
<stringProp name="queryArguments"></stringProp>
<stringProp name="queryArgumentsTypes"></stringProp>
<stringProp name="queryType">Select Statement</stringProp>
<stringProp name="resultVariable"></stringProp>
<stringProp name="variableNames"></stringProp>
</JDBCSampler>
<hashTree/>
<JDBCDataSource guiclass="TestBeanGUI" testclass="JDBCDataSource" testname="JDBC Connection Configuration" enabled="true">
<boolProp name="autocommit">true</boolProp>
<stringProp name="checkQuery">Select 1</stringProp>
<stringProp name="connectionAge">5000</stringProp>
<stringProp name="dataSource">Oracle</stringProp>
<stringProp name="dbUrl">jdbc:oracle:thin:@//cigod.homebox.com:1521/cigod</stringProp>
<stringProp name="driver">oracle.jdbc.driver.OracleDriver</stringProp>
<boolProp name="keepAlive">true</boolProp>
<stringProp name="password">espuserdev01</stringProp>
<stringProp name="poolMax">10</stringProp>
<stringProp name="timeout">10000</stringProp>
<stringProp name="transactionIsolation">DEFAULT</stringProp>
<stringProp name="trimInterval">60000</stringProp>
<stringProp name="username">ESP_USER</stringProp>
</JDBCDataSource>
<hashTree/>
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>false</xml>
<fieldNames>false</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
</value>
</objProp>
<stringProp name="filename"></stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="GraphVisualizer" testclass="ResultCollector" testname="Graph Results" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>false</xml>
<fieldNames>false</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
</value>
</objProp>
<stringProp name="filename"></stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="Aggregate Report" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>false</xml>
<fieldNames>false</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
</value>
</objProp>
<stringProp name="filename"></stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>false</xml>
<fieldNames>false</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
</value>
</objProp>
<stringProp name="filename"></stringProp>
</ResultCollector>
<hashTree/>
<ResultSaver guiclass="ResultSaverGui" testclass="ResultSaver" testname="保存响应到文件" enabled="true">
<stringProp name="TestPlan.comments">resopnse data</stringProp>
<stringProp name="FileSaver.filename">ResponseData</stringProp>
<boolProp name="FileSaver.errorsonly">false</boolProp>
<boolProp name="FileSaver.skipautonumber">false</boolProp>
<boolProp name="FileSaver.skipsuffix">false</boolProp>
<boolProp name="FileSaver.successonly">false</boolProp>
<boolProp name="FileSaver.addTimstamp">true</boolProp>
<stringProp name="FileSaver.variablename">response</stringProp>
</ResultSaver>
<hashTree/>
<kg.apc.jmeter.perfmon.PerfMonCollector guiclass="kg.apc.jmeter.vizualizers.PerfMonGui" testclass="kg.apc.jmeter.perfmon.PerfMonCollector" testname="jp@gc - PerfMon Metrics Collector" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>false</xml>
<fieldNames>false</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
</value>
</objProp>
<stringProp name="filename"></stringProp>
<longProp name="interval_grouping">1000</longProp>
<boolProp name="graph_aggregated">false</boolProp>
<stringProp name="include_sample_labels"></stringProp>
<stringProp name="exclude_sample_labels"></stringProp>
<collectionProp name="metricConnections">
<collectionProp name="-1951821670">
<stringProp name="1159322486">nyctjbapp01d</stringProp>
<stringProp name="1600768">4444</stringProp>
<stringProp name="66952">CPU</stringProp>
<stringProp name="0"></stringProp>
</collectionProp>
<collectionProp name="42431305">
<stringProp name="1159322486">nyctjbapp01d</stringProp>
<stringProp name="1600768">4444</stringProp>
<stringProp name="-1993889503">Memory</stringProp>
<stringProp name="0"></stringProp>
</collectionProp>
<collectionProp name="154771321">
<stringProp name="1159322486">nyctjbapp01d</stringProp>
<stringProp name="1600768">4444</stringProp>
<stringProp name="-274342153">Network I/O</stringProp>
<stringProp name="0"></stringProp>
</collectionProp>
<collectionProp name="1931440556">
<stringProp name="1159322486">nyctjbapp01d</stringProp>
<stringProp name="1600768">4444</stringProp>
<stringProp name="2112896831">Disks I/O</stringProp>
<stringProp name="0"></stringProp>
</collectionProp>
</collectionProp>
</kg.apc.jmeter.perfmon.PerfMonCollector>
<hashTree/>
<ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP请求默认值" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="HTTPSampler.domain">HTTP代理服务器</stringProp>
<stringProp name="HTTPSampler.port">8080</stringProp>
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol">http</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path"></stringProp>
<stringProp name="HTTPSampler.concurrentPool">4</stringProp>
</ConfigTestElement>
<hashTree/>
</hashTree>
</hashTree>
</hashTree>
</jmeterTestPlan>
Issue Analytics
- State:
- Created 10 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
2013/06/07 14:16:38 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: org.apache.jmeter.protocol.ssh.sampler.SSHSampler : org.apache.jmeter.protocol.ssh.sampler.SSHSampler ---- Debugging information ---- message : org.apache.jmeter.protocol.ssh.sampler.SSHSampler cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
the SSHSampler you are using is not part of the JMeter distribution, but a third party project: https://code.google.com/p/jmeter-ssh-sampler/ And therefore can’t be found (hence the “CannotResolveClassException”).
You need to add the Jar as a dependency to the plugin configuration in your POM.xml.
You are suffering from a different problem. Please raise a new defect for new problems, don’t comment on closed ones.
You have not configured your POM correctly, please have a look at: https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Adding Additional Libraries To The Classpath