users@glassfish.java.net

Re: setEncoding

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Fri, 05 Jun 2009 14:48:49 -0700

On 06/ 5/09 07:40 AM, glassfish_at_javadesktop.org wrote:
> Hi,
>
> I get this error in the logs. I know what it means, but I would like to find the code which causes this. Is there a way to see that?
>
> --
>
> This email alert was generated from your Glassfish Install :
> Install Location : /opt/SUNWappserver/domains/domain1
> Server Name : server
>
>
> A log file entry in your GlassFish log file was recorded. These are the log details :
>
> SourceMethodName=setCharacterEncoding
> Millis=1244211411655
> LoggerName=org.apache.coyote.tomcat5.CoyoteRequest
> Level=WARNING
> Message=PWC4011: Unable to set request character encoding to UTF-8 from context /ConceptionPgmType, because request parameters have already been read, or ServletRequest.getReader() has already been called
> SequenceNumber=409061
> toString=[#|2009-06-05T16:16:51.655+0200|WARNING|sun-appserver2.1|org.apache.coyote.tomcat5.CoyoteRequest|_ThreadID=27;_ThreadName=httpSSLWorkerThread-443-2;_RequestID=e472fb52-0207-45c9-a937-86e0ab46e202;|PWC4011: Unable to set request character encoding to UTF-8 from context /ConceptionPgmType, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]
>

See this FAQ entry for what's causing the warning to be logged:

  
http://wiki.glassfish.java.net/Wiki.jsp?page=FaqWebAppUnableToSetRequestCharEncoding

Jan

>
> ThreadID=27
> SourceClassName=org.apache.coyote.tomcat5.CoyoteRequest}
>
> To stop getting this email, disable the Log Entry Alert from the Glassfish admin console.
> [Message sent by forum member 'ymajoros' (ymajoros)]
>
> http://forums.java.net/jive/thread.jspa?messageID=349377
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>