Why do I get this error only 10% of the time? java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocket

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Why do I get this error only 10% of the time? java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocket

Anthony Smith

I have a process that calls a servlet. This process can send multiple
requests. Something in the neighborhood of maybe 500 at a time to the
Servlet. The Servlet can process the request in about 10 secs or less.
The process that calls the Servlet is located on a different box. I am
working in a Tomcat environment. I get the following stack trace maybe
10% of the time or less. I call the servlet about 250K times a day. But
I only get this error 10% or less of the time. My guess is that somehow,
I am overloading something to the point where it returns an error that
no ClassDefFoundError The class does exists AND each call follows the
same routine, so it is not the case where when I get these errors that
they are different from what I have been doing with the other 90%.

Please Help.


2006-03-01 00:14:13 StandardWrapperValve[PreRateRatingServlet]:
) for servlet PreRateRatingServlet threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
at java.lang.Thread.run(Thread.java:534)
----- Root Cause -----
java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocket
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:809)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272
at intltech.autopay.beans.ECQSClientBean.processResponse(Unknown Source)