JAX-RPC with SSL gives RemoteException: cannot connect to server: null
843834Sep 15 2002 — edited Sep 24 2002Hi,
I am trying to use JAX-RPC 1.0_01 with JDK1.3.1_03, Tomcat 3.2.4 and JSSE 1.0.2. When my client tries to invoke a method on my web service using secure sockets, I get the following exception:
cannot connect to server: null; nested exception is: cannot connect to server: null
java.rmi.RemoteException: cannot connect to server: null; nested exception is:
cannot connect to server: null
cannot connect to server: null
at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:119)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:73)
at com.test.TestPort_Stub.createDataSet(TestPort_Stub.java:178)
at com.test.TestWebService.testAPIInServlet(TestWebService.java:88)
When I use http instead of https, I get the data I asked for. I fairly sure the client is set up correctly: it sets the required System properties, and the server certificate is correct and imported into the client keystore.
I have looked at the source for JAX-RPC, and I get the idea that the HttpClientTransport is overriding the JDK HttpURLConnection mechanism (and thus the JSSE implementation) with its own that can't handle secure sockets.
Is this right, or is there something else I need to do?