NullPointerException Occurs When Running idmConfigTool configOAM (Doc ID 1373946.1)

Last updated on MARCH 08, 2017

Applies to:

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

Symptoms


Integration is being attempted between Oracle Access Manager (OAM) and Oracle Identity Manager (OIM) 11.1.1.5 using idmConfigTool, with reference to the following documentation:

Oracle Fusion Middleware Integration Guide for Oracle Access Manager 11g Release 1 (11.1.1)
5 Integrating Oracle Access Manager and Oracle Identity Manager


Steps are completed up to Step 3 of section '5.3 Perform Integration Tasks in Oracle Access Manager' successfully.

However idmConfigTool configOAM fails with  a java.lang.NullPointerException error:

$ ./idmConfigTool.sh -configOAM input_file=oamInput3
Enter ID Store Bind DN password :
Enter User Password for WLSPASSWD:
Confirm User Password for WLSPASSWD:
Enter User Password for OAM11G_OIM_WEBGATE_PASSWD:
Confirm User Password for OAM11G_OIM_WEBGATE_PASSWD:
Enter User Password for IDSTORE_PWD_OAMSOFTWAREUSER:
Confirm User Password for IDSTORE_PWD_OAMSOFTWAREUSER:
Enter User Password for IDSTORE_PWD_OAMADMINUSER:
Confirm User Password for IDSTORE_PWD_OAMADMINUSER:
java.lang.NullPointerException
at oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler.configOAM11gIdStore(OAM11gIntegrationHandler.java:352)
at oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler.execute(OAM11gIntegrationHandler.java:696)
at oracle.idm.automation.AutomationTool.configOAM(AutomationTool.java:593)
at oracle.idm.automation.AutomationTool.parseCmdLine(AutomationTool.java:218)
at oracle.idm.automation.AutomationTool.main(AutomationTool.java:132)

There were errors found. Details have been logged to automation.log


When the problem is reproduced with idmConfigTool log_file and log_level=FINEST parameters, the log file contains entries as follows:

Sep 15, 2011 5:24:03 PM oracle.idm.automation.util.Util setLogger
WARNING: Logger initialized in warning mode
Sep 15, 2011 5:24:17 PM oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler execute
FINER: ENTRY
Sep 15, 2011 5:24:28 PM oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler configOAM11gIdStore
FINER: ENTRY
Sep 15, 2011 5:24:29 PM oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler configOIMIntegration
FINER: Creating mbean connection
Sep 15, 2011 5:24:30 PM oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler configOIMIntegration
FINER: Created mbean connection
Sep 15, 2011 5:24:30 PM oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler getFoundationConfigMBean
FINER: ENTRY
Sep 15, 2011 5:24:30 PM oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler getFoundationConfigMBean
FINER: RETURN com.oracle.oam:Location=AdminServer,name=OamWLST,type=oam.wlst,Application=oam_admin,ApplicationVersion=11.1.1.3.0
Sep 15, 2011 5:24:30 PM oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler configOIMIntegration
FINER: Invoking mbean
Sep 15, 2011 5:24:30 PM oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler configOAM11gIdStore
SEVERE: Error while configuring webgate and domain
java.lang.NullPointerException
at oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler.configOAM11gIdStore(OAM11gIntegrationHandler.java:368)
at oracle.idm.automation.impl.oam.handlers.OAM11gIntegrationHandler.execute(OAM11gIntegrationHandler.java:696)
at oracle.idm.automation.AutomationTool.configOAM(AutomationTool.java:593)
at oracle.idm.automation.AutomationTool.parseCmdLine(AutomationTool.java:218)
at oracle.idm.automation.AutomationTool.main(AutomationTool.java:132)



Steps to reproduce
1. Run idmConfigTool -preConfigIDStore succesfully.
2. Run idmConfigTool -prepareIDStore successfully.
3. Create file oamInput containing similar to the following:

WLSHOST: oam.oracle.com
WLSPORT: 7001
WLSADMIN: weblogic
IDSTORE_HOST: directory.oracle.com
IDSTORE_PORT: 3060
IDSTORE_BINDDN: cn=orcladmin
IDSTORE_USERNAMEATTRIBUTE: uid
IDSTORE_USERSEARCHBASE: cn=Users,dc=oracle,dc=com
IDSTORE_SEARCHBASE: dc=oracle,dc=com
IDSTORE_GROUPSEARCHBASE: cn=Groups,dc=oracle,dc=com
IDSTORE_OAMSOFTWAREUSER: oamLDAP
IDSTORE_OAMADMINUSER: oamadmin
PRIMARY_OAM_SERVERS: oam.oracle.com:5575
WEBGATE_TYPE: ohsWebgate11g
ACCESS_GATE_ID: newcowebgate11g
COOKIE_DOMAIN:
OAM11G_IDSTORE_ROLE_SECURITY_ADMIN: Administrators
OAM_TRANSFER_MODE: OPEN
OAM11G_SSO_ONLY_FLAG: false
OAM11G_OIM_INTEGRATION_REQ: true
OAM11G_OIM_OHS_URL: http://idm.oracle.com:7733/


4. Run the idmConfigTool -configOAM:

./idmConfigTool.sh -configOAM input_file=oamInput


This command generates java.lang.NullPointerException.


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