tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tomcat Wiki] Trivial Update of "FAQ/KnownIssues" by KonstantinKolinko
Date Sat, 18 Feb 2012 01:06:57 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message