[Roy, Jaideep] > Our development team has been occasionally seeing the following error > (listed below) thrown from Orion. This happens when our application running > under Orion throws an error and attempts to forward to our custom error JSP > page. > > The error happens sporadically and cannot be recreated consistently, but > tends to bring the server down (i.e. accepts no more connections/requests). > Also, the browser never gets a response back from the server. This has also > been reported by some other users in the orion-interest archives. warning: most likely irrelevant. My experience with tomcat has shown a similar situation with forwarding whenever the attempted forward occurs (in runtime) after the point where the jsp engine has hit the buffer size and had to flush out the http headers and the first buffer of content. Solutions were to do forwarding logic earlier (before most of the html), or make the buffer size bigger (<%@ page buffer=64KB %> or something similar) > Any ideas as to what could cause this problem? > > > Root cause is; java.lang.IllegalArgumentException: Attempted to write longer > than Content-Length (5316 + 3607 / 5316) The issue is that once you hit the buffer, the headers have to get committed, and you can't do a Location: 302 (or whatever it is) for the redirection. What's more interesting is that it looks like the forward may have completed here (in some sense) but the content-length header had already been committed, and when you resulting page is longer, an exception is thrown. Wish I could be of more help... I'd love to hear what the answer is :) James -- James Manning <[EMAIL PROTECTED]> GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7 9C8E A0BF B026 EEBB F6E4
