You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by lmaddi <la...@gmail.com> on 2009/04/24 21:39:21 UTC

Re: JMeter Ant Newbie Question

Hi, 

Were you able to find solution to your problem, I am using Maven JMeter
Plugin and when I run a web service test plan I get the same error you
mentioned 

Error in NonGUIDriver
com.thoughtworks.xstream.converters.ConversionException: WebserviceSampler :
WebserviceSampler
---- Debugging information ----
required-type       : org.apache.jorphan.collections.ListedHashTree 
cause-message       : WebserviceSampler : WebserviceSampler 
class               : org.apache.jmeter.save.ScriptWrapper 
message             : WebserviceSampler : WebserviceSampler 
line number         : 34 
path                :
/jmeterTestPlan/hashTree/hashTree/hashTree/hashTree/WebserviceSampler 
cause-exception     :
com.thoughtworks.xstream.alias.CannotResolveClassException 

I changed the jmeter properties file to include this in the
jmeter.properties file
jmeter.save.saveservice.assertion_results=all
Set the JVM Args as mentioned in the thread, but still the same
When I debug the code, it fails at JMeter start method

Any help would be greatly appreciated. 

Thanks!


zw wrote:
> 
> Hi
> 
> I've spend time reading articles to get Jmeter to work with Ant.
> But I'm getting into many errors and need you help to make progress.
> 
> PS C:\> ant -buildfile APMRun_main.xml jmeter_main
> Buildfile: APMRun_main.xml
> jmeter_main:
>      [echo]  basedir is C:\
>    [jmeter] Executing test plan: C:\test_cases\DD_RD_SimSwap.jmx ==>
> C:\test_cases\DD_RD_SimSwap.jtl
>    [jmeter] Error in NonGUIDriver
> com.thoughtworks.xstream.converters.ConversionException: WebServiceSampler
> :
> WebServic
> eSampler
>    [jmeter] ---- Debugging information ----
>    [jmeter] message             : WebServiceSampler : WebServiceSampler
>    [jmeter] line number         : 48
>    [jmeter] path                :
> /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree/WebServiceSampler
>    [jmeter] cause-message       : WebServiceSampler : WebServiceSampler
>    [jmeter] class               : org.apache.jmeter.save.ScriptWrapper
>    [jmeter] cause-exception     :
> com.thoughtworks.xstream.alias.CannotResolveClassException
>    [jmeter] required-type       :
> org.apache.jorphan.collections.ListedHashTree
>    [jmeter] -------------------------------
> BUILD FAILED
> C:\APMRun_main.xml:485: Could not read jmeter resultLog:
> C:\DD_RD_SimSwap.jtl (The system cannot find the file specified)
> Total time: 1 second
> 
> My Ant script
> 
> 
> <jmeter jmeterhome="C:\jakarta-jmeter-2.1rc1"
> 
> testplan="${basedir}\test_cases\DD_RD_SimSwap.jmx"
> 
> resultlog="${basedir}\test_cases\DD_RD_SimSwap.jtl"
> 
> runremote="true"
> 
> failureproperty="fail_jmx">
> 
> <property name="remote_hosts" value="lin2,lin5" />
> 
> <property name="jmeter.save.saveservice.assertion_results" value="all" />
> 
> <!-- jvmarg value="-Xms128m -Xmx258m"/>
> 
> <jvmarg value="-XX:NewSize=128m -XX:MaxNewSize=128m"/>
> 
> <jvmarg value="-XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=50"/>
> 
> <jvmarg value="-XX:MaxTenuringThreshold=2"/>
> 
> <jvmarg value="-XX:MaxLiveObjectEvacuationRatio=20"/>
> 
> <jvmarg value="-Dsun.rmi.dgc.client.gcInterval=600000 -
> Dsun.rmi.dgc.server.gcInterval=600000"/>
> 
> <jvmarg value="-XX:PermSize=64m -XX:MaxPermSize=64m"/-->
> 
> </jmeter>
> 
> <xslt in="${basedir}\test_cases\DD_RD_SimSwap.jtl"
> 
> out="${basedir}\test_cases\DD_RD_SimSwap.html"
> 
> style="${basedir}\test_cases\DD_RD_SimSwap.xsl"/>
> 
> The jvm were commented because ant complains that
> 
>    [jmeter] Could not create the Java virtual machine.
>    [jmeter] Invalid initial heap size: -Xms128m -Xmx258m
> 
> Q1 - Why can't jmeter task accept those values ? Or is it a semantic error
> ant doesn't understand ?
> 
> Q2 - I need help to figure out what those errors are. Any help is greatly
> appreciated.
> 
> 
> 
> Thanks
> 
> 

-- 
View this message in context: http://www.nabble.com/JMeter-Ant-Newbie-Question-tp15712457p23223467.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org