I tried a test with 404s and that worked fine. Can you send me an example privately? I'll need jmeter.properties too.
On 01/03/07, Hugh Hunter <[EMAIL PROTECTED]> wrote:
Very simple test, using the HTTP Sampler -----Original Message----- From: sebb [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 12:04 PM To: JMeter Users List Subject: Re: Null Pointer Exception in jmeter.log when running ant task 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 <[EMAIL PROTECTED]> 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(PrettyPrin > tW > riter.java:89) > at > com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeAttributeValue( > Pr > ettyPrintWriter.java:81) > at > com.thoughtworks.xstream.io.xml.PrettyPrintWriter.addAttribute(PrettyP > ri > ntWriter.java:76) > at > com.thoughtworks.xstream.io.WriterWrapper.addAttribute(WriterWrapper.j > av > a:25) > at > org.apache.jmeter.save.converters.SampleResultConverter.setAttributes( > Sa > mpleResultConverter.java:244) > at > org.apache.jmeter.protocol.http.util.HTTPResultConverter.marshal(HTTPR > es > ultConverter.java:76) > at > com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnothe > r( > ReferenceByXPathMarshaller.java:36) > at > com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java > :4 > 6) > at > com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.mars > ha > 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:2 > 36 > ) > at > org.apache.jmeter.reporters.ResultCollector.recordResult(ResultCollect > or > .java:427) > at > org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultColle > ct > or.java:405) > at > org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNot > if > ier.java:239) > at > org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.ja > va > :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: [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

