This post covers an issue that I encountered on Oracle Identity Manager (OIM) while creating new user in OIM. Error I received on screen was “Error occurred while performing create user operation. Unable to get LDAP connection, and the root cause is – null“.  OIM during installation or later can be integrated with LDAP server using LDAPSync . More on LDAP Sync herehere, and here

  • On user creation in OIM, LDAPSync should create this user in LDAP Server as well.

 

 

If you hit this problem then check error in OIM diagnostic logs at $DOMAIN_HOME/servers/[oim_server1]/logs
______

[2012-10-05T18:59:03.774+00:00] [oim_server1] [ERROR] [IAM-0042002] [oracle.iam.platform.entitymgr.provider.ldap] [tid: [ACTIVE].ExecuteThread: ‘5’ for queue: ‘weblogic.kernel.Default (self-tuning)’] [userId: xelsysadm] [ecid: 004mpHqz1mi6 ESgvDCtHdC0006YZ00001K,0:1] [APP: oim#11.1.1.3.0] [URI: /admin/faces/pages/Admin.jspx] An error occurred while creating the entity in LDAP, and the corresponding error is – {0}[[
oracle.iam.platform.entitymgr.vo. ConnectivityException: java.lang .NullPointerException
at oracle.iam.ldapsync.impl.repository. ITResourceRepository. getConnection (ITResourceRepository.java:39)
at oracle.iam.platform.entitymgr. provider.ldap.LDAPDataProvider. create(LDAPDataProvider.java:465)
at oracle.iam.platform.entitymgr. impl.EntityManagerImpl. createEntity(EntityManagerImpl.java:291)
at oracle.iam.ldapsync.impl. eventhandlers.user. UserCreateLDAPPreProcessHandler. createUser(UserCreateLDAP PreProcessHandler.java:193)

.
.

Caused by: java.lang.NullPointerException
at oracle.ucp. common.Universal ConnectionPoolImpl  $UniversalConnection PoolInternal. createOnePooled ConnectionInternal (UniversalConnectionPoolImpl.java:1614)
at oracle.ucp.common.UniversalConnectionPoolImpl $UniversalConnectionPoolInternal. access$600(Universal ConnectionPoolImpl.java:1446)
at oracle.ucp.common. UniversalConnectionPoolImpl. createOnePooledConnection (UniversalConnectionPoolImpl.java:514)

.

________

 

  • If you hit error like above then check  IT Resource (Manage IT Resource) in OIM Advanced Administration Console

 

  • Search for IT Resource Type Directory Server and change Connection Pooling Supported to False   (This issue seems to be fixed in OIM BP03)