When I access my Tapestry application , I found the servlet container 
sometimes logs "java.lang.IllegalStateException" .
 
The "Home" page won't log the exception , but every page except "Home"
will be logged "java.lang.IllegalStateException".
 
For example :
http://host/servlet/someServlet will be OK , no any exception logged.
 
while
will be logged "java.lang.IllegalStateException" .
but all functions work properly...
 
The logging defails is as follows :
[2002/09/19 00:30:54] http://host/servlet/someServlet
: tried to write content beyond content-length.
java.lang.IllegalStateException: http://host/servlet/someServlet
: tried to write content beyond content-length.
        at com.caucho.server.http.ResponseStream.writeChunk(ResponseStream.java:420)
        at com.caucho.server.http.ResponseStream.flushBuffer(ResponseStream.java:367)
        at com.caucho.server.http.ResponseStream.finish(ResponseStream.java:286)
        at com.caucho.server.http.Response.finish(Response.java:1657)
        at com.caucho.server.http.ResponseStream.writeChunk(ResponseStream.java:495)
        at com.caucho.server.http.ResponseStream.flushBuffer(ResponseStream.java:367)
        at com.caucho.server.http.ResponseStream.flush(ResponseStream.java:513)
        at com.caucho.vfs.WriteStream.flush(WriteStream.java:329)
        at com.caucho.server.http.QServletOutputStream.flush(QServletOutputStream.java:86)
        ...(SKIP)...
Environment :
Linux 6.2/7.2 , Resin/2.1.2
 
How to prevent the error message ?
Although it won't affect the correctness of my application,
it still increases the log file size a lot...
 

Reply via email to