You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael McGrady <mi...@michaelmcgrady.com> on 2004/09/17 23:29:31 UTC

505 Error in Tomcat 5.0

I am using Tomcat 5.0 and Struts 1.1.  I also use a Filter that zips the 
requests and responses.  I am running a chat room on port 80 with a 
frameset html that auto refreshes in one frame and sends in another 
frame.  When a user with IE tries to chat with me from her office, she 
gets 505 messages.  I have recently changed the code on the pages.  I am 
getting requests when she sends one, but they are old requests, with the 
same chat lines she sent before.  Anyone know what is probably going on 
here?  The Filter I use follows:

   public class GZIPFilter implements Filter {

     public void doFilter(ServletRequest req, ServletResponse res,
         FilterChain chain) throws IOException, ServletException {
       if (req instanceof HttpServletRequest) {
         HttpServletRequest request = (HttpServletRequest) req;
         HttpServletResponse response = (HttpServletResponse) res;
         String ae = request.getHeader("accept-encoding");
         if (ae != null && ae.indexOf("gzip") != -1) {
           GZIPResponseWrapper wrappedResponse = new
   GZIPResponseWrapper(response);
           chain.doFilter(req, wrappedResponse);
           wrappedResponse.finishResponse();
           return;
         }
         chain.doFilter(req, res);
       }
     }

     public void init(FilterConfig filterConfig) {
       // noop
     }

     public void destroy() {
       // noop
     }
   }

What do you think?

Michael McGrady



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org