java.lang.NoSuchMethodError: com.taskadapter.redmineapi.RedmineManager.getTransport()Lcom/taskadapter/redmineapi/internal/Transport;

Jenkins JIRA | Alex Muthmann | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    If you try to use the redmine-plugin with an https redmine server, RedmineMetricsCalculator throws an exception in line 43. This can be reproduced if you try to build the redmine-plugin with a current jenkins as parent project. I assume the reason is the usage of the old deprecated org.apache.commons.httpclient library. Please find a patch to solve this problem (and JENKINS-18110) attached. {code} java.lang.NoSuchMethodError: com.taskadapter.redmineapi.RedmineManager.getTransport()Lcom/taskadapter/redmineapi/internal/Transport; at hudson.plugins.redmine.RedmineMetricsCalculator.calc(RedmineMetricsCalculator.java:43) at hudson.plugins.redmine.RedmineMetricsPublisher.perform(RedmineMetricsPublisher.java:54) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1757) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) {code}

    Jenkins JIRA | 3 years ago | Alex Muthmann
    java.lang.NoSuchMethodError: com.taskadapter.redmineapi.RedmineManager.getTransport()Lcom/taskadapter/redmineapi/internal/Transport;
  2. 0

    If you try to use the redmine-plugin with an https redmine server, RedmineMetricsCalculator throws an exception in line 43. This can be reproduced if you try to build the redmine-plugin with a current jenkins as parent project. I assume the reason is the usage of the old deprecated org.apache.commons.httpclient library. Please find a patch to solve this problem (and JENKINS-18110) attached. {code} java.lang.NoSuchMethodError: com.taskadapter.redmineapi.RedmineManager.getTransport()Lcom/taskadapter/redmineapi/internal/Transport; at hudson.plugins.redmine.RedmineMetricsCalculator.calc(RedmineMetricsCalculator.java:43) at hudson.plugins.redmine.RedmineMetricsPublisher.perform(RedmineMetricsPublisher.java:54) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1757) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) {code}

    Jenkins JIRA | 3 years ago | Alex Muthmann
    java.lang.NoSuchMethodError: com.taskadapter.redmineapi.RedmineManager.getTransport()Lcom/taskadapter/redmineapi/internal/Transport;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.taskadapter.redmineapi.RedmineManager.getTransport()Lcom/taskadapter/redmineapi/internal/Transport;

      at hudson.plugins.redmine.RedmineMetricsCalculator.calc()
    2. hudson.plugins.redmine
      RedmineMetricsPublisher.perform
      1. hudson.plugins.redmine.RedmineMetricsCalculator.calc(RedmineMetricsCalculator.java:43)
      2. hudson.plugins.redmine.RedmineMetricsPublisher.perform(RedmineMetricsPublisher.java:54)
      2 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
      6. hudson.model.Run.execute(Run.java:1757)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:234)
      9 frames