java.lang.NoClassDefFoundError

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.

  • Jenkins LTS 1.509.3 provides Credentials plugin version 1.3.1. Jenkins 1.534 provides Credentials plugin version 1.4. Recent versions of the git-client plugin (at least 1.3.0) depend on the ssh-agent plugin which itself requires version >=1.6 of the Credentials plugin though, otherwise it's failing with: {quote} FATAL: com/cloudbees/plugins/credentials/common/StandardCredentials java.lang.NoClassDefFoundError: com/cloudbees/plugins/credentials/common/StandardCredentials at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:62) [...] {quote} Manually updating the credentials plugin in an automated fashion doesn't seem to be possible (when placing http://updates.jenkins-ci.org/latest/credentials.hpi inside the plugin directory then on Jenkins restart the built-in credentials plugin seems to always get restored to its old/built-in version). AFAICS there's no way to update a built-in plugin besides using the web interface with its plugin manager (neither the credentials.hpi nor the Jenkins cli API way work for me). This hurts quite a lot because there's no way to automatically install recent versions of the git-client plugin any longer. Possible solutions: * Update Credentials plugin in LTS + latest versions * Avoid strict dependency on ssh-agent in git-client plugin * Avoid strict dependency on Credentials plugin >=1.6 in ssh-agent plugin * Provide a way how to update the Credentials plugin in an automated fashion (like 'wget http://updates.jenkins-ci.org/latest/credentials.hpi') [did I miss here something?] Any ideas/feedback?
    via by Michael Prokop,
  • Jenkins LTS 1.509.3 provides Credentials plugin version 1.3.1. Jenkins 1.534 provides Credentials plugin version 1.4. Recent versions of the git-client plugin (at least 1.3.0) depend on the ssh-agent plugin which itself requires version >=1.6 of the Credentials plugin though, otherwise it's failing with: {quote} FATAL: com/cloudbees/plugins/credentials/common/StandardCredentials java.lang.NoClassDefFoundError: com/cloudbees/plugins/credentials/common/StandardCredentials at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:62) [...] {quote} Manually updating the credentials plugin in an automated fashion doesn't seem to be possible (when placing http://updates.jenkins-ci.org/latest/credentials.hpi inside the plugin directory then on Jenkins restart the built-in credentials plugin seems to always get restored to its old/built-in version). AFAICS there's no way to update a built-in plugin besides using the web interface with its plugin manager (neither the credentials.hpi nor the Jenkins cli API way work for me). This hurts quite a lot because there's no way to automatically install recent versions of the git-client plugin any longer. Possible solutions: * Update Credentials plugin in LTS + latest versions * Avoid strict dependency on ssh-agent in git-client plugin * Avoid strict dependency on Credentials plugin >=1.6 in ssh-agent plugin * Provide a way how to update the Credentials plugin in an automated fashion (like 'wget http://updates.jenkins-ci.org/latest/credentials.hpi') [did I miss here something?] Any ideas/feedback?
    via by Michael Prokop,
  • Jenkins users - Error while using git
    via by Unknown author,
  • Jenkins CI server user discussion ()
    via by Unknown author,
    • java.lang.NoClassDefFoundError: org.jenkinsci.plugins.gitclient.GitClient at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:63) at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:54) at hudson.FilePath.act(FilePath.java:914) at hudson.FilePath.act(FilePath.java:887) at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:66) at hudson.plugins.git.GitSCM.createClient(GitSCM.java:569) at hudson.plugins.git.GitSCM.createClient(GitSCM.java:561) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:866) at hudson.model.AbstractProject.checkout(AbstractProject.java:1411) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:651) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:560) at hudson.model.Run.execute(Run.java:1670) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,