Hi,

I'm accessing a webservice, as a client, using XFire 1.2.2, and  a https 
connection.
Almost all the time everything goes ok. 
But some times, an intermittent exception is raised by my client (see below)

The server certified is imported on my keystore and the keystore is correctly 
set at the java.property javax.net.ssl.trustStore

The data been sent is always the same, and I've also set 
HttpTransport.CHUNKING_ENABLED to "true".

Does anybody have any idea about what is happening ??

I also tried to isolate the problem, so I build a simple HTTP Client using 
commons-httpclient for the same server. This client only opens and close the 
connections and in this case I never get any exception.

Thanks a lot !
JLima

org.codehaus.xfire.XFireException: Couldn't send message.
    at 
org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:145)
    at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    at 
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    ... 8 more
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: 
handshake_failure
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117)
    at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1584)
    at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:866)
    at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1030)
    at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:622)
    at 
com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
    at 
org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
    at 
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:1525)
    at 
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1936)
    at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
    at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
    at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    at 
org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:260)
    at 
org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
    ... 10 more

Reply via email to