You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Sai Arunachalam <sa...@gmail.com> on 2004/09/28 19:21:50 UTC

Content Length problem

Hi,
    I am trying to run an application on Geronimo. I get the following
error when trying to run and see the jsps/htmls.

22:44:03,765 WARN  [HttpConnection] Invalid length: Content-Length=18865 written
=3982 for http://localhost:8080/sai/styles/sai.css
22:44:03,765 WARN  [HttpConnection] Invalid length: Content-Length=3040 written=
1045 for http://localhost:8080/sai/javascript/PageBlocker.js
22:44:03,890 WARN  [HttpConnection] Invalid length: Content-Length=16474 written

Eventually I ain't able to see any of the css effect on the page that
I am trying to view. When the pages acces any gif or jpeg, I get the
same error. Is there anything wrong with what I am doing?

Thanks in advance,
Sai

Re: Content Length problem

Posted by Jeremy Boynes <jb...@gluecode.com>.
Sai

Please don't cross post to both lists - just user is fine.

 > 22:44:03,765 WARN  [HttpConnection] Invalid length: 
Content-Length=18865 written
 > =3982 for http://localhost:8080/sai/styles/sai.css

I believe the warning here is triggered because you set the content 
length to 18865 but only actually wrote 3982 bytes. Jetty is warning you 
that the stream has been truncated. This should not happen with the 
default servlet - are you using any filters or wrapping the response?

--
Jeremy

Sai Arunachalam wrote:
> Hi,
>     I am trying to run an application on Geronimo. I get the following
> error when trying to run and see the jsps/htmls.
> 
> 22:44:03,765 WARN  [HttpConnection] Invalid length: Content-Length=3040 written=
> 1045 for http://localhost:8080/sai/javascript/PageBlocker.js
> 22:44:03,890 WARN  [HttpConnection] Invalid length: Content-Length=16474 written
> 
> Eventually I ain't able to see any of the css effect on the page that
> I am trying to view. When the pages acces any gif or jpeg, I get the
> same error. Is there anything wrong with what I am doing?
> 
> Thanks in advance,
> Sai