Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hallo, when I press "Show all users" app arises an java NullPointer exception error

Damir Hohnjec March 29, 2018

Cause

java.lang.NullPointerException
    at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)

Stack Trace:[hide]

java.lang.NullPointerException
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)
	at com.google.common.collect.ImmutableCollection$ArrayBasedBuilder.add(ImmutableCollection.java:339)
	at com.google.common.collect.ImmutableList$Builder.add(ImmutableList.java:652)
	at com.google.common.collect.ImmutableList$Builder.add(ImmutableList.java:630)
	at com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:282)
	at com.google.common.collect.ImmutableCollection$ArrayBasedBuilder.addAll(ImmutableCollection.java:360)
	at com.google.common.collect.ImmutableList$Builder.addAll(ImmutableList.java:665)
	at com.atlassian.confluence.api.model.pagination.PageResponseImpl$Builder.addAll(PageResponseImpl.java:164)
	at com.atlassian.confluence.api.model.pagination.PageResponseImpl.from(PageResponseImpl.java:80)
	at com.atlassian.confluence.api.impl.pagination.PaginationServiceImpl.executeBatch(PaginationServiceImpl.java:173)
	at com.atlassian.confluence.api.impl.pagination.PaginationServiceImpl.lambda$doRequestInTransaction$2(PaginationServiceImpl.java:157)
	at com.atlassian.confluence.api.impl.ReadOnlyAndReadWriteTransactionConversionTemplate.lambda$executeInReadOnly$0(ReadOnlyAndReadWriteTransactionConversionTemplate.java:48)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
	at com.atlassian.confluence.api.impl.ReadOnlyAndReadWriteTransactionConversionTemplate.executeInReadOnly(ReadOnlyAndReadWriteTransactionConversionTemplate.java:48)
	at com.atlassian.confluence.api.impl.pagination.PaginationServiceImpl.doRequestInTransaction(PaginationServiceImpl.java:139)
	at com.atlassian.confluence.api.impl.pagination.PaginationServiceImpl.doPaginationListRequest(PaginationServiceImpl.java:71)
	at com.atlassian.confluence.internal.user.UserSearchServiceInternalImpl.doUserSearch(UserSearchServiceInternalImpl.java:70)
	at com.atlassian.confluence.user.actions.AbstractSearchCrowdUsersAction.doUserSearch(AbstractSearchCrowdUsersAction.java:98)
	at com.atlassian.confluence.user.actions.BrowseUsersAction.execute(BrowseUsersAction.java:9)

1 answer

1 accepted

1 vote
Answer accepted
Suren Raj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 29, 2018

Hi, Damir.

According to the error shown, It's most likely due to Confluence can't build pagination View All Users Page. As a troubleshooting step, here's what I'd like you to Rebuild the Content Indexes From Scratch on Confluence Server:

 

If rebuilding the index doesn't help, please remove the current external user directory and re-create it. See Confluence triggers NPE when a user tries to open View All Users for more information.

 

Cheers

Damir Hohnjec March 29, 2018

Hi, thank's, I have to remove an external user directory, and the app shows me now correctly one user (admin) without exception. When I try to add another, on top of the screen, is shown:
Uses allowed by the license: 10
Current active users: 10

which is not correct and I can'tadd another! Any ideas what to do now?
greeting,

Damir Hohnjec

Suren Raj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 29, 2018

Hi, Damir.

 

Please follow the below and check for active users counting towards the Confluence license:
https://confluence.atlassian.com/confkb/how-to-get-a-list-of-active-users-counting-towards-the-confluence-license-298978076.html

 

Cheers

Damir Hohnjec March 29, 2018

Hi, Suren. 

Reindexing Content has recovered Users count, but all of my problems were caused because someone has renamed setting from Confluence in Jira SD! After recovering this everything was working fine. Thank you for your time with best wishes, 

Damir Hohnjec

image.png

Damir Hohnjec March 29, 2018

PS.NullPointer exception Bug for "Show users..." still arises when "User Diectory" is pointed to unexisting host/application!

Like Yevgen Lasman likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events