OAM 11g RREG Fails With Error SEVERE: HTTP Post Method failed.HTTP/1.1 500 Internal Server Error (Doc ID 1369939.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Access Manager - Version: 11.1.1.3.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

Oracle Access Manager (OAM) 11g Remote Registration (RREG) using oamreg script fails with 'SEVERE: HTTP Post Method failed.HTTP/1.1 500 Internal Server Error'.

A NullPointerException (NPE) is written to the AdminServer.log when this failure occurs. For example:

###<Oct 21, 2011 1:00:24 AM GMT> <Error> <HTTP> <oracle> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <aa901f539014d6d5:5f0688c1:1331f866c1e:-8000-000000000000010e> <1319158824527> <BEA-101020> <[ServletContext@18192004[app:oam_admin module:rreg path:/rreg spec-version:2.5 version:11.1.1.3.0]] Servlet failed with Exception
java.lang.NullPointerException
at oracle.security.am.common.policy.runtime.model.impl.PolicyRuntimeObjectImpl.<init>(PolicyRuntimeObjectImpl.java:48)
at oracle.security.am.common.policy.runtime.model.impl.AuthenticationSchemeImpl.<init>(AuthenticationSchemeImpl.java:48)
at oracle.security.am.common.policy.runtime.model.impl.AuthenticationPolicyImpl.<init>(AuthenticationPolicyImpl.java:43)
at oracle.security.am.common.policy.admin.impl.PolicyObjectManager.getPolicyRuntimeObject(PolicyObjectManager.java:354)
at oracle.security.am.common.policy.admin.impl.PolicyObjectManager.generatePolicyRuntimeChangeEvent(PolicyObjectManager.java:308)
at oracle.security.am.common.policy.admin.impl.PolicyObjectManager.generatePolicyChangeEvents(PolicyObjectManager.java:289)
at oracle.security.am.common.policy.admin.impl.PolicyObjectManager.postPolicyOperationProcessing(PolicyObjectManager.java:269)
at oracle.security.am.common.policy.admin.impl.PolicyManagerImpl.createAuthnPolicy(PolicyManagerImpl.java:415)
at oracle.security.am.engines.rreg.server.RegServerController.createInitialProtectedAuthnPolicy(RegServerController.java
....


After oamreg fails, OAM Console shows that the Agent and Host Identifier were created successfully but the related Application Domain is incomplete - the expected authentication and authorization policies do not exist.

Steps to reproduce

1. Modify OAM11gRequest.xml in order to register a WebGate 11g agent for a locally installed Oracle HTTP Server 11g instance.
2. Perform in-band registration using oamreg:

./<RREG_Home>/bin/oamreg.sh inband input/OAM11GRequest.xml

----------------------------------------
Request summary:
OAM11G Agent Name:RREG_OAM11G_localohs
Base URL:http://server.oracle.com:7777
URL String:RREG_HostId11G_localohs
Registering in Mode:inband
Your registration request is being been sent to the Admin server at: http://server.oracle.com:7001
----------------------------------------

Oct 21, 2011 1:00:24 AM oracle.security.am.engines.rreg.common.HTTPProtocolHandler sendRequest
SEVERE: HTTP Post Method failed.HTTP/1.1 500 Internal Server Error
in main program... The remote registration process did not succeed! Please find the specific error message below.
HTTP Post Method failed: HTTP/1.1 500 Internal Server Error
Oct 21, 2011 1:00:24 AM oracle.security.am.engines.rreg.client.RegClient main
*******



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