OAM 11g: Custom Authentication Plugin Upload Fails And Breaks OAM Console Session (Doc ID 1373879.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Access Manager - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Symptoms


Failure when importing Custom Authentication Plugin jar file in Oracle Access Manager 11.1.1.5 Console.

A custom authentication plugin has been created following the guidelines in the documentation:

Oracle Fusion Middleware Developer's Guide for Oracle Access Manager and Oracle Security Token Service 11g Release 1 (11.1.1)
3 Creating Custom Authentication Plug-ins


When an attempt is made to Upload the plugin jar file in OAM Console, all frames become blank / greyed out and the session does not respond to any further clicks.

Access to the OAM Console can be restored by refreshing the session or closing the browser window or tab then accessing /oamconsole in a new window.  After re-accessing the OAM Console in new browser session the custom plugin is not in the plugins list.

There are no error messages in the AdminServer or OAM managed server logs, even with FINEST OAM error logging enabled.

'javax.faces.el.EvaluationException: java.lang.NullPointerException' errors are written to the domain log i.e. DOMAIN_HOME/servers/AdminServer/logs/DOMAINNAME.log.

Example:

####<Nov 4, 2011 2:11:29 PM GMT> <Error> <javax.enterprise.resource.webcontainer.jsf.application> <oam.oracle.com> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <eb251f7960e229d6:-6f7edf5:13354515e61:-8000-0000000000002f5f> <1320415889356> <BEA-000000> <java.lang.NullPointerException
javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at oracle.adf.view.rich.component.rich.RichPopup$BroadcastContextCallback.invokeContextCallback(RichPopup.java:666)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1410)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1380)
at org.apache.myfaces.trinidad.component.UIXDecorateCollection.invokeOnComponent(UIXDecorateCollection.java:121)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1380)
at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
.....
Caused By: java.lang.NullPointerException
at oracle.security.am.view.util.FileProcessor.displayPluginException(FileProcessor.java:186)
at oracle.security.am.view.util.FileProcessor.doUpload(FileProcessor.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
.....
####<Nov 4, 2011 2:11:29 PM GMT> <Warning> <oracle.adfinternal.view.faces.lifecycle.LifecycleImpl> <oam.oracle.com> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <eb251f7960e229d6:-6f7edf5:13354515e61:-8000-0000000000002f5f> <1320415889380> <BEA-000000> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
javax.faces.FacesException: #{FileProcessor.doUpload}: java.lang.NullPointerException
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at oracle.adf.view.rich.component.rich.RichPopup$BroadcastContextCallback.invokeContextCallback(RichPopup.java:666)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1410)
....
Caused By: javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at oracle.adf.view.rich.component.rich.RichPopup$BroadcastContextCallback.invokeContextCallback(RichPopup.java:666)
....



Steps to reproduce

1. Developed a custom authentication plugin and package it into an OSGi Bundle jar file.
2. Login to OAM console at /oamconsole and navigate to System Configuration -> Common Configuration -> Plugins.
3. Click the Import Plugin option and specify the custom plugin jar file.
4. Click the Import button: the OAM console is refreshed with all frames greyed out and fails to respond to any action.

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