Re: socket write error
Status: Inactive
Brought to you by:
fgnass
|
From: Felix G. <fel...@ne...> - 2004-08-31 21:09:31
|
Hello Mike,
according to your stacktrace the exception is thrown by the Tomcat
DefaultServlet which is responsible for delivering static content like
images, stylesheets etc. Probably your page contains references to such
resources which would explain why the exception is thrown when you
reload your page.
A socket write error usually occurs, when a client (the browser) closes
the socket before all data has been sent by the server. Googeling for
DefaultServlet and copyRange or SocketException brings up quite a lot of
similar stacktraces. Since the problem is not caused by actioncache I'd
recommend to upgrade to the latest Tomcat version or to use another
Connector implementation.
To trace which resource exactly causes the exception you could map a
Servlet-Filter to /* with the following doFilter() method body:
try {
filterChain.doFilter(request, response);
}
catch (Exception e) {
String url = ((HttpServletRequest) request).getRequestURL().toString();
System.out.println("An error occured while processing " + url);
e.printStackTrace();
}
Hope this helps,
Felix
|