Skip to content

[Bug] Unable to set request character encoding to UTF-8 warning #2299

@lprimak

Description

@lprimak

Search before asking

Environment

When combined with error pages, you may see the following message

WARNING: PWC4011: Unable to set request character encoding to UTF-8 from context /com.myapp_war_0.1, because request parameters have already been read, or ServletRequest.getReader() has already been called

Also see https://stackoverflow.com/questions/7643484/how-to-get-rid-of-warning-pwc4011-unable-to-set-request-character-encoding-to

Shiro version

2.0.5

What was the actual outcome?

Warning message

What was the expected outcome?

No warnings

How to reproduce

https://start.flowlogix.com and make a syntax error in the .xhtml

Debug logs

No response

Metadata

Metadata

Assignees

Labels

jakartaeeJakarta EEjavaPull requests that update Java code

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions