I am using Tomcat 8. In one case I need to handle external request coming from external source where the request has a parameters where it is separated by |. Request is looks like this: http://localhost:8080/app/handleResponse?msg=name|id| In this case I am getting following error. EDIT 1 It works with Apache Tomcat 8.0.30 but not with Tomcat 8.5 Answer This behavior