NullPointerException In HttpServletRequest.getSession(false)

(Doc ID 1928002.1)

Last updated on FEBRUARY 02, 2017

Applies to:

Oracle Communications Converged Application Server - Version 5.1.0 and later
Information in this document applies to any platform.

Symptoms

initialHttpServletRequest.getSession(false); returns null When a second HttpServletRequest arrives and is used to retrieve the session.

An initial HttpServletRequest that created an HttpSession is stored in the application and an answer is committed.

When a second HttpServletRequest arrives in the same session, the HttpSession object is retrieved from the initial request by calling:
initialHttpServletRequest.getSession(false);

This throws the following exception:

 

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