SSL error - "IO Exception Unexpected end of file from server"

Hi there,

I am actually an SAP XI consultant trying to help troubleshoot some Webmethods problems in an integration scenario we are working with…

To simplify the testing I did a small Java app that does a simple SSL handshake to the remote webmethods service…

The SSL handshake happens perfectly and I can verify this by certain sections in the console output…for example, I get:

[SIZE=2][COLOR=red]*** ServerHelloDone

Immediatly after the connection I POST some XML to the server…and the connection is IMMEDIATLY lost. I have no CRLF anywhere and am wondering WHY the SSL connection is being lost??

Here is some of the console output:

[SIZE=2][COLOR=#0000ff]main, READ: TLSv1 Handshake, length = 32
*** Finished
verify_data: { 232, 215, 250, 186, 243, 132, 34, 42, 243, 208, 172, 213 }


%% Cached client session: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
main, WRITE: TLSv1 Application Data, length = 334
main, WRITE: TLSv1 Application Data, length = 171
main, READ: TLSv1 Alert, length = 18
main, RECV TLSv1 ALERT: warning, close_notify
main, called closeInternal(false)
main, SEND TLSv1 ALERT: warning, description = close_notify
main, WRITE: TLSv1 Alert, length = 18
main, called close()
[/COLOR][/size]java.net.SocketException: Unexpected end of file from server
main, called closeInternal(true)
IO Exception Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at java.net.HttpURLConnection.getResponseMessage(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseMessage(Unknown Source)
at sasol.ssl.HTTPSClient_2.main(HTTPSClient_2.java:112)

Also when I go to the SAME service in the browser but using straight HTTP and a different PORT I get some XML response in the browser. The moment I make it HTTPS and change the PORT and try again in the browser it bring up a “page cannot be displayed”.

To verify that it is not the FILE contents I am POSTING I sent the same file using HTTP and it worked…the moment it is HTTPS it dies…

Any help or push in the right direction would be greatly appreciated

Kind regards

Lynton
[/COLOR][/SIZE]