NPE At StubSecurityHelper$ When Using Security Context In Menu XML Files

(Doc ID 1102694.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle JDeveloper - Version and later
Information in this document applies to any platform.
***Checked for relevance on 16-Sep-2013***


You created an ADF Faces application including several menu.xml files, used for the different tabs in your application.
You granted specific authorization to the different links under each menu.

When the end user clicks on a tab linked to an item node the end user has no access to, he gets the following NPE:

javax.servlet.ServletException: java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.service(
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.TailFilter.doFilter(
at Method)
Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(
at com.sun.faces.application.ActionListenerImpl.processAction(
... 34 more
Caused by: java.lang.NullPointerException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.sun.el.parser.AstValue.invoke(
at com.sun.el.MethodExpressionImpl.invoke(
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(
... 48 more


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