https://bz.apache.org/bugzilla/show_bug.cgi?id=63858
Bug ID: 63858
Summary: DNS Cache Manager - Static Host Table in distributed
mode
Product: JMeter
Version: 5.1.1
Hardware: Macintosh
OS: Mac OS X 10.1
Status: NEW
Severity: major
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: JMETER_5.2
We are using jmeter in distributed mode.
We put on the script a DNS Cache Manager on the test plan root, configured with
"Clear cache each iteration" flagged, "Use custom DNS resolver" ON, Static host
table with one entry like hostname - ip address. All the HTTP sampler use
HTTPClient4 implementation and https as protocol.
On the first run all seems working well, but is we canche the hostname on the
Static host table, save the script and do a second run, we have the following
error on the http sampler view result tree:
java.lang.NullPointerException
at
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:115)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$JMeterDefaultHttpClientConnectionOperator.connect(HTTPHC4Impl.java:336)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:374)
at
org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:843)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:574)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:67)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1231)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1220)
at
org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:622)
at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:546)
at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:486)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)
at java.lang.Thread.run(Thread.java:748)
It seems like the new hostname is not correctly set on the jmeter slave.
--
You are receiving this mail because:
You are the assignee for the bug.