java.lang.NoSuchMethodError

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.

  • 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}
    via by Shamul Rohman,
  • 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}
    via by Shamul Rohman,
    • 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)
    No Bugmate found.