[JSF + WebLogic] Could not redirect since WLS12.2.1.0 (Cookie is disabled in web browser)

(Doc ID 2311980.1)

Last updated on OCTOBER 11, 2017

Applies to:

Oracle WebLogic Server - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms

When browser's cookie is disabled, a JSF application works for Weblogic versions WLS 12.1.1 to 12.1.3.

However, it has not worked since WLS 12.2.1.0.

The error messages below occurred when accessing http://ip:port/RedirectTest_Session/firxt.xhtml 

Error 500--Internal Server Error

java.lang.NullPointerException
at test.SecondPage.preRenderView(SecondPage.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

The related sample code is

1) first.xhtml

 

Changes

 

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