org.apache.velocity.exception.MethodInvocationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Asset thumbnail problem with 2.4.6
    via infoglue by nobody
    ,
  • h4. Summary When the *Sidebar* dark feature is enabled in JIRA, user will not be able to open any JIRA Agile board h4. Steps to Reproduce There are a two way which the issue could be reproduced: * Retrieve a JIRA Cloud backup and restore it into the latest JIRA version * Enable JIRA Dark Feature: *# Access JIRA with this address http://YOUR.JIRA.COM/secure/admin/SiteDarkFeatures!default.jspa *# Enable this Dark Feature {{com.atlassian.jira.projects.ProjectCentricNavigation}} h4. Expected Results JIRA Agile board is loading without problem, and Sidebar is rendered properly !Sidebar.png|thumbnail! h4. Actual Results Unable to access JIRA Agile board, and hit into this error in the UI: {code} 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 'getSidebarHtml' in class com.atlassian.greenhopper.web.rapid.RapidBoardAction threw exception java.lang.NoSuchMethodError: com.atlassian.jira.projects.api.sidebar.ProjectSidebarRenderer.render(Lcom/atlassian/jira/project/Project;Ljava/lang/String;)Ljava/lang/String; at com.pyxis.greenhopper.jira:greenhopper-webactions//templates/greenhopper/web/board/rapid/rapid-board.vm[line 39, column 17] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351) 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.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) at com.atlassian.jira.web.dispatcher.JiraVelocityViewDispatcher.dispatch(JiraVelocityViewDispatcher.java:50) at com.atlassian.jira.web.dispatcher.JiraWebworkViewDispatcher.dispatchViaVelocityView(JiraWebworkViewDispatcher.java:110) {code} h4. Notes This feature is available in JIRA Agile Cloud. But JIRA Agile Server unable to render the feature properly Related KB: [method 'getSidebarHtml' java.lang.NoSuchMethodError when accessing JIRA Agile|https://confluence.atlassian.com/display/AGILEKB/method+'getSidebarHtml'+java.lang.NoSuchMethodError+when+accessing+JIRA+Agile] h4. Workaround Please disable the Sidebar Dark Feature by: # Navigating to JIRA with this address http://YOUR.JIRA.COM/secure/admin/SiteDarkFeatures!default.jspa # Disable this Dark Feature {{com.atlassian.jira.projects.ProjectCentricNavigation}} 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: # (!) *Create a backup of JIRA's database or an XML Backup from JIRA* # Shutdown JIRA # Run the following query in JIRA's database: {code:sql} DELETE FROM feature WHERE FEATURE_NAME like '%ProjectCentricNavigation%'; {code} # Start JIRA
    via by Watania Daniel,
  • h4. Summary When the *Sidebar* dark feature is enabled in JIRA, user will not be able to open any JIRA Agile board h4. Steps to Reproduce There are a two way which the issue could be reproduced: * Retrieve a JIRA Cloud backup and restore it into the latest JIRA version * Enable JIRA Dark Feature: *# Access JIRA with this address http://YOUR.JIRA.COM/secure/admin/SiteDarkFeatures!default.jspa *# Enable this Dark Feature {{com.atlassian.jira.projects.ProjectCentricNavigation}} h4. Expected Results JIRA Agile board is loading without problem, and Sidebar is rendered properly !Sidebar.png|thumbnail! h4. Actual Results Unable to access JIRA Agile board, and hit into this error in the UI: {code} 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 'getSidebarHtml' in class com.atlassian.greenhopper.web.rapid.RapidBoardAction threw exception java.lang.NoSuchMethodError: com.atlassian.jira.projects.api.sidebar.ProjectSidebarRenderer.render(Lcom/atlassian/jira/project/Project;Ljava/lang/String;)Ljava/lang/String; at com.pyxis.greenhopper.jira:greenhopper-webactions//templates/greenhopper/web/board/rapid/rapid-board.vm[line 39, column 17] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351) 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.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) at com.atlassian.jira.web.dispatcher.JiraVelocityViewDispatcher.dispatch(JiraVelocityViewDispatcher.java:50) at com.atlassian.jira.web.dispatcher.JiraWebworkViewDispatcher.dispatchViaVelocityView(JiraWebworkViewDispatcher.java:110) {code} h4. Notes This feature is available in JIRA Agile Cloud. But JIRA Agile Server unable to render the feature properly Related KB: [method 'getSidebarHtml' java.lang.NoSuchMethodError when accessing JIRA Agile|https://confluence.atlassian.com/display/AGILEKB/method+'getSidebarHtml'+java.lang.NoSuchMethodError+when+accessing+JIRA+Agile] h4. Workaround Please disable the Sidebar Dark Feature by: # Navigating to JIRA with this address http://YOUR.JIRA.COM/secure/admin/SiteDarkFeatures!default.jspa # Disable this Dark Feature {{com.atlassian.jira.projects.ProjectCentricNavigation}} 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: # (!) *Create a backup of JIRA's database or an XML Backup from JIRA* # Shutdown JIRA # Run the following query in JIRA's database: {code:sql} DELETE FROM feature WHERE FEATURE_NAME like '%ProjectCentricNavigation%'; {code} # Start JIRA
    via by Daniel Watania,
    • org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDisplayValue' in class com.pyxis.greenhopper.jira.fields.FixForVersion threw exception class java.lang.NullPointerException : null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:249) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
    No Bugmate found.