It turned out to be due to a BeanShell Sampler doing:
ResponseCode = -1 ;
# r
sebb wrote:
> It seems to be trying to write the ResponseMessage to the result log file.
>
> Perhaps the response message is null.
>
> Can you try temporarily disabling that field in the Listener, and see
> what happens?
>
> Also, what sampler(s) are you using?
> It would be useful to know why the response message is being set to null.
> [If not set, it defaults to the empty string]
>
> S///
> On 05/09/07, Ronan Klyne <[EMAIL PROTECTED]> wrote:
>> 2.3RC4
>>
>> # r
>>
>> sebb wrote:
>>> Which version of JMeter?
>>>
>>> On 05/09/07, Ronan Klyne <[EMAIL PROTECTED]> wrote:
>>>> Hi all,
>>>>
>>>> I am seeing lots of copies of the below NullPointerException in
>>>> jmeter.log, but I can't see which part of the test is breaking...
>>>>
>>>> Can I still trust my test data?
>>>>
>>>> Any ideas what to do about this?
>>>>
>>>> Many thanks,
>>>>
>>>> Ronan
>>>>
>>>> ---- <snip> ----
>>>>
>>>>
>>>> 2007/09/05 11:47:11 ERROR - jmeter.reporters.ResultCollector:
>>>> java.lang.NullPointerException
>>>> at
>>>> com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeText(PrettyPrintWriter.java:115)
>>>> at
>>>> com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeAttributeValue(PrettyPrintWriter.java:107)
>>>> at
>>>> com.thoughtworks.xstream.io.xml.PrettyPrintWriter.addAttribute(PrettyPrintWriter.java:102)
>>>> at
>>>> com.thoughtworks.xstream.io.WriterWrapper.addAttribute(WriterWrapper.java:30)
>>>> at
>>>> org.apache.jmeter.save.converters.SampleResultConverter.setAttributes(SampleResultConverter.java:242)
>>>> at
>>>> org.apache.jmeter.protocol.http.util.HTTPResultConverter.marshal(HTTPResultConverter.java:77)
>>>> at
>>>> com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:55)
>>>> at
>>>> com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:50)
>>>> at
>>>> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:52)
>>>> at
>>>> org.apache.jmeter.save.converters.SampleResultConverter.saveSubResults(SampleResultConverter.java:200)
>>>> at
>>>> org.apache.jmeter.protocol.http.util.HTTPResultConverter.marshal(HTTPResultConverter.java:79)
>>>> at
>>>> com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:55)
>>>> at
>>>> com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:50)
>>>> at
>>>> com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:73)
>>>> at
>>>> com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.marshal(ReferenceByXPathMarshallingStrategy.java:34)
>>>> at com.thoughtworks.xstream.XStream.marshal(XStream.java:751)
>>>> at com.thoughtworks.xstream.XStream.marshal(XStream.java:740)
>>>> at com.thoughtworks.xstream.XStream.toXML(XStream.java:721)
>>>> at
>>>> org.apache.jmeter.save.SaveService.saveSampleResult(SaveService.java:303)
>>>> at
>>>> org.apache.jmeter.reporters.ResultCollector.recordResult(ResultCollector.java:438)
>>>> at
>>>> org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:416)
>>>> at
>>>> org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:240)
>>>> at
>>>> org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:572)
>>>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:309)
>>>> at java.lang.Thread.run(Unknown Source)
>>>>
>>>>
>>>> --
>>>> Ronan Klyne
>>>> Business Collaborator Developer
>>>> Tel: +44 (0)870 163 2555
>>>> [EMAIL PROTECTED]
>>>> www.groupbc.com
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> --
>> Ronan Klyne
>> Business Collaborator Developer
>> Tel: +44 (0)870 163 2555
>> [EMAIL PROTECTED]
>> www.groupbc.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Ronan Klyne
Business Collaborator Developer
Tel: +44 (0)870 163 2555
[EMAIL PROTECTED]
www.groupbc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]