jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harold Neal <Hn...@npr.org>
Subject NullPointerException when using UserParameters
Date Wed, 29 Sep 2004 19:54:57 GMT
I'm trying to used JMeter 2.0.1 to do a load test that includes the
UserParameters element to parameterize my HTTP requests.   I often
experience the following exception:
 
java.lang.NullPointerException
        at
org.apache.jmeter.modifiers.UserParameters.setValues(UserParameters.java:160
)
        at
org.apache.jmeter.modifiers.UserParameters.iterationStart(UserParameters.jav
a:176)
        at
org.apache.jmeter.control.GenericController.fireIterationStart(GenericContro
ller.java:273)
        at
org.apache.jmeter.control.GenericController.fireIterEvents(GenericController
.java:261)
        at
org.apache.jmeter.control.GenericController.next(GenericController.java:89)
        at org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:102)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:239)
        at java.lang.Thread.run(Thread.java:534)

With a small number of threads, the error doesn't occur, but it becomes more
prevalant as I increase the number of threads.
 
I am running in non-gui mode
jmeter -n -t Test1.jmx -l Test1.jtl
 
Has anyone run into this and/or have a solution?
 
Here is my test file:
 
<?xml version="1.0" encoding="UTF-8"?>
<node>
<testelement class="org.apache.jmeter.testelement.TestPlan">
<testelement class="org.apache.jmeter.config.Arguments"
name="TestPlan.user_defined_variables">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.config.gui.ArgumentsPanel</pr
operty>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.config.Arguments</property>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="Arguments.arguments"/>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">User Defined Variables</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
</testelement>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.control.gui.TestPlanGui</prop
erty>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestPlan.serialize_threadgroups">false</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.testelement.TestPlan</proper
ty>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">Test Plan</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestPlan.functional_mode">false</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestPlan.comments"/>
</testelement>
<node>
<testelement class="org.apache.jmeter.threads.ThreadGroup">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.LongProperty"
name="ThreadGroup.start_time">1096374299000</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.threads.ThreadGroup</propert
y>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="ThreadGroup.delay"/>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="ThreadGroup.duration"/>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="ThreadGroup.num_threads">200</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="ThreadGroup.scheduler">false</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.threads.gui.ThreadGroupGui</p
roperty>
<testelement class="org.apache.jmeter.control.LoopController"
name="ThreadGroup.main_controller">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.control.gui.LoopControlPanel<
/property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="LoopController.loops">5</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.control.LoopController</prop
erty>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">Loop Controller</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="LoopController.continue_forever">false</property>
</testelement>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">Thread Group</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.LongProperty"
name="ThreadGroup.end_time">1096374299000</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="ThreadGroup.on_sample_error">continue</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="ThreadGroup.ramp_time">120</property>
</testelement>
<node>
<testelement class="org.apache.jmeter.modifiers.UserParameters">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.modifiers.gui.UserParametersG
ui</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.modifiers.UserParameters</pr
operty>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="UserParameters.names">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="SID">SID</property>
</collection>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">User Parameters</property>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="UserParameters.thread_values">
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="1271119604">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="3505009">3505009</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="417770718">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1702023">1702023</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="415835226">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1700922">1700922</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="-1541635480">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1567555">1567555</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="1543300242">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1814793">1814793</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="1614503388">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1835436">1835436</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="416639952">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1701036">1701036</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="-1452212860">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1975374">1975374</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="263526886">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="3042000">3042000</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="-594898060">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="927286">927286</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="1331221500">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="3908150">3908150</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="1720921514">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1866475">1866475</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="489129474">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1723149">1723149</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="-530229584">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="942641">942641</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="374783312">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="3840591">3840591</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="-1633386942">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1920203">1920203</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="-669910958">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1602680">1602680</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="-1434050982">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1599678">1599678</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="-528111540">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="944241">944241</property>
</collection>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="395405938">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="1311999">1311999</property>
</collection>
</collection>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="UserParameters.per_iteration">true</property>
</testelement>
</node>
<node>
<testelement class="org.apache.jmeter.control.GenericController">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.control.gui.LogicControllerGu
i</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.control.GenericController</p
roperty>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">Simple Controller</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
</testelement>
<node>
<testelement class="org.apache.jmeter.timers.GaussianRandomTimer">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.timers.gui.GaussianRandomTime
rGui</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.timers.GaussianRandomTimer</
property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">Gaussian Random Timer</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="ConstantTimer.delay">15000</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="RandomTimer.range">60000</property>
</testelement>
</node>
<node>
<testelement class="org.apache.jmeter.protocol.http.sampler.HTTPSampler">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="HTTPSampler.path">/templates/story/story.php</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.protocol.http.sampler.HTTPSa
mpler</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="HTTPSampler.method">GET</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="HTTPSampler.use_keepalive">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="HTTPSampler.protocol">http</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="HTTPSampler.image_parser">false</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="HTTPSampler.follow_redirects">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="HTTPSampler.port">80</property>
<testelement class="org.apache.jmeter.config.Arguments"
name="HTTPsampler.Arguments">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.protocol.http.gui.HTTPArgumen
tsPanel</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.config.Arguments</property>
<collection class="java.util.LinkedList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="Arguments.arguments">
<testelement class="org.apache.jmeter.protocol.http.util.HTTPArgument"
name="">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="Argument.metadata">=</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="Argument.value">${SID}</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="HTTPArgument.use_equals">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="Argument.name">storyId</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="HTTPArgument.always_encode">false</property>
</testelement>
</collection>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">User Defined Variables</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
</testelement>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="HTTPSampler.mimetype"/>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.protocol.http.control.gui.Htt
pTestSampleGui</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="HTTPSampler.FILE_FIELD"/>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">HTTP Request [${SID}]</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="HTTPSampler.monitor">false</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="HTTPSampler.domain">OMITTED</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="HTTPSampler.FILE_NAME"/>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="HTTPSampler.auto_redirects">false</property>
</testelement>
<node>
<testelement class="org.apache.jmeter.assertions.ResponseAssertion">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.assertions.gui.AssertionGui</
property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.assertions.ResponseAssertion
</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">Response Assertion</property>
<collection class="java.util.ArrayList"
propType="org.apache.jmeter.testelement.property.CollectionProperty"
name="Asserion.test_strings">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="SLT4929">SLT4929</property>
</collection>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="Assertion.test_field">Assertion.response_data</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.IntegerProperty"
name="Assertion.test_type">2</property>
</testelement>
</node>
<node>
<testelement class="org.apache.jmeter.reporters.ResultCollector">
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.gui_class">org.apache.jmeter.visualizers.SimpleDataWriter<
/property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.test_class">org.apache.jmeter.reporters.ResultCollector</p
roperty>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="TestElement.name">Simple Data Writer</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="TestElement.enabled">true</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="filename"/>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.BooleanProperty"
name="ResultCollector.error_logging">false</property>
</testelement>
</node>
</node>
</node>
</node>
</node>

 
 
 
Harold Neal,  Online Programmer, NPR Online
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message