NPE when creating Account using SCIM API Interface

I’m attempting to create an Account with an application and identity I created in a custom Plugin and am getting a NPE and not sure why.

It does work when I create an account with another type of existing application.

I have a NPE I’m trying to troubleshoot and am not able to match the line numbers with the stack trace shown below to determine the cause of it. Can anyone with access to the source identify what’s causing the exception?:

2023-05-09T12:43:55,068 ERROR http-nio-8080-exec-73 rest.scim.jaxrs.SCIMExceptionMapper:64 - Unexpected exception:

java.lang.NullPointerException: null
at sailpoint.service.scim.AccountService.buildResource(AccountService.java:285) ~[scim-server.jar:8.3p1 Build 482e85d988b-20220829-142216]
at sailpoint.service.scim.AccountService.buildResourceResponse(AccountService.java:503) ~[scim-server.jar:8.3p1 Build 482e85d988b-20220829-142216]
at sailpoint.service.scim.AccountService.modifyAccount(AccountService.java:362) ~[scim-server.jar:8.3p1 Build 482e85d988b-20220829-142216]
at sailpoint.service.scim.AccountService.modifyAccount(AccountService.java:316) ~[scim-server.jar:8.3p1 Build 482e85d988b-20220829-142216]
at sailpoint.service.scim.AccountService.createAccount(AccountService.java:163) ~[scim-server.jar:8.3p1 Build 482e85d988b-20220829-142216]
at sailpoint.rest.scim.AccountListResource.createAccount(AccountListResource.java:56) ~[scim-server.jar:8.3 Build f4b330b4da3-20220427-175259]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) ~[jersey-server-2.34.jar:?]

POST {{host}}/scim/v2/Accounts
Authorization: Bearer {{auth_token}}
Content-Type: application/json

{“identity”:{“userName”:“LewisArnold16”,“value”:“0a0000fa87ce11928187e80e9b553a6d”},“application”:{“displayName”:“Aceiss Man”,“value”:“0a0000fa87851cd28187b385081a66f0”},“nativeIdentity”:“LewisArnold16”,“displayName”:“Arnold Lewis”,“urn:ietf:params:scim:schemas:sailpoint:1.0:Application:Schema:Aceiss Man:account”:{“businessCategory”:“Project Manager”,“office”:“Denver”,“cn”:“Arnold Lewis”,“samAccountName”:“LewisArnold16”},“active”:true,“locked”:false}

Hi @ebakerski

Is this issue resolve now. If not please check the buildResource method in the AccountService.java file and ensure that any object or reference being accessed there is not null

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.