NullPointerException when user logs in to JIRA
Symptoms
This is the error in the UI / logs
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:
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:
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 - JRA-31656Getting issue details... STATUS
Resolution
Set a valid email address for all users experiencing this issue.