Weblogic Server (WLS) Throws java.lang.IllegalArgumentException: Header:Location Cannot contain CRLF Charcters on Servlet response.sendRedirect(responseString) Call (Doc ID 1375464.1)

Last updated on SEPTEMBER 19, 2016

Applies to:

Oracle WebLogic Server - Version 9.2 and later
Information in this document applies to any platform.
***Checked for relevance on 30-Sep-2013***

Symptoms

When running a Java Servlet on WebLogic Server (WLS), on calling the java method response.sendRedirect(responseString), customers report getting the following error if the responseString passed contains newline characters (CR, LF):

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms