Hello,
 
I am trying to make a client invoke a web service with Axis/Tomcat.
The client initializes the JSSE with the following settings :
 
System.setProperty("javax.net.ssl.trustStore",_storeLocation);
System.setProperty("javax.net.ssl.trustStorePassword",_storePassword);
System.setProperty ("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider (new com.sun.net.ssl.internal.ssl.Provider());
 
When I am creating the service, everything seems ok : the handshaking is done successfully, and the stub to my service is created.
But, each time I am trying to invoke the web service, I get the following error :
 
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.NullPointerException
 faultActor: null
 faultNode: null
 faultDetail:
        stackTrace: java.lang.NullPointerException
        at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2376)
        at org.apache.axis.client.Call.invoke(Call.java:2365)
        at org.apache.axis.client.Call.invoke(Call.java:2062)
        at org.apache.axis.client.Call.invoke(Call.java:1986)
        at org.apache.axis.client.Call.invoke(Call.java:1509)
        at my_hello_world.MyHelloWorldSoapBindingStub.getHelloMessage(G:/cc_views/common_as_kernel_rtm/wstk/samples/server_java/my_hello_world/MyHelloWorldSoapBindingStub.java:238)
 
        at com.bo.wstk.test.MyHelloWorldClient.main(G:/cc_views/common_as_kernel_rtm/wstk/samples/client_java/src/com/bo/wstk/test/MyHelloWorldClient.java:91)
 
The same client code, without any SSL stuff works fine : the creation and the use of the service is ok.
 
I have checked my runtime environment, everything seems ok. The certificates registered in the server.keystore and client.keystore are ok, according to the fact that the connection is done successfully during the stub creation. Do I miis something in the initialization ? (SSLSocketFactory/SSLSocket provider settings, ...) Is there something to do in the Axis configuration ?
Is there anybody to help me ?
Many thanks,
 
Stephane.

Reply via email to