Child pages
  • method 'getSidebarHtml' java.lang.NoSuchMethodError when accessing JIRA Agile
Skip to end of metadata
Go to start of metadata

Symptoms

The following appears in the atlassian-jira.log:

2014-09-08 14:59:37,009 http-bio-8080-exec-8 ERROR admin 899x397x1 1neos1t 75.182.66.108 /secure/RapidBoard.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NoSuchMethodError: com.atlassian.jira.projects.agile.GlobalBoardSidebarRenderer.render(Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
java.lang.NoSuchMethodError: com.atlassian.jira.projects.agile.GlobalBoardSidebarRenderer.render(Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	at com.atlassian.greenhopper.sidebar.GlobalBoardSidebarRendererAdapterImpl.render(GlobalBoardSidebarRendererAdapterImpl.java:47)
	at com.atlassian.greenhopper.sidebar.GlobalBoardSidebarRenderer.render(GlobalBoardSidebarRenderer.java:45)
	at com.atlassian.greenhopper.web.rapid.RapidBoardAction.getSidebarHtml(RapidBoardAction.java:187)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  <+1> (DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:381)
	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:370)
	at com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxingMethod.invoke(AnnotationBoxingMethod.java:26)
	at com.atlassian.velocity.htmlsafe.introspection.UnboxingMethod.invoke(UnboxingMethod.java:30)
	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
	at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)
	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.writeEncodedBodyImpl(DefaultVelocityManager.java:117)
	at com.atlassian.velocity.DefaultVelocityManager.writeEncodedBody(DefaultVelocityManager.java:97)
	at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.toWriterImpl(DefaultVelocityTemplatingEngine.java:146)
	at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.asHtml(DefaultVelocityTemplatingEngine.java:134)  <+4> (JiraVelocityViewDispatcher.java:50) (JiraWebworkViewDispatcher.java:110) (JiraWebworkViewDispatcher.java:69) (JiraWebworkActionDispatcher.java:204)

Cause

There is a dark feature in JIRA which forces the usage of a sidebar that is not properly rendered in JIRA Agile.

Workaround

  1. Access the following URL in your JIRA instance:

    http://<jira-address>/secure/admin/SiteDarkFeatures!default.jspa
  2. Click on 'Disable' next to the "com.atlassian.jira.projects.ProjectCentricNavigation.Switch" key.

If the problem remains after removing the dark feature, some users may have opted to use the new Navigation mode through a banner suggestion, so we'll need to remove their opt-in directly from the database with the following steps

  1. (warning) Create a backup of JIRA's database or an XML Backup from JIRA so we can rollback in case anything goes wrong in the process
  2. Shutdown JIRA
  3. Run the following query in JIRA's database:

     

    delete from feature where FEATURE_NAME like '%ProjectCentricNavigation%';
  4. Start JIRA

Help us improve!

  • No labels