Unsupported SSL message version

I have implemented a client for secure file exchange over HTTPS . Everything works fine, except that I occasionally get this SSLProtocolException: Unsupported SSL message version. This only happens during uploads and only if an upload immediately follows a download. And it's not consistent at all. The web server is IIS.

Here is the stack trace:

Exception in thread "main" javax.net.ssl.SSLProtocolException: Unsupported SSL message version.

at com.sun.net.ssl.internal.ssl.InputRecord.read([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.ssl.AppInputStream.read([DashoPro-V1.2-120198])

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read1(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at java.io.FilterInputStream.read(Unknown Source)

at java.io.PushbackInputStream.read(Unknown Source)

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.b([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.b([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.a([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.b([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.a([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream([DashoPro-V1.2-120198])

at java.net.HttpURLConnection.getResponseCode(Unknown Source)

...

Has anyone seen this before? Thanks.

[1771 byte] By [georica] at [2008-2-22]
# 1

Yes

I am getting a similar problem but it could be

related or a different problem. I get this problem

intermittently. I could not find a solution.

If you do, please let me know

dshah@neteps.com. If I find I will let you know soon

AppletinitApplet2Servlet Exception:

Unexpected end of file from server

java.net.SocketException: Unexpected end of file from server

java.net.SocketException: Unexpected end of file from server

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.b([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.a([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.b([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.a([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream([DashoPro-V1.2-120198])

at TestTandVect.actionPerformed(TestTandVect.java:135)

at java.awt.Button.processActionEvent(Unknown Source)

at java.awt.Button.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

darshanshah at 2007-7-1 > top of java,Security,Java Secure Socket Extension (JSSE)...
# 2

We are getting the same problem. We are using JSSE in a java plugin. Happens on IE and Netscape and on Solaris and win 2000. Server is using OpenSSL in V2/V3 mode. This is a killer for us. If anyone has a fix I sure would like to know what it is please. Does using pureTLS fix this ?

Thanks,

Bruce Forsberg

Bforsberg at 2007-7-1 > top of java,Security,Java Secure Socket Extension (JSSE)...
# 3

I am also critically stuck on this error. There must be somebody from Sun who knows what the source of this is? I've only started to get it since integrating code at my client's site. The only difference I can think of is that the client machine is NT rather than Win 2000. It's a Java Webstart deployed client using jre 1.3_03. URGENT problem!

javax.net.ssl.SSLProtocolException: Unsupported SSL message version.

at com.sun.net.ssl.internal.ssl.InputRecord.read([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.ssl.AppInputStream.read([DashoPro-V1.2-120198])

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read1(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at java.io.FilterInputStream.read(Unknown Source)

at java.io.PushbackInputStream.read(Unknown Source)

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.b([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.a([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpClient.a([DashoPro-V1.2-120198])

at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream([DashoPro-V1.2-120198])

fergalnyc at 2007-7-1 > top of java,Security,Java Secure Socket Extension (JSSE)...
# 4
Hi,I faced the same problem, however try switching the JVM to 1.3.0.00 This seems to be some kind of a bug with the JVM Ver :JavaVM-1.3.0.03Please let me know if you were able to find a fix to this bug...Cheers,
nagwww at 2007-7-1 > top of java,Security,Java Secure Socket Extension (JSSE)...