hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shang Yuan Zhu <zhu...@cn.ibm.com>
Subject Failed to run ClientFormLogin example
Date Tue, 29 Nov 2011 05:07:06 GMT
Hi,

When I try to run the ClientFormLogin example, I encounter the following 
exception:

The exception thrown while running the example: 
Exception in thread "main" javax.net.ssl.SSLException: hostname in 
certificate didn't match: <portal.sun.com> != <*.oracle.com> 
at 
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:228) 

at 
org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54)


at 
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:149) 

at 
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:130) 

at 
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:397) 

at 
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)


at 
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149) 

at 
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)


at 
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)


at 
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)


at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) 

at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754) 

at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732) 

at 
org.apache.http.examples.client.ClientFormLogin.main(ClientFormLogin.java:55) 



Does anyone know how to update the code to make it run? Thanks


Best regards, 


Kenneth, Shang Yuan Zhu




Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message