Hi
I am replying myself. I worked bit more on it and tryied without proxy.
Than there is a different exception, which is probably hidden by proxy.
Because new exception is about Could not find tructed certificate I tried
to set
HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier()
{
public boolean verify(String hostname, SSLSession session)
{
System.out.println("PeerHost: "+session.getPeerHost());
return true;
}
});
But this is not called. From stack trace I can see that httpsURLconnection
is not created but something like
sun.net.www.protocol.https.HttpsURLConnectionImpl is.
I am using xml-rpc 1.1 with jdk 1.4.
Anybody? Thank you!
Now expcetion is:
javax.net.ssl.SSLHandshakeException: Could not find trusted certificate
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.a(DashoA6275)
at
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(DashoA6275)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at
com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at
java.io.OutputStream.write(OutputStream.java:58) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Das
hoA6275) at
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnec
tion.java:510) at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(DashoA6
275) at
org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java) at
org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java) at
UpdWebPhoto.main(UpdWebPhoto.java:82) Error in request:
java.io.IOException: Could not find trusted certificate
at
org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java) at
org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java) at
UpdWebPhoto.main(UpdWebPhoto.java:82)
--
-richo-