org.apache.velocity.exception.MethodInvocationException: Invocation of method 'computeStartFor' in class com.pyxis.greenhopper.jira.boards.VersionBoard threw exception class java.lang.NoSuchMethodError : com.atlassian.jira.issue.search.SearchProvider.searchAndSort(Lcom/atlassian/jira/issue/search/SearchRequest;Lcom/opensymphony/user/User;Lcom/atlassian/jira/issue/statistics/util/DocumentHitCollector;Lcom/atlassian/jira/web/bean/PagerFilter;)V

Atlassian JIRA | Andreas Knecht | 8 years ago
  1. 0

    We changed the SearchProvider.searchAndSort() interface to take a HitCollector instead of a DocumentHitCollector. This isn't binary compatible and ends up breaking Greenhopper (and potentially other plugins): {noformat} 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 'computeStartFor' in class com.pyxis.greenhopper.jira.boards.VersionBoard threw exception class java.lang.NoSuchMethodError : com.atlassian.jira.issue.search.SearchProvider.searchAndSort(Lcom/atlassian/jira/issue/search/SearchRequest;Lcom/opensymphony/user/User;Lcom/atlassian/jira/issue/statistics/util/DocumentHitCollector;Lcom/atlassian/jira/web/bean/PagerFilter;)V at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) ... {noformat} I will re-introduce the old method as a deprecated method delegating through to the new method.

    Atlassian JIRA | 8 years ago | Andreas Knecht
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'computeStartFor' in class com.pyxis.greenhopper.jira.boards.VersionBoard threw exception class java.lang.NoSuchMethodError : com.atlassian.jira.issue.search.SearchProvider.searchAndSort(Lcom/atlassian/jira/issue/search/SearchRequest;Lcom/opensymphony/user/User;Lcom/atlassian/jira/issue/statistics/util/DocumentHitCollector;Lcom/atlassian/jira/web/bean/PagerFilter;)V
  2. 0

    We changed the SearchProvider.searchAndSort() interface to take a HitCollector instead of a DocumentHitCollector. This isn't binary compatible and ends up breaking Greenhopper (and potentially other plugins): {noformat} 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 'computeStartFor' in class com.pyxis.greenhopper.jira.boards.VersionBoard threw exception class java.lang.NoSuchMethodError : com.atlassian.jira.issue.search.SearchProvider.searchAndSort(Lcom/atlassian/jira/issue/search/SearchRequest;Lcom/opensymphony/user/User;Lcom/atlassian/jira/issue/statistics/util/DocumentHitCollector;Lcom/atlassian/jira/web/bean/PagerFilter;)V at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) ... {noformat} I will re-introduce the old method as a deprecated method delegating through to the new method.

    Atlassian JIRA | 8 years ago | Andreas Knecht
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'computeStartFor' in class com.pyxis.greenhopper.jira.boards.VersionBoard threw exception class java.lang.NoSuchMethodError : com.atlassian.jira.issue.search.SearchProvider.searchAndSort(Lcom/atlassian/jira/issue/search/SearchRequest;Lcom/opensymphony/user/User;Lcom/atlassian/jira/issue/statistics/util/DocumentHitCollector;Lcom/atlassian/jira/web/bean/PagerFilter;)V
  3. 0

    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

    Atlassian JIRA | 2 years ago | Watania Daniel
    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]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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

    Atlassian JIRA | 2 years ago | Daniel Watania
    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]
  6. 0

    GitHub comment 19#164723929

    GitHub | 12 months ago | NicolasEsteves
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSpacesAsSpaceAdminForUser' in class csum.confluence.permissionmgmt.CustomPermissionManagerAction threw exception java.lang.NoSuchMethodError: com.atlassian.confluence.spaces.persistence.dao.SpaceDao.getSpaces(Lcom/atlassian/confluence/spaces/SpacesQuery;)Ljava/util/List; at /templates/permissionmgmt/display.vm[line 227, column 49]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.velocity.exception.MethodInvocationException

      Invocation of method 'computeStartFor' in class com.pyxis.greenhopper.jira.boards.VersionBoard threw exception class java.lang.NoSuchMethodError : com.atlassian.jira.issue.search.SearchProvider.searchAndSort(Lcom/atlassian/jira/issue/search/SearchRequest;Lcom/opensymphony/user/User;Lcom/atlassian/jira/issue/statistics/util/DocumentHitCollector;Lcom/atlassian/jira/web/bean/PagerFilter;)V

      at org.apache.velocity.runtime.parser.node.ASTMethod.execute()
    2. Apache Velocity
      ASTSetDirective.render
      1. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246)
      2. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
      3. org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)
      4. org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51)
      5. org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95)
      5 frames