View user in administrative screens give null pointer exception

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

When trying to view a user in the administrative screens, a system error is thrown similar to the following.
 

The following appears in the atlassian-confluence.log:

2012-07-06 21:28:10,266 ERROR [http-10.0.2.191-80-2] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
 -- url: /admin/users/viewuser.action | userName: user | referer: http://confluence.example.com/admin/users/showallusers.action?searchTerm=*&usernameTerm=*&fullnameTerm=&emailTerm=&resultsPerPage=10&advanced=false&startIndex=0
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'canRemove' in  class com.atlassian.confluence.user.actions.ViewUserAction threw exception java.lang.NullPointerException at /admin/users/viewuser.vm[line 141, column 42]
	at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
	at org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:470)
	at org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62)

Causes

Resolution

Rebuild the Confluence index from scratch

(info) These errors will also dissipate as on a per user basis as the index updates itself but rebuilding it from scratch will ensure they are all corrected all at once.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.