File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat and SSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat and SSL" Watch "Tomcat and SSL" New topic
Author

Tomcat and SSL

shawn kennedy
Ranch Hand

Joined: Oct 31, 2002
Posts: 67
Hi guys,
I need help with tomcat-3.2.3 and SSL.I have followed the whole procedure and my site seems to be secure but when i check the tomcat console i get the following excpetions due to which my whole application has slowed down miserabley.Can you all tell me how to resolve it and what is the cause of it.Will need help immediately as my client cannot access the application properly.



2004-08-20 14:20:07 - ContextManager: IOException reading request, ignored - jav
ax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshak
eException: Remote host closed connection during handshake
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.d(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
dapter.java:115)
at org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
letInputStream.java:106)
at org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
tInputStream.java:128)
at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138
)
at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
pRequestAdapter.java:129)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:198)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection du
ring handshake
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(DashoA6275)
at org.apache.tomcat.net.SSLSocketFactory.preProcessRequest(SSLSocketFac
tory.java:246)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:194)
... 3 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
... 9 more
Regards.
Carl Sampson
Greenhorn

Joined: Apr 09, 2003
Posts: 22
It appears like the client lost connection or the connection dropped sometime during the protocol handshaking. Since HTTPS is a stateful protocol (a connection is maintained between the browser and the server) it will perform worse than standard HTTP. It appears that this problem is aggravating that.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
This link talk about your problem.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat and SSL
 
Similar Threads
Web Service client error
SSLHandshakeException: Remote host closed connection during handshake
Need Advice on creating a server that uses SSL!
LDAPS Problem / SSLHandshakeException
Clearing SSLSessions