Hi , I am using the latest version (2.2-beta-2)
 
$ java -version
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
$ uname -a
Linux xfiles 2.2.16-3 #1 Mon Jun 19 19:11:44 EDT 2000 i686 unknown
$ uname -a  (another machine)
Linux XLinux 2.4.16 #2 嚙篇嚙瘦 11嚙踝蕭 27 14:20:02 GMT+8 2001 i586 unknown
environmane :
LANG=zh_TW  (Taiwan)
Complete logged message (/usr/local/resin/log/error.log):
 
[2002/09/19 10:19:21] 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)
        at net.sf.tapestry.ResponseOutputStream.forceFlush(ResponseOutputStream.java:160)
        at net.sf.tapestry.engine.AbstractEngine.service(AbstractEngine.java:786)
        at net.sf.tapestry.ApplicationServlet.doService(ApplicationServlet.java:176)
        at net.sf.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:144)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
        at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
        at to.xfiles.destiny.webapp.filter.UsernameFilter.doFilter(UsernameFilter.java:64)
        at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)
        at com.caucho.server.http.Invocation.service(Invocation.java:311)
        at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
        at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:272)
        at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
        at java.lang.Thread.run(Thread.java:536)
Which Tapestry version are you using?

I have not seen this before.

--
[EMAIL PROTECTED]

http://tapestry.sf.net
> 
> 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
> http://host/servlet/someServlet?service=page&context=OtherPage 
> 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