Estava dando uma olhada no fonte do mentawai e vi um negócio que me chamou atenção nessa classe....
Não sei se isso pode causar algum bug, não cheguei a fazer um stress test nesse negocio, mas.... olhando o metodo execute, reparei que o PrintWriter nunca é fechado.
Acredito que deva ser feito algo assim:
Code:
public void execute(Action a, HttpServletRequest req, HttpServletResponse res) throws ConsequenceException {
PrintWriter printWriter = null;
try {
String s = this.ajaxRender.renderize(a);
res.setContentType(TEXT_XML);
printWriter = res.getWriter();
printWriter.print(s);
}
catch (IOException e) {
throw new ConsequenceException("Exception while writing the renderized document: " + e.getMessage());
}
catch (Exception e) {
throw new ConsequenceException("Exception while renderizing with render " + ajaxRender.getClass() + ": "
+ e.getMessage());
}
finally {
printWriter.close();
}
}
Não sei nem se o código está assim ainda, pois baixei do SVN tem uns dias....
Todos casos fica a dica.
VELO