Browsing projects throws ProjectRole can not be null error

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

Symptoms

Browsing projects results in error message:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 java.lang.RuntimeException: org.apache.jasper.JasperException: An exception occurred processing JSP page /includes/decorators/aui-layout/head-resources.jsp at line 12 9: // 10: HeaderFooterRendering headerAndFooter = ComponentAccessor.getComponent(HeaderFooterRendering.class); 11: 12: headerAndFooter.includeHeadResources(out); 13: %> 14: <script type="text/javascript" src="<%=headerAndFooter.getKeyboardShortCutScript(request) %>"></script> 15: <% Stacktrace: java.lang.RuntimeException: org.apache.jasper.JasperException: An exception occurred processing JSP page /includes/decorators/aui-layout/head-resources.jsp at line 12 9: // 10: HeaderFooterRendering headerAndFooter = ComponentAccessor.getComponent(HeaderFooterRendering.class); 11: 12: headerAndFooter.includeHeadResources(out); 13: %> 14: <script type="text/javascript" src="<%=headerAndFooter.getKeyboardShortCutScript(request) %>"></script> 15: <% Stacktrace: at com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:37) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:92) at com.atlassian.jira.web.filters.SitemeshPageFilter.doFilter(SitemeshPageFilter.java:123) ... at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /includes/decorators/aui-layout/head-resources.jsp at line 12 9: // 10: HeaderFooterRendering headerAndFooter = ComponentAccessor.getComponent(HeaderFooterRendering.class); 11: 12: headerAndFooter.includeHeadResources(out); 13: %> 14: <script type="text/javascript" src="<%=headerAndFooter.getKeyboardShortCutScript(request) %>"></script> 15: <% Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) ... at com.opensymphony.sitemesh.compatability.OldDecorator2NewDecorator.render(OldDecorator2NewDecorator.java:46) at com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:33) ... 116 more Caused by: java.lang.IllegalArgumentException: ProjectRole can not be null at com.atlassian.jira.security.roles.DefaultProjectRoleManager.isUserInProjectRole(DefaultProjectRoleManager.java:233) at com.atlassian.jira.security.roles.DefaultProjectRoleManager.isUserInProjectRole(DefaultProjectRoleManager.java:246) at sun.reflect.GeneratedMethodAccessor745.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

Cause

A non-existing user is being referred in a JIRA Project Role.

Resolution

  • Remove any Project Roles that are referring to non-existing users.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.