You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2004/10/27 19:02:01 UTC
DO NOT REPLY [Bug 31921] New: -
HTTPHeaders don't work in HttpSampler2
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31921>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31921
HTTPHeaders don't work in HttpSampler2
Summary: HTTPHeaders don't work in HttpSampler2
Product: JMeter
Version: Nightly (Please specify date)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: HTTP
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: ben.derouet@laposte.net
In 2004/10/26 Nightly build (and in 2.0.1) when using the new HttpSampler2 with
an HttpHeaderManager the request fails with:
ERROR - jmeter.threads.JMeterThread: java.lang.ClassCastException:
org.apache.jmeter.protocol.http.control.Header
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler2.setConnectionHeaders(HTTPSampler2.java:373)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler2.setupConnection(HTTPSampler2.java:255)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.java:469)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:582)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:569)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:260)
at java.lang.Thread.run(Unknown Source)
In setConnectionHeaders the sampler2 cast the headers from the headerManager in
org.apache.commons.httpclient.Header
But the HeaderManager Headers are: org.apache.jmeter.protocol.http.control.Header
Using org.apache.jmeter.protocol.http.control.Header in HttpSampler2 works for us.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org