My Oracle Support Banner

Getting Nullpointer Error While Updating Access Policy Via Rest API (Doc ID 3051068.1)

Last updated on OCTOBER 08, 2024

Applies to:

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

Symptoms


Getting Nullpointer error while updating deniedApplications element for an access policy using update access policy rest API.

 

.....................

"deniedApplications": [
{
"id": "222",
"name": "LDAP1"
}
]

....................


If we remove deniedApplications from above json file, update api works fine but on adding deniedApplications element, we see below as response:

{
  "title": "java.lang.NullPointerException",
  "status": 500,
  "detail": "java.lang.NullPointerException",
  "instance": "oracle.iam.accesspolicy.exception.AccessPolicyServiceException",
  "referer": "https://<host>:<port>/iam/governance/adminservice/api/v1/accesspolicies/1420/"
}

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!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.