[
http://jira.jboss.com/jira/browse/RF-2914?page=comments#action_12417620 ]
Mike Hanafey commented on RF-2914:
----------------------------------
Tracing what leads up to the logged message reveals the following (in order of
execution):
org.ajax4jsf.webapp.BaseFilter:
protected void processUploadsAndHandleRequest(HttpServletRequest request,
HttpServletResponse response,
FilterChain chain) throws IOException, ServletException {
HttpServletRequest httpRequest = (HttpServletRequest) request;
String uid = httpRequest.getParameter(UPLOAD_FILES_ID);
In Glassfish, getParameter calls the following:
org.apache.coyote.tomcat5.CoyoteRequest
protected void parseRequestParameters() {
/* SJSAS 4936855
requestParametersParsed = true;
*/
Parameters parameters = coyoteRequest.getParameters();
// getCharacterEncoding() may have been overridden to search for
// hidden form field containing request encoding
String enc = getCharacterEncoding();
// START SJSAS 4936855
// Delay updating requestParametersParsed to TRUE until
// after getCharacterEncoding() has been called, because
// getCharacterEncoding() may cause setCharacterEncoding() to be
// called, and the latter will ignore the specified encoding if
// requestParametersParsed is TRUE
requestParametersParsed = true;
During the restore view phase, when initView(FacesContext ) is called the following is
called (in the same CoyoteRequest class), and because "requestParametersParsed"
was set true above, the warning is logged.
public void setCharacterEncoding(String enc)
throws UnsupportedEncodingException {
// START SJSAS 4936855
if (requestParametersParsed || usingReader) {
String contextName =
(getContext() != null ? getContext().getName() : "UNKNOWN");
log.warn(sm.getString("coyoteRequest.setCharacterEncoding.ise",
enc, contextName));
return;
}
// END SJSAS 4936855
Error starting RichFaces enabled web application after switch to
3.2.0 release
------------------------------------------------------------------------------
Key: RF-2914
URL:
http://jira.jboss.com/jira/browse/RF-2914
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: jsf 1.2_08, glassfish 9.1
Reporter: Mareks Malnacs
Assigned To: Nick Belaevski
Priority: Minor
Fix For: Future
Complex richfaces application works fine with 3.1.4 release. After update project
libraries to 3.2.0 glassfish displays following message in error log:
PWC4011: Unable to set request character encoding to UTF-8 from context /proc, because
request parameters have already been read, or ServletRequest.getReader() has already been
called
and firefox displays empty page.
If I switch back to 3.1.4 - application works fine.
Any changes in web.xml (or any other web-app configuration file) I am missed during
"upgrade" ?
Thanks,
Mareks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira