Confluence throws NullPointerException when logging in with LDAP user


アトラシアン コミュニティをご利用ください。



A NullPointerException describes a broad category of errors where a value that Confluence is expecting cannot be found. The scope of this KB is specifically to address the following error that appears in the atlassian-confluence.log. If you are getting a different stacktrace, it doesn't hurt to check the steps below anyway, but you may be running into a different problem. 

	at com.atlassian.confluence.user.ConfluenceLoginInterceptor.afterLogin(
	at com.atlassian.seraph.filter.PasswordBasedLoginFilter.login(
	at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at com.atlassian.confluence.util.ClusterHeaderFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(


If using Confluence 3.5 or higher:

  1. Log in as a local Confluence administrator account. Follow Restore Passwords To Recover Admin User Rights if you need help locating one such account or resetting its password.
  2. Navigate to Confluence Admin > User Directories and Edit your LDAP user directory
  3. Under User Schema settings, check that the User Search Filter is enclosed in parenthesis. For example:
    1. Good: (objectclass=inetOrgPerson)
    2. Bad: objectclass=inetOrgPerson
  4. Check Group Schema settings for a similar filter, and ensure that is enclosed as well.

If using Confluence 3.4 or lower:

  1. On your filesystem, open up the file <confluence_install>/confluence/WEB-INF/classes/atlassian-user.xml and check that the search filters are enclosed in parenthesis. For example, this will not work:


    Instead, try:


Alternatively: this can also happen if using the third-party User Security Management Plugin. Disable this plugin as a test.

最終更新日 2018 年 11 月 5 日


Powered by Confluence and Scroll Viewport.