NullPointerException when user logs in to JIRA
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
This is the error in the UI / logs
1
2
3
4
5
6
7
8
9
10
Cause:
java.lang.RuntimeException: org.apache.jasper.JasperException: java.lang.NullPointerException
Stack Trace: [hide]
java.lang.RuntimeException: org.apache.jasper.JasperException: java.lang.NullPointerException
at com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:39)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:84)
at com.atlassian.jira.web.filters.SitemeshPageFilter.doFilter(SitemeshPageFilter.java:124)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
...
After clearing the JIRA cache, the error changes to be:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Cause:
java.lang.RuntimeException: org.apache.jasper.JasperException: An exception occurred processing JSP page /includes/decorators/aui-layout/head-common.jsp at line 49 46: Map<String, Object> context = DefaultWebFragmentContext.get("atl.header"); 47: List<WebPanel> displayableWebPanels = headWebInterfaceManager.getDisplayableWebPanels("atl.header", context); 48: for (WebPanel webPanel : displayableWebPanels)
{%> 49: <%=webPanel.getHtml(context)%> 50: <%}51: %> 52: <%-<meta http-equiv="Pragma" content="no-cache" />-%> Stacktrace:
Stack Trace: [hide]
java.lang.RuntimeException: org.apache.jasper.JasperException: An exception occurred processing JSP page /includes/decorators/aui-layout/head-common.jsp at line 49
46: Map<String, Object> context = DefaultWebFragmentContext.get("atl.header");
47: List<WebPanel> displayableWebPanels = headWebInterfaceManager.getDisplayableWebPanels("atl.header", context);
48: for (WebPanel webPanel : displayableWebPanels)
{%> 49: <%=webPanel.getHtml(context)%> 50: <%}51: %>
52: <%-<meta http-equiv="Pragma" content="no-cache" />-%>
Stacktrace:
at com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:39)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:84)
at com.atlassian.jira.web.filters.SitemeshPageFilter.doFilter(SitemeshPageFilter.java:124)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
...
Diagnosis
Perform the following query on the DB:
1
select * from cwd_user where lower_user_name = '<USERNAME>';
Then check to see if they have a valid email address or not.
Cause
User does not have a valid email address, this breaks the VM templates. Refer to bug JRASERVER-31656 - An user without an email address fetched from a remote directory can not log in
Solution
Resolution
Set a valid email address for all users experiencing this issue.
Was this helpful?