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#] [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 (
at oracle.iam.platform.entitymgr. provider.ldap.LDAPDataProvider. create(
at oracle.iam.platform.entitymgr. impl.EntityManagerImpl. createEntity(
at oracle.iam.ldapsync.impl. eventhandlers.user. UserCreateLDAPPreProcessHandler. createUser(UserCreateLDAP


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




  • 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)