Summary: | 304 responses not appearing in listeners | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Chris Newell <cnewell> |
Component: | HTTP | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Chris Newell
2004-04-28 15:40:30 UTC
it occured to me that I should have included the fact that I'm using Sun's j2sdk1.4.2_03 Was the HTTP sampler set to follow redirects? Were there any error messages in the jmeter.log file? I guess the answer to both of these is yes - it looks as though JMeter tries to interpret the 304 message as a redirect, but fails when it cannot interpret the response: 2004/12/18 12:48:00 ERROR - jmeter.threads.JMeterThread: java.lang.NullPointerException at org.apache.oro.text.regex.Util.substitute(Unknown Source) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.encodeSpaces(HTTPSamplerBase.java:697) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.followRedirects(HTTPSampler.java:626) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:555) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:590) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:578) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:260) at java.lang.Thread.run(Thread.java:534) Obviously, this is a bug which needs to be fixed. In the mean-time, a work-round is to uncheck the "Follow Redirects" option. Fixed in 2.0 branch This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1357 |