tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Issue in tomcat 6.0.26
Date Thu, 19 Apr 2012 17:47:58 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 4/19/12 1:44 PM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:chris@christopherschultz.net] 
>> Subject: Re: Issue in tomcat 6.0.26
> 
>>> Kindly provide the solution.
> 
>> Briefly: don't call getOutputStream more than once ;)
> 
> Actually, I think it's don't call _both_ getOutputStream() and 
> getWriter() for the same request.  Pick one or the other.

The JSP writer is supposed to be smart enough to determine which
output is in use (stream vs. writer) and then wrap that. IIRC there is
(was?) an ugly try/catch block that blindly calls getOutputStream and
then calls getWriter as a backup. Obviously, that's no the case here,
so I wonder if something is in a weird state.

That's why I want to see the stack trace.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+QT84ACgkQ9CaO5/Lv0PAwqQCgle/8An+h8rncGKMbIV/IHdOe
bQYAn2YYaqtj8ovP8HH03znBCJCYt7t4
=I7eD
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message