My Oracle Support Banner

"String index out of range: -1": Error while Provisioning to OID Via Access Policy (Doc ID 1069190.1)

Last updated on FEBRUARY 04, 2020

Applies to:

Identity Manager - Version 9.1.0.2 and later
Information in this document applies to any platform.
**Checked for Relevance on 30-Apr-2013**

Symptoms

Create an access policy which directly provisons "All Users" to OID. Use a prepopulate adapter to prepopulate the organization DN/container DN because you are provisioning these users into a new DN and not the default (cn=Users) DN. 
"Auto-Save" and "Auto-Prepopulate" options are checked in both "OID User" Process definition and Resource object. 
The problem is that the user shows "Provisioning" status in "Resource Details" but when clicking "Edit" and Save the process form and retry the failed tasks of "Create User" and "Container DN Updated"; then only the user gets provisioned to OID. 
This requires human intervention. How to avoid this?
The logs shows the following:
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
com.thortech.xl.integration.OID.util.tcUtilLDAPOperations : getPath():: STARTED
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
com.thortech.xl.integration.OID.util.tcUtilLDAPOperations : getPath():: FINISHED
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID - the initial sContainerDN is:people
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
com.thortech.xl.integration.OID.tcUtilOIDUserOperations : formatOrgDN():: STARTED
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID - Parameter Variables passed into 
com.thortech.xl.integration.OID.tcUtilOIDUserOperations:formatOrgDN(s,s): are sOrgDN = people, sRootDN = dc=***,dc=***,dc=***,
INFO [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID - Parameter Variables passed into 
com.thortech.xl.integration.OID.tcUtilOIDUserOperations:formatOrgDN(s,s): are sOrgDN = people, sRootDN = dc=***,dc=***,dc=***,
ERROR [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID - 
====================================================
ERROR [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID - ERROR in 
com.thortech.xl.integration.OID.tcUtilOIDUserOperations:createUser(S,S,S,S,S) Exception Generic Exception:
ERROR [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
====================================================
ERROR [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
====================================================
ERROR [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID - String index out of range: -1
ERROR [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
====================================================
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
com.thortech.xl.integration.OID.tcUtilOIDUserOperations:createUser(S,S,S,S,S) Returning with code: USER_CREATION_FAILED
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
com.thortech.xl.integration.OID.tcUtilOIDUserOperations : disconnectLDAP():: STARTED
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
com.thortech.xl.integration.OID.util.tcUtilLDAPOperations : disconnectFromLDAP():: STARTED
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
com.thortech.xl.integration.OID.util.tcUtilLDAPOperations : disconnectFromLDAP() : Closing initial directory context
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
com.thortech.xl.integration.OID.util.tcUtilLDAPOperations : disconnectFromLDAP():: FINISHED
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XL_INTG.OID -
com.thortech.xl.integration.OID.tcUtilOIDUserOperations : disconnectLDAP():: FINISHED
DEBUG [ACTIVE] ExecuteThread: for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/setAdpRetVal entered.

Changes

Create a prepopulate adapter for prepopulating a different organization/container DN instead of cn=Users (default). Define Access policy.

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.