My Oracle Support Banner

OAM11gR2: Custom Plugin Execution Fails with "java.lang.NullPointerException" (Doc ID 1567252.1)

Last updated on JULY 25, 2018

Applies to:

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

Symptoms

OAM11gR2: Execution of Custom Plugin fails with java.lang.NullPointerException. 

No error is thrown when importing the plugin nor when distributing or activating the plugin. However, when the plugin gets executed from custom auth module, you will see
messages as follows  in the oam server diagnostic log file.

 

[2013-06-12T05:16:46.064+00:00] [oam_server1] [TRACE] [] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000Jwqo98RAs0zNzq5^Oz7uGHG08IY3G1HhXzG000081,0] [SRC_CLASS: oracle.security.am.plugin.internal.GenericPluginFactory] [APP: oam_server] [SRC_METHOD: loadSystemPlugin] Class not found exception

[2013-06-12T05:16:46.064+00:00] [oam_server1] [TRACE] [] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000Jwqo98RAs0zNzq5^Oz7uGHG08IY3G1HhXzG000081,0] [SRC_CLASS: oracle.security.am.plugin.felix.FelixPluginProviderImpl] [APP: oam_server] [SRC_METHOD: getServiceReference] Number of service references: null 


[2013-06-12T05:16:46.065+00:00] [oam_server1] [TRACE] [] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000Jwqo98RAs0zNzq5^Oz7uGHG08IY3G1HhXzG000081,0] [SRC_CLASS: oracle.security.am.plugin.internal.GenericPluginFactory] [APP: oam_server] [SRC_METHOD: getPlugin] Loaded class using plugin service: null

[2013-06-12T05:16:46.066+00:00] [oam_server1] [TRACE] [] [oracle.oam.engine.authn] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000Jwqo98RAs0zNzq5^Oz7uGHG08IY3G1HhXzG000081,0] [SRC_CLASS: oracle.security.am.engine.authn.internal.executor.PlugInExecutor] [APP: oam_server] [SRC_METHOD: execute] Plugin to Execute :null
[2013-06-12T05:16:46.066+00:00] [oam_server1] [WARNING] [] [oracle.oam.engine.authn] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000Jwqo98RAs0zNzq5^Oz7uGHG08IY3G1HhXzG000081,0] [APP: oam_server] Plugin Execution Failed.[[
java.lang.NullPointerException
at oracle.security.am.engine.authn.internal.executor.PlugInExecutor.execute(PlugInExecutor.java:179)
at oracle.security.am.engine.authn.internal.executor.AuthenticationSchemeExecutor.execute(AuthenticationSchemeExecutor.java:102)
at oracle.security.am.engine.authn.internal.controller.AuthenticationEngineControllerImpl.validateUser(AuthenticationEngineControllerImpl.java:268)
at oracle.security.am.engines.enginecontroller.AuthnEngineController.authenticateUser(AuthnEngineController.java:697)
at oracle.security.am.engines.enginecontroller.AuthnEngineController.processEvent(AuthnEngineController.java:300)
at oracle.security.am.controller.MasterController.processEvent(MasterController.java:568)
at oracle.security.am.controller.MasterController.processRequest(MasterController.java:757)
at oracle.security.am.controller.MasterController.process(MasterController.java:680)
at oracle.security.am.pbl.PBLFlowManager.delegateToMasterController(PBLFlowManager.java:209)
at oracle.security.am.pbl.PBLFlowManager.handleBaseEvent(PBLFlowManager.java:147)
at oracle.security.am.pbl.PBLFlowManager.processRequest(PBLFlowManager.java:107)
at oracle.security.am.pbl.transport.http.AMServlet.handleRequest(AMServlet.java:171)
at oracle.security.am.pbl.transport.http.AMServlet.doPost(AMServlet.java:136)
at oracle.security.am.pbl.transport.http.AMServlet.doGet(AMServlet.java:691)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:523)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
at oracle.security.am.pbl.transport.http.CredCollectServlet.getCredentials(CredCollectServlet.java:125)
at oracle.security.am.pbl.transport.http.CredCollectServlet.doPost(CredCollectServlet.java:96)
at oracle.security.am.pbl.transport.http.CredCollectServlet.doGet(CredCollectServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:276)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

]]

 

 

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.