java.io.IOException: HTTPS hostname wrong: should be <172.2
vasanth_java Jun 20, 2006 6:37 AMi am using HTTPS in my application.
steps to reproduce
1)i am using the following file content in my application. that means i am using the same code/logic of following files in my application.
(like the code for mbean creation, configurational XML content setting and etc)
org\jboss\test\remoting\transport\http\ssl\basic\HTTPSInvokerTestServer
org\jboss\test\remoting\transport\http\ssl\basic\HTTPSInvokerTestClient
2) i am created the .keystore and .truststore files on my own and placed them in my application properly.
3)i used proper password for javax.net.ssl.keyStorePassword.
4) i specified the correct settings in SSLInvokerConstants class.
5)i started the server.
6) i am accessing through running the client.
(Server and client are running in the same system.)
my ip address is 172.24.58.92
I am getting the following Exception.
Calling remoting server with locator uri of: https://172.24.58.92:8888
java.lang.Exception: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
at org.jboss.remoting.samples.callback.HTTPSInvokerTestClient.testInvoca
tionWithHeaders(HTTPSInvokerTestClient.java:108)
at org.jboss.remoting.samples.callback.HTTPSInvokerTestClient.main(HTTPSInvokerTestClient.java:135)
Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnect
ion(HTTPClientInvoker.java:201)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.remoting.Client.invoke(Client.java:473)
at org.jboss.remoting.samples.callback.HTTPSInvokerTestClient.testInvoca
tionWithHeaders(HTTPSInvokerTestClient.java:102)
... 1 more
Caused by: java.io.IOException: HTTPS hostname wrong: should be <172.24.58.92>
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 sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:560)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Das
hoA6275)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnect
ion(HTTPClientInvoker.java:163)
... 7 more
Please provide the help. Thanks in advance.