https://bz.apache.org/bugzilla/show_bug.cgi?id=58016
Bug ID: 58016
Summary: Error type casting using external SSL Provider
Product: JMeter
Version: 2.13
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Created attachment 32803
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32803&action=edit
Fixed version of JsseSSLManager.java
I am using private SSL Provider for creating TLS connections with GOST cipher
suites. And at the handshake I've got an error. After some examining it came
out that to fix it I need to extend WrappedX509KeyManager class(in
JsseSSLManager class) with X509ExtendedKeyManager instead of implementing
X509KeyManager interface. After fixing it and rebuilding JMeter everything
worked fine. I think this bug could occure in some other situations so I report
it and apply my solution
Here's stacktrace:
java.lang.ClassCastException:
org.apache.jmeter.util.JsseSSLManager$WrappedX509KeyManager cannot be cast to
javax.net.ssl.X509ExtendedKeyManager
at ru.infotecs.tls.g.c(Unknown Source)
at ru.infotecs.tls.g.a(Unknown Source)
at ru.infotecs.tls.B.c(Unknown Source)
at ru.infotecs.tls.G.f(Unknown Source)
at ru.infotecs.tls.G.startHandshake(Unknown Source)
at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:436)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at
org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:107)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:517)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:331)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)
at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
at java.lang.Thread.run(Thread.java:745)
--
You are receiving this mail because:
You are the assignee for the bug.