tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald Klop <ronald-mailingl...@base.nl>
Subject Re: IllegalStateException: The response object has been recycled and is no longer associated with this facade
Date Wed, 17 Aug 2011 12:20:25 GMT



Op woensdag, 17 augustus 2011 13:41 schreef Mark Thomas <markt@apache.org>:
> 
>   
>  On 17/08/2011 12:36, Ronald Klop wrote:
>  > Hi,
>  >
>  > I did some experiments past days on my live servers and have more
>  > information.
>  >
>  > The problem occurs with 7.0.19 and 7.0.20 with the NIO connector, but
>  > not with the BIO connector. In 7.0.16 it doesn't happen with the NIO
>  > connector.
>  > My code is not more than something like this (pseudocode):
>  > doGet(...) {
>  >    File image = getFile(request.getParameter(...));
>  >    File resized = getFile(request.getParameter(...));
>  >    if (image.newerThan(resized)) {
>  >       resize(image, resized, size);
>  >    }
>  >    response.getOutputStream().write(resized.getContent());
>  > }
>  >
>  > So very straight forward and no fancy tricks with Response objects. This
>  > worked for years since Tomcat 5 or 6.
>  
>  Are you using javax.imageio?
>  
>  Mark
>  
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>  For additional commands, e-mail: users-help@tomcat.apache.org
>   
>  
> 
> 
>   

 
 Sometimes. Mostly I run ImageMagick in a separate process. But sometimes it does things with
javax.imagio.
 I'm curious about the link between them. And what happened in 7.0.19 that triggers something
new.

 Ronald.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message