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

Jenkins JIRA | Shamul Rohman | 3 years ago
  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 | 3 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 | 3 years ago | Shamul Rohman
    java.lang.NoSuchMethodError: org.jenkinsci.plugins.gitclient.JGitAPIImpl.setCredentials(Lcom/cloudbees/plugins/credentials/Credentials;)V
  3. 0

    Unable to start slave - java.lang.NoSuchMethodError: hudson.plugins.sshslaves.SSHLauncher

    GitHub | 3 years ago | hcguersoy
    java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: hudson.plugins.sshslaves.SSHLauncher.<init>(Ljava/lang/String;ILcom/cloudbees/plugins/credentials/common/StandardUsernameCredentials;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.NoSuchMethodError: hudson.plugins.sshslaves.SSHLauncher

    GitHub | 2 years ago | guss77
    java.lang.NoSuchMethodError: hudson.plugins.sshslaves.SSHLauncher.<init>(Ljava/lang/String;ILcom/cloudbees/plugins/credentials/common/StandardUsernameCredentials;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V
  6. 0

    GitHub comment 82#52410119

    GitHub | 2 years ago | larrycai
    java.lang.NoSuchMethodError: hudson.plugins.sshslaves.SSHLauncher.<init>(Ljava/lang/String;ILcom/cloudbees/plugins/credentials/common/StandardUsernameCredentials;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V

    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

      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