Administration pages show getNotEmptySectionsForLocation error

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

An administrator goes to the Administration interface and gets a gigantic stack trace, and part of the page renders below. 3

The following appears in the atlassian-jira.log and on screen:

An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getNotEmptySectionsForLocation' in class com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager threw exception java.lang.NullPointerException at templates/plugins/webfragments/system-admin-navigation-bar.vm[line 3, column 42] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.Template.merge(Template.java:328) at org.apache.velocity.Template.merge(Template.java:235) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:381) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:67) at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.asHtml(DefaultVelocityTemplatingEngine.java:104) at com.atlassian.jira.web.component.AbstractWebComponent.getHtml(AbstractWebComponent.java:35) at 

Screenshot of the issue:

Diagnosis

Run this query:

select pname from project where project.avatar NOT IN (select id from avatar);

Any projects which come up are affected by this issue.

Cause

The project avatar as identified in the projects table does not exist in the avatar table.

Resolution

  1. Re-upload the project avatar as another user with administrator permissions.

    (info) If another administrator doesn't exist or the password is forgotten, please following the knowledge article, Retrieving the JIRA Administrator

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.