Wednesday, April 11, 2012

OAM-OIM 11.1.1.5 integration : Executing –configOAM returns java.lang.NullPointerException

When integrating OAM-OIM 11.1.1.5 during the integration as part of the step 
idmConfigTool –configOAM input_file=config_oam.props tool reports the following error 
 
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)
Apr 11, 2012 12:34:31 PM oracle.idm.automation.util.Util setLogger 

Here is how to solve this.

Take a look at the Admin Server output (AdminServer.out). you would see the below line
 
Error validating Group Search Base : oracle.security.am.engines.commo
n.identity.provider.exceptions.TestConnectionException: OAMSSA-20046: Group Sear
ch Base not found or has 0 elements or Role Security Admin is invalid..
WARNING: Role Security Admin (string value) has been deprecated.
  
OAM11G_IDSTORE_ROLE_SECURITY_ADMIN: OAMAdministrators 
 
You have created the config_oam.props following the sample in the documentation.
Sample shows OAMAdministrators as the group for the role security admin. But OID will not have this group . 
Instead running the IDMConfigTool in previous steps would have created the group OAMAdmins in OID
 
Change the above line to 
OAM11G_IDSTORE_ROLE_SECURITY_ADMIN: OAMAdmins 
Re Run the IDM Config tool.  You should be able to complete this step successfully. 

No comments: