New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First HTTP sampling fails with "HTTPS hostname wrong: should be <localhost>" #1279
Comments
Sonam Chauhan (migrated from Bugzilla):
|
Sonam Chauhan (migrated from Bugzilla): We normally use expired certs on our test servers (which are the only servers I then tested JMeter against two test servers with expired digital Note, to replicate this problem, you need to restart JMeter between two HTTPS I did not test with self-issued certificates. |
Sonam Chauhan (migrated from Bugzilla): The error message in JMeter 2.2.1 is now accurate, and all HTTPS connections EXCEPTION MESSAGEjavax.net.ssl.SSLHandshakeException: |
Sebb (migrated from Bugzilla):
I presume this means 2.1.1 ? 2.2.1 does not exist (yet) |
Sebb (migrated from Bugzilla): |
Sonam Chauhan (migrated from Bugzilla): |
Sebb (migrated from Bugzilla): |
Dan Keeley (migrated from Bugzilla): |
Jordi Salvat i Alabart (Bug 25505):
On (at least) JDK 1.4.0 and 1.4.2_02, both on current CVS and 1.9.1, the first
HTTPS sample run after starting JMeter always fails. Subsequent samples work
properly.
[Workaround: create a stupid sample at the very beginning of your test]
Errors thrown:
ERROR - jmeter.util: Couldn't load keystore java.lang.Exception: No key found
at
org.apache.jmeter.util.keystore.DefaultKeyStore.load(DefaultKeyStore.java:109)
at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:210)
at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:208)
at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:136)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:318)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:584)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:953)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:445)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:277)
at java.lang.Thread.run(Thread.java:534)
and later:
WARN - jmeter.protocol.http.sampler.HTTPSampler: HTTPS hostname wrong: should
be <localhost> java.io.IOException: HTTPS hostname wrong: should be <localhost>
at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(DashoA6275)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.connect(HTTPSampler.java:889)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:961)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:445)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:277)
at java.lang.Thread.run(Thread.java:534)
Votes in Bugzilla: 1
Severity: normal
OS: other
The text was updated successfully, but these errors were encountered: