My Oracle Support Banner

After Upgrade OIM Admin User Cannot Request Access, Update Users, Create Users or Create Roles "Error occurred while evaluating workflow policies..." and "oracle.iam.platform.entitymgr.exception.EntitySearchException: java.lang.NullPointerException" (Doc ID 2316686.1)

Last updated on MAY 27, 2020

Applies to:

Identity Manager - Version 11.1.2.3.0 and later
Information in this document applies to any platform.

Symptoms

The System Administrator is not able to perform several tasks in the Self Service user interface (UI).

  1. From Self Service > Manage >Roles, when oim admin user hits Create, completes the steps in the Create Role flow and hits the Finish button, an error popup is seen with "Error occurred while evaluating workflow policies. Could not determine if Create Role operation requires approval. Corresponding error message is: null."

  2. From Self Service > Manage >Users, when oim admin user hits Create, fills in the users details in the Create User tab and hits the Submit button, an error popup is seen with "Error occurred while evaluating workflow policies. Could not determine if Create User operation requires approval. Corresponding error message is: null."

  3. From Self Service > Manage >Users, when oim admin user selects a user, hits the Modify button, updates the users details in the Modify User tab and hits the Submit button, an error popup is seen with "Error occurred while evaluating workflow policies. Could not determine if Modify User Profile operation requires approval. Corresponding error message is: null."

  4. From the Self Service > Home tab, when oim admin user selects Request Access > Request for Others completes the request and hits the Submit button, an error popup is seen with (for example in an Entitlement request)"Error occurred while evaluating workflow policies. Could not determine if Provision Entitlement operation requires approval. Corresponding error message is: null."


    In the case of an Application Instance request, the error will be like:

In all cases, the log file at $DOMAIN_HOME/servers/OIMMANAGEDSERVER/logs/OIMMANAGEDSERVER-diagnostic.log shows a warning with "Cannot initialize data provider - java.lang.NullPointerException" followed by an error with language similar to the popup message and containing "oracle.iam.platform.entitymgr.exception.EntitySearchException: java.lang.NullPointerException".
For example, the messages for item 1 are like:

[2017-10-04T16:39:53.050-06:00] [<oim_server>] [WARNING] [] [oracle.iam.platform.entitymgr.impl] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oim admin user] [ecid: ] [APP: oim#11.1.2.0.0] [DSID: ] Cannot initialize data provider - java.lang.NullPointerException[[
at oracle.iam.platform.entitymgr.impl.EntityManagerConfigImpl.getDataProvider(EntityManagerConfigImpl.java:309)
at oracle.iam.platform.entitymgr.impl.EntityManagerConfigImpl.getDataProvider(EntityManagerConfigImpl.java:323)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:296)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:289)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.findEntity(EntityManagerImpl.java:823)
at sun.reflect.GeneratedMethodAccessor1629.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
...
]]
[2017-10-04T16:39:53.052-06:00] [<oim_server>] [ERROR] [] [oracle.iam.request.impl] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oim admin user] [ecid: ] [APP: oim#11.1.2.0.0] [DSID: ] Error occurred while evaluating Workflow Policy with ID Create Role. Corresponding error message is: java.lang.NullPointerException.[[
oracle.iam.platform.entitymgr.exception.EntitySearchException: java.lang.NullPointerException
at oracle.iam.platform.entitymgr.util.EntityTypeManagerHelper.getEntity(EntityTypeManagerHelper.java:364)
at oracle.iam.policyengine.impl.PolicyManagerImpl.getRulesAssignedToPolicy(PolicyManagerImpl.java:381)
at oracle.iam.policyengine.internal.impl.PolicyManagerInternalImpl.evaluate(PolicyManagerInternalImpl.java:222)
at oracle.iam.policyengine.internal.impl.PolicyManagerInternalImpl.evaluate(PolicyManagerInternalImpl.java:281)
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluationUtil.evaluateWorkflowPolicy(WorkflowPolicyEvaluationUtil.java:128)
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluationUtil.getApprovalWorkflowId(WorkflowPolicyEvaluationUtil.java:86)
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluator.evaluateWorkflowId(WorkflowPolicyEvaluator.java:18)
at oracle.iam.request.approval.evaluation.impl.WorkflowEvaluationContext.evaluateWorkflowId(WorkflowEvaluationContext.java:21)
at oracle.iam.request.impl.RequestEngine.evaluateWorkflowPolicies(RequestEngine.java:4667)
at oracle.iam.request.impl.RequestEngine.performAuthzAndRequestOverrideChecks(RequestEngine.java:4646)
at oracle.iam.request.impl.RequestEngine.doOperation(RequestEngine.java:4603)
at oracle.iam.impl.OIMServiceImpl.doOperation(OIMServiceImpl.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
...
Caused by: oracle.iam.platform.entitymgr.UnsupportedOperationException: java.lang.NullPointerException
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:310)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:289)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.findEntity(EntityManagerImpl.java:823)
at sun.reflect.GeneratedMethodAccessor1629.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
...
Caused by: java.lang.NullPointerException
at oracle.iam.platform.entitymgr.provider.rdbms.RDBMSDataProvider.isCapable(RDBMSDataProvider.java:326)
at oracle.iam.platform.entitymgr.provider.rdbms.RDBMSDataProvider.getCapability(RDBMSDataProvider.java:133)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:300)
... 185 more

]]
[2017-10-04T16:39:53.059-06:00] [<oim_server>] [ERROR] [] [oracle.iam.request.impl] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oim admin user] [ecid: ] [APP: oim#11.1.2.0.0] [DSID: ] Error occurred while evaluating workflow policies. Could not determine if Create Role operation requires approvals. Corresponding error message is: Error occurred while evaluating Workflow Policy with ID Create Role. Corresponding error message is: java.lang.NullPointerException..[[
oracle.iam.request.approval.evaluation.exception.WorkflowPolicyEvaluationException: Error occurred while evaluating Workflow Policy with ID Create Role. Corresponding error message is: java.lang.NullPointerException.
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluationUtil.evaluateWorkflowPolicy(WorkflowPolicyEvaluationUtil.java:143)
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluationUtil.getApprovalWorkflowId(WorkflowPolicyEvaluationUtil.java:86)
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluator.evaluateWorkflowId(WorkflowPolicyEvaluator.java:18)
at oracle.iam.request.approval.evaluation.impl.WorkflowEvaluationContext.evaluateWorkflowId(WorkflowEvaluationContext.java:21)
at oracle.iam.request.impl.RequestEngine.evaluateWorkflowPolicies(RequestEngine.java:4667)
at oracle.iam.request.impl.RequestEngine.performAuthzAndRequestOverrideChecks(RequestEngine.java:4646)
at oracle.iam.request.impl.RequestEngine.doOperation(RequestEngine.java:4603)
at oracle.iam.impl.OIMServiceImpl.doOperation(OIMServiceImpl.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
...
Caused by: oracle.iam.platform.entitymgr.exception.EntitySearchException: java.lang.NullPointerException
at oracle.iam.platform.entitymgr.util.EntityTypeManagerHelper.getEntity(EntityTypeManagerHelper.java:364)
at oracle.iam.policyengine.impl.PolicyManagerImpl.getRulesAssignedToPolicy(PolicyManagerImpl.java:381)
at oracle.iam.policyengine.internal.impl.PolicyManagerInternalImpl.evaluate(PolicyManagerInternalImpl.java:222)
at oracle.iam.policyengine.internal.impl.PolicyManagerInternalImpl.evaluate(PolicyManagerInternalImpl.java:281)
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluationUtil.evaluateWorkflowPolicy(WorkflowPolicyEvaluationUtil.java:128)
... 168 more
Caused by: oracle.iam.platform.entitymgr.UnsupportedOperationException: java.lang.NullPointerException
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:310)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:289)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.findEntity(EntityManagerImpl.java:823)
at sun.reflect.GeneratedMethodAccessor1629.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
...
Caused by: java.lang.NullPointerException
at oracle.iam.platform.entitymgr.provider.rdbms.RDBMSDataProvider.isCapable(RDBMSDataProvider.java:326)
at oracle.iam.platform.entitymgr.provider.rdbms.RDBMSDataProvider.getCapability(RDBMSDataProvider.java:133)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:300)
... 185 more

]]
[2017-10-04T16:39:53.065-06:00] [<oim_server>] [ERROR] [] [oracle.iam.identity.rolemgmt.utils] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oim admin user] [ecid: ] [APP: oim#11.1.2.0.0] [DSID: ] An exception occurred while performing the operation.[[
oracle.iam.exception.OIMServiceException: Error occurred while evaluating workflow policies. Could not determine if Create Role operation requires approvals. Corresponding error message is: null.
at oracle.iam.request.impl.RequestEngine.evaluateWorkflowPolicies(RequestEngine.java:4675)
at oracle.iam.request.impl.RequestEngine.performAuthzAndRequestOverrideChecks(RequestEngine.java:4646)
at oracle.iam.request.impl.RequestEngine.doOperation(RequestEngine.java:4603)
at oracle.iam.impl.OIMServiceImpl.doOperation(OIMServiceImpl.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
...
Caused by: oracle.iam.request.approval.evaluation.exception.WorkflowPolicyEvaluationException: Error occurred while evaluating Workflow Policy with ID Create Role. Corresponding error message is: java.lang.NullPointerException.
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluationUtil.evaluateWorkflowPolicy(WorkflowPolicyEvaluationUtil.java:143)
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluationUtil.getApprovalWorkflowId(WorkflowPolicyEvaluationUtil.java:86)
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluator.evaluateWorkflowId(WorkflowPolicyEvaluator.java:18)
at oracle.iam.request.approval.evaluation.impl.WorkflowEvaluationContext.evaluateWorkflowId(WorkflowEvaluationContext.java:21)
at oracle.iam.request.impl.RequestEngine.evaluateWorkflowPolicies(RequestEngine.java:4667)
... 164 more
Caused by: oracle.iam.platform.entitymgr.exception.EntitySearchException: java.lang.NullPointerException
at oracle.iam.platform.entitymgr.util.EntityTypeManagerHelper.getEntity(EntityTypeManagerHelper.java:364)
at oracle.iam.policyengine.impl.PolicyManagerImpl.getRulesAssignedToPolicy(PolicyManagerImpl.java:381)
at oracle.iam.policyengine.internal.impl.PolicyManagerInternalImpl.evaluate(PolicyManagerInternalImpl.java:222)
at oracle.iam.policyengine.internal.impl.PolicyManagerInternalImpl.evaluate(PolicyManagerInternalImpl.java:281)
at oracle.iam.request.approval.evaluation.impl.WorkflowPolicyEvaluationUtil.evaluateWorkflowPolicy(WorkflowPolicyEvaluationUtil.java:128)
... 168 more
Caused by: oracle.iam.platform.entitymgr.UnsupportedOperationException: java.lang.NullPointerException
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:310)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:289)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.findEntity(EntityManagerImpl.java:823)
at sun.reflect.GeneratedMethodAccessor1629.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
...
Caused by: java.lang.NullPointerException
at oracle.iam.platform.entitymgr.provider.rdbms.RDBMSDataProvider.isCapable(RDBMSDataProvider.java:326)
at oracle.iam.platform.entitymgr.provider.rdbms.RDBMSDataProvider.getCapability(RDBMSDataProvider.java:133)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.getEntityCapability(EntityManagerImpl.java:300)
... 185 more

]]

Changes

At some point, the environment has been upgraded to version 11.1.2.3.

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.