I'm getting the following error when attempting to connect over https
using the HttpClient sampler.
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
The Http sampler works fine but freezes on long tests(Hopefully
HttpClient will resolve that issue). I think I need to import a
certificate but all attempts to do this have failed. It seems that a
lot of people are having similar trouble. Can someone walk through an
example of getting a cert from a website and importing it so the
HttpClient sampler will work? See below for more information on the
error message I received.
thanks,
Tim
For this test I downloaded a fresh copy of jmeter 2.1.1. I created a
thread group only containing a results tree and an HTTP Request
HTTPClient with the following configuration. This site is public so you
should be able to duplicate this.
server: www.fnmoc.navy.mil
port: 443
Protocol: https
path: /
**jmeter.log**
2006/05/02 11:26:39 INFO - jmeter.util.JMeterUtils: Setting Locale to
en_US
2006/05/02 11:26:39 INFO - jmeter.JMeter: Version 2.1.1
2006/05/02 11:26:39 INFO - jmeter.JMeter: java.version=1.5.0_06
2006/05/02 11:26:39 INFO - jmeter.JMeter: Locale=English (United States)
2006/05/02 11:26:39 INFO - jmeter.JMeter: Copyright (c) 1998-2005 The
Apache Software Foundation
2006/05/02 11:26:39 INFO - jmeter.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties
2006/05/02 11:26:42 INFO -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Entered access
log sampler bean info
2006/05/02 11:26:42 INFO -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: found parsers:
[org.apache.jmeter.protocol.http.util.accesslog.OrderPreservingLogParser,
org.apache.jmeter.protocol.http.util.accesslog.SharedTCLogParser,
org.apache.jmeter.protocol.http.util.accesslog.TCLogParser]
2006/05/02 11:26:42 INFO -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Got to end of
access log samper bean info init
2006/05/02 11:26:42 WARN - jmeter.gui.util.MenuFactory: Missing jar?
Could not create org.apache.jmeter.visualizers.MailerVisualizer.
java.lang.NoClassDefFoundError: javax/mail/MessagingException
2006/05/02 11:26:42 INFO - jmeter.samplers.SampleResult: Note: Sample
TimeStamps are END times
2006/05/02 11:26:42 INFO - jmeter.samplers.SampleResult:
sampleresult.default.encoding is set to ISO-8859-1
2006/05/02 11:26:48 INFO - jmeter.gui.action.Load: Loading file:
C:\Documents and Settings\hepnert\Desktop\jakarta-jmeter-2.1.1\test.jmx
2006/05/02 11:26:48 INFO - jmeter.protocol.http.sampler.HTTPSampler2:
httpsampler2.basicauth=false
2006/05/02 11:26:48 INFO - jmeter.save.SaveService: Using SaveService
properties file 1.7
2006/05/02 11:26:48 WARN - jmeter.save.SaveService: Could not set up
alias WebServiceSampler java.lang.NoClassDefFoundError:
javax/mail/MessagingException
2006/05/02 11:26:48 INFO - jmeter.save.SaveService: All converter
versions present and correct
2006/05/02 11:27:00 INFO - jmeter.engine.StandardJMeterEngine: Running
the test!
2006/05/02 11:27:00 INFO - jmeter.gui.util.JMeterMenuBar:
setRunning(true,local)
2006/05/02 11:27:00 INFO - jmeter.engine.StandardJMeterEngine: Starting
1 threads for group Thread Group. Ramp up = 1.
2006/05/02 11:27:00 INFO - jmeter.engine.StandardJMeterEngine: Continue
on error
2006/05/02 11:27:00 WARN - jmeter.threads.JMeterThread:
jmeterthread.startearlier=true (see jmeter.properties)
2006/05/02 11:27:00 INFO - jmeter.threads.JMeterThread: Thread Thread
Group 1-1 started
2006/05/02 11:27:01 INFO - jmeter.threads.JMeterThread: Thread Thread
Group 1-1 is done
2006/05/02 11:27:01 INFO - jmeter.engine.StandardJMeterEngine: Ending
thread 0
2006/05/02 11:27:01 INFO - jmeter.engine.StandardJMeterEngine: Stopping
test
2006/05/02 11:27:01 INFO - jmeter.engine.StandardJMeterEngine:
Notifying test listeners of end of test
2006/05/02 11:27:01 INFO - jmeter.gui.util.JMeterMenuBar:
setRunning(false,local)
2006/05/02 11:27:01 INFO - jmeter.engine.StandardJMeterEngine: Test has
ended
**jmeter.log**
**Entire Error Message**
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at
com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown
Source)
at
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown
Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown
Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown
Source)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
at
org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpConnection.java:1368)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at
org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:799)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2277)
at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2657)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1093)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.java:436)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:514)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:503)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
at java.lang.Thread.run(Unknown Source)
Caused by: sun.security.validator.ValidatorException: PKIX path building
failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown
Source)
at
com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Unknown
Source)
... 20 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
at
sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown
Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 25 more
**Entire Error Message**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]