2012/10/2 Christopher Schultz <ch...@christopherschultz.net>: > Konstantin, > > On 10/2/12 2:32 PM, Konstantin Kolinko wrote: >> Running current trunk + Nio connector + JDK 7u7, I see a lot of the >> following exceptions. >> >> It looks like there is some bug in AccessLogValve optimization when >> StringBuilder was replaced with a CharBuffer. >> >> A CharBuffer cannot grow itself? > > The API does not seem to say anything about re-sizing CharBuffers. >
The CharArrayWriter class can be a replacement here. It grows itself. It is reusable with CharArrayWriter.reset(). It can write its buffer without creating a copy with CharArrayWriter.writeTo(Writer). Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org