HTTPServletRequest GetParameterMap() Throws Null Pointer Exception

(Doc ID 1159845.1)

Last updated on FEBRUARY 24, 2017

Applies to:

Oracle Containers for J2EE - Version 10.1.3.5.0 and later
Information in this document applies to any platform.

Symptoms

When implementing a security system using JAZN with Oracle IDM (Identity Management) implementation and defining a custom TokenCollector on the method getToken, if calling Map params = request.getParameterMap(); (where request is HttpServletRequest),  a null pointer exception on the class EvermindHttpServletRequest method getParameters is raised.

Here is an example of the code fragment:

public IdentityToken getToken(String tokenType, HttpServletRequest request, List tokenNames, Properties properties) throws TokenNotFoundException, CollectorException {
..
Map params = request.getParameterMap();
...
}



The following error is received:

010-05-19 11:56:18.876 ERROR [GenericAuthenticator] Error: [JAZN] null
[JAZN] com.evermind.server.http.EvermindHttpServletRequest.getParameters(EvermindHttpServletRequest.java:1586)
[JAZN] com.evermind.server.http.EvermindHttpServletRequest.getImmutableParameters(EvermindHttpServletRequest.java:1680)
[JAZN] com.evermind.server.http.EvermindHttpServletRequest.getParameterMap(EvermindHttpServletRequest.java:1686)
[JAZN] inversura.idm.core.InversuraTokenCollector.getToken(InversuraTokenCollector.java:140)
[JAZN] oracle.security.jazn.oc4j.GenericAuthenticator.getAuthentication(GenericAuthenticator.java:172)
[JAZN] com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3797)
[JAZN] com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6525)
[JAZN] com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3191)
[JAZN] com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:775)
[JAZN] com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
[JAZN] com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
[JAZN] com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandl

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