jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Null Pointer Exception in jmeter.log when running ant task
Date Thu, 01 Mar 2007 20:04:03 GMT
Which Sampler(s) are you using?

As far as I can tell, the code is in the process of saving the response message.

This should never be null.

On 01/03/07, Hugh Hunter <Hugh_Hunter@citysearch.com> wrote:
> I've seen other mentions of this issue but it seems whatever remedies
> people proposed were not sent to the group as a whole.
>
> Before I get started, I'm running jmeter 2.2 on linux with JDK 1.5.10.
>
> Basically, when I run the jmeter ant task, the JTL file only gets
> results written to it in the case of a successful sample.  404 errors
> and 500 errors are not logged, and these samples leave the following
> stack trace in jmeter.log:
>
> 2007/03/01 10:45:36 ERROR - jmeter.reporters.ResultCollector:
> java.lang.NullPointerException
>         at
> com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeText(PrettyPrintW
> riter.java:89)
>         at
> com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeAttributeValue(Pr
> ettyPrintWriter.java:81)
>         at
> com.thoughtworks.xstream.io.xml.PrettyPrintWriter.addAttribute(PrettyPri
> ntWriter.java:76)
>         at
> com.thoughtworks.xstream.io.WriterWrapper.addAttribute(WriterWrapper.jav
> a:25)
>         at
> org.apache.jmeter.save.converters.SampleResultConverter.setAttributes(Sa
> mpleResultConverter.java:244)
>         at
> org.apache.jmeter.protocol.http.util.HTTPResultConverter.marshal(HTTPRes
> ultConverter.java:76)
>         at
> com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnother(
> ReferenceByXPathMarshaller.java:36)
>         at
> com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:4
> 6)
>         at
> com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.marsha
> l(ReferenceByXPathMarshallingStrategy.java:17)
>         at com.thoughtworks.xstream.XStream.marshal(XStream.java:476)
>         at com.thoughtworks.xstream.XStream.marshal(XStream.java:466)
>         at com.thoughtworks.xstream.XStream.toXML(XStream.java:449)
>         at
> org.apache.jmeter.save.SaveService.saveSampleResult(SaveService.java:236
> )
>         at
> org.apache.jmeter.reporters.ResultCollector.recordResult(ResultCollector
> .java:427)
>         at
> org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollect
> or.java:405)
>         at
> org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotif
> ier.java:239)
>         at
> org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java
> :466)
>         at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:595)
>
> Any ideas?
>
> Thanks all,
>
> --hugh
>
> --
>
> Hugh Hunter
> QA Engineer
> P:  310.360.4321   F:  310.360.4449
> E:  hhunter@citysearch.com
>
> Citysearch (an operating business of IAC)
> Leading local search, directory and media company
> 8833 W. Sunset Blvd.
> West Hollywood, CA 90069
> www.citysearch.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Mime
View raw message