users@glassfish.java.net

Re: Can't set charset to UTF-8

From: Gerald Holl <gerald_at_holl.co.at>
Date: Mon, 12 Nov 2007 19:02:27 +0100

Ryan Lubke wrote:
> Gerald Holl wrote:
>> Jan.Luehe_at_Sun.COM wrote:
>>> Would it be possible for you to add a
>>>
>>> Thread.currentThread().dumpStack()
>>>
>>> to the beginning of
>>>
>>>
>>> glassfish/appserv-webtier/src/java/org/apache/coyote/tomcat5/CoyoteRequest.setCharacterEncoding()
>>>
>>>
>>> and send the stacktrace, so we know who the caller is?
>>
>>
>> Hello Jan,
>>
>> here is the stack trace:
>> http://pastebin.com/f3ebdf2fe
> The stack trace is what I expected. We set the encoding before invoking
> any user code.
>
> Was this the stacktrace that was printed right before/after the encoding
> warning that prompted
> this thread?

Yes, the stacktrace is in the log right before the encoding warning.

> It should be in the log more than once for a reqest/post-back sequence.

It's 3 times in the log, 2 times before the warning and once after.

cheers,
Gerald