java.lang.NoSuchMethodError: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V

Jenkins JIRA | ravn | 5 years ago
  1. 0

    Artifactory Release (2.0.4) works with Git plugin 1.1.12, but fails with Git plugin 1.1.14. [RELEASE] Release build triggered FATAL: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V java.lang.NoSuchMethodError: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V at org.jfrog.hudson.release.scm.git.GitManager.createGitAPI(GitManager.java:158) at org.jfrog.hudson.release.scm.git.GitManager.access$100(GitManager.java:42) at org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:188) at org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:168) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at org.jfrog.hudson.release.scm.git.GitManager.getCurrentCommitHash(GitManager.java:52) at org.jfrog.hudson.release.scm.git.GitCoordinator.prepare(GitCoordinator.java:74) at org.jfrog.hudson.release.maven.MavenReleaseWrapper.setUp(MavenReleaseWrapper.java:132) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:605) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462) at hudson.model.Run.run(Run.java:1404) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) According to https://github.com/jenkinsci/git-plugin/compare/git-1.1.12...git-1.1.14#diff-2 GitAPI.java method called was changed in 1.1.13, adding a parameter.

    Jenkins JIRA | 5 years ago | ravn
    java.lang.NoSuchMethodError: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V
  2. 0

    Artifactory Release (2.0.4) works with Git plugin 1.1.12, but fails with Git plugin 1.1.14. [RELEASE] Release build triggered FATAL: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V java.lang.NoSuchMethodError: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V at org.jfrog.hudson.release.scm.git.GitManager.createGitAPI(GitManager.java:158) at org.jfrog.hudson.release.scm.git.GitManager.access$100(GitManager.java:42) at org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:188) at org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:168) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at org.jfrog.hudson.release.scm.git.GitManager.getCurrentCommitHash(GitManager.java:52) at org.jfrog.hudson.release.scm.git.GitCoordinator.prepare(GitCoordinator.java:74) at org.jfrog.hudson.release.maven.MavenReleaseWrapper.setUp(MavenReleaseWrapper.java:132) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:605) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462) at hudson.model.Run.run(Run.java:1404) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) According to https://github.com/jenkinsci/git-plugin/compare/git-1.1.12...git-1.1.14#diff-2 GitAPI.java method called was changed in 1.1.13, adding a parameter.

    Jenkins JIRA | 5 years ago | ravn
    java.lang.NoSuchMethodError: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V
  3. 0

    Log Parser Plugin Parser Rules Questions

    Google Groups | 2 months ago | Bubunia Patra
    java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/Run;Lhudson/FilePath;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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. java.lang.NoSuchMethodError

      hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V

      at org.jfrog.hudson.release.scm.git.GitManager.createGitAPI()
    2. org.jfrog.hudson
      GitManager$CurrentCommitCallable.invoke
      1. org.jfrog.hudson.release.scm.git.GitManager.createGitAPI(GitManager.java:158)
      2. org.jfrog.hudson.release.scm.git.GitManager.access$100(GitManager.java:42)
      3. org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:188)
      4. org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:168)
      4 frames
    3. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:783)
      2. hudson.FilePath.act(FilePath.java:765)
      2 frames
    4. org.jfrog.hudson
      MavenReleaseWrapper.setUp
      1. org.jfrog.hudson.release.scm.git.GitManager.getCurrentCommitHash(GitManager.java:52)
      2. org.jfrog.hudson.release.scm.git.GitCoordinator.prepare(GitCoordinator.java:74)
      3. org.jfrog.hudson.release.maven.MavenReleaseWrapper.setUp(MavenReleaseWrapper.java:132)
      3 frames
    5. Hudson Maven Embedder
      MavenModuleSetBuild$RunnerImpl.doRun
      1. hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:605)
      1 frame
    6. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462)
      2. hudson.model.Run.run(Run.java:1404)
      2 frames
    7. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:238)
      2 frames