commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "L. Yeung" <l_yeung_...@yahoo.com>
Subject HttpClient Certificate Problem
Date Thu, 30 Dec 2004 01:44:22 GMT
Hi! I tried writing a simple httpclient executing a
simple getmethod on a url and throws this exception:

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException:
No trusted certificate found
        at
com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(Unknown
Source)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown
Source)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown
Source)
        at
com.sun.net.ssl.internal.ssl.SunJSSE_az.a(Unknown
Source)
        at
com.sun.net.ssl.internal.ssl.SunJSSE_az.a(Unknown
Source)
        at
com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(Unknown
Source)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown
Source)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(Unknown
Source)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown
Source)
        at
com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown
Source)
        at
org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.writ
e(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(HttpMethodB
ase.java:2277)
        at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMetho
dBase.java:2657)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
ava:1093)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:675)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:529)
        at Peek.start(Peek.java:28)
        at Peek.main(Peek.java:46)
Caused by: sun.security.validator.ValidatorException:
No trusted certificate fou
nd
        at
sun.security.validator.SimpleValidator.buildTrustedChain(Unknown
Sour
ce)
        at
sun.security.validator.SimpleValidator.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)
        ... 18 more

Thanks.
-len

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message