Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "FAQ/KnownIssues" page has been changed by KonstantinKolinko:
http://wiki.apache.org/tomcat/FAQ/KnownIssues?action=diff&rev1=6&rev2=7

Comment:
Correct several typos

      }
  }}}
  
- Now, although there shouldn't be any Exception logged (because the 
IOException which occurs when the client aborted the connection is ignored), 
you see strange Exceptions in Tomcat's log which may belong to other 
Servlets/JSP (at least with Sun/Oracle JVM on Windows), saying that the 
response has already commited, althought you didn't write anything to it at 
that time. For example:
+ Now, although there shouldn't be any Exception logged (because the 
IOException which occurs when the client aborted the connection is ignored), 
you see strange Exceptions in Tomcat's log which may belong to other 
Servlets/JSP (at least with Sun/Oracle JVM on Windows), saying that the 
response has already been committed, although you didn't write anything to it 
at that time. For example:
  {{{
  13.07.2011 00:13:51 org.apache.catalina.core.StandardWrapperValve invoke
  SEVERE: Servlet.service() for servlet [myApp.MyServlet] in context with path 
[] threw exception
@@ -70, +70 @@

  
  '''So how to resolve the errors?'''
  
- To resolve this, I'm using an OutputStream decorater class which decorates 
Tomcat's OutputStream and prevents any flush() calls. Additionally, when 
close() is called on that Stream, it nulls-out the reference to Tomcat's 
OutputStream and prevents any other operations:
+ To resolve this, I'm using an OutputStream decorator class which decorates 
Tomcat's OutputStream and prevents any flush() calls. Additionally, when 
close() is called on that Stream, it nulls-out the reference to Tomcat's 
OutputStream and prevents any other operations:
  
  {{{
  /**
@@ -103, +103 @@

        if(isActive) {
          out.flush();
        }
-       // otherwise do nothing (pevent polluting the stream)
+       // otherwise do nothing (prevent polluting the stream)
      }
  
      @Override

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to