Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(Why do I get this error somtimes) NoClassDefFoundError

 
Anthony Smith
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a process that calls a servlet. This process can send multiple requests. Something in the neighboorhood 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 enviornment. I get te 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]: Servlet.service(
) for servlet PreRateRatingServlet threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
/ssl
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
va:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
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
nection.java:635)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272
)
at intltech.autopay.beans.ECQSClientBean.processResponse(Unknown Source)
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this to the Tomcat forum.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are your calls being made over HTTPS? (SSL)?
 
Anthony Smith
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are not. The URL looks like this:

String uri = "http://myserver.com";
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have not supplied two vital bits of data:
1. the Java version
2. the Tomcat version
Bill
(PS does your server.xml even define a SSL Connector?)
 
Anthony Smith
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDK jdk142_01
tomcat 4.1.30

No ssl stuff in the server.xml
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic