java.lang.NoSuchMethodError: org.jenkinsci.plugins.gitclient.JGitAPIImpl.setCredentials(Lcom/cloudbees/plugins/credentials/Credentials;)V

Jenkins JIRA | Shamul Rohman | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Tried out Jgit with credential on linux (Centos 6.4) and got the following error {code} FATAL: org.jenkinsci.plugins.gitclient.JGitAPIImpl.setCredentials(Lcom/cloudbees/plugins/credentials/Credentials;)V java.lang.NoSuchMethodError: org.jenkinsci.plugins.gitclient.JGitAPIImpl.setCredentials(Lcom/cloudbees/plugins/credentials/Credentials;)V at hudson.plugins.git.extensions.impl.JGitCredential$1.invoke(JGitCredential.java:71) at hudson.plugins.git.extensions.impl.JGitCredential$1.invoke(JGitCredential.java:67) at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:26) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.withRepository(JGitAPIImpl.java:103) at hudson.plugins.git.extensions.impl.JGitCredential.decorate(JGitCredential.java:67) at hudson.plugins.git.GitSCM.createClient(GitSCM.java:560) at hudson.plugins.git.GitSCM.createClient(GitSCM.java:550) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:825) at hudson.model.AbstractProject.checkout(AbstractProject.java:1411) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:657) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562) at hudson.model.Run.execute(Run.java:1665) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) {code}

    Jenkins JIRA | 4 years ago | Shamul Rohman
    java.lang.NoSuchMethodError: org.jenkinsci.plugins.gitclient.JGitAPIImpl.setCredentials(Lcom/cloudbees/plugins/credentials/Credentials;)V
  2. 0

    Tried out Jgit with credential on linux (Centos 6.4) and got the following error {code} FATAL: org.jenkinsci.plugins.gitclient.JGitAPIImpl.setCredentials(Lcom/cloudbees/plugins/credentials/Credentials;)V java.lang.NoSuchMethodError: org.jenkinsci.plugins.gitclient.JGitAPIImpl.setCredentials(Lcom/cloudbees/plugins/credentials/Credentials;)V at hudson.plugins.git.extensions.impl.JGitCredential$1.invoke(JGitCredential.java:71) at hudson.plugins.git.extensions.impl.JGitCredential$1.invoke(JGitCredential.java:67) at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:26) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.withRepository(JGitAPIImpl.java:103) at hudson.plugins.git.extensions.impl.JGitCredential.decorate(JGitCredential.java:67) at hudson.plugins.git.GitSCM.createClient(GitSCM.java:560) at hudson.plugins.git.GitSCM.createClient(GitSCM.java:550) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:825) at hudson.model.AbstractProject.checkout(AbstractProject.java:1411) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:657) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562) at hudson.model.Run.execute(Run.java:1665) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) {code}

    Jenkins JIRA | 4 years ago | Shamul Rohman
    java.lang.NoSuchMethodError: org.jenkinsci.plugins.gitclient.JGitAPIImpl.setCredentials(Lcom/cloudbees/plugins/credentials/Credentials;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.jenkinsci.plugins.gitclient.JGitAPIImpl.setCredentials(Lcom/cloudbees/plugins/credentials/Credentials;)V

      at hudson.plugins.git.extensions.impl.JGitCredential$1.invoke()
    2. hudson.plugins.git
      JGitCredential$1.invoke
      1. hudson.plugins.git.extensions.impl.JGitCredential$1.invoke(JGitCredential.java:71)
      2. hudson.plugins.git.extensions.impl.JGitCredential$1.invoke(JGitCredential.java:67)
      2 frames
    3. org.jenkinsci.plugins
      JGitAPIImpl.withRepository
      1. org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:26)
      2. org.jenkinsci.plugins.gitclient.JGitAPIImpl.withRepository(JGitAPIImpl.java:103)
      2 frames
    4. hudson.plugins.git
      JGitCredential.decorate
      1. hudson.plugins.git.extensions.impl.JGitCredential.decorate(JGitCredential.java:67)
      1 frame
    5. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.createClient(GitSCM.java:560)
      2. hudson.plugins.git.GitSCM.createClient(GitSCM.java:550)
      3. hudson.plugins.git.GitSCM.checkout(GitSCM.java:825)
      3 frames
    6. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1411)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:657)
      2 frames
    7. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
      2. hudson.model.Run.execute(Run.java:1665)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:246)
      5 frames