Browsing for users at the User Management page throws a NullPointerException

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Symptoms

When accessing the User Management session on Jira and browsing for users, Jira will return a 500 response with the following exception:

1 2 3 java.lang.RuntimeException: java.lang.NullPointerException at com.atlassian.jira.web.action.admin.user.UserBrowser.getBrowsableItems(UserBrowser.java:173) [classes/:?] at com.atlassian.jira.web.action.admin.user.UserBrowser.doExecute(UserBrowser.java:122) [classes/:?]

Diagnosis

No null entries can be found at the cwd_user table:

1 select * from cwd_user where user_name is null;

Cause

Jira throws this error after trying to retrieve information from its user cache. When it is inconsistent with the information stored at the database, this error can happen and prevent users from accessing this functionality.

Solution

Resolution

Refresh the user cache from Jira using the following curl command, making sure to replace username:password to a valid username/password combination from a Jira administrator, and replacing base.url to the Base URL from your Jira environment:

1 curl -v -X DELETE -u username:password https://base.url/rest/internal/1.0/cache/app

Alternative Recommended Resolution

API endpoint above has uncertain effects and it is not recommended to be used. You might consider the alternative User Cache reset provided below:

Filtering users in the User Management page returns an error in Jira Data Center

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.