Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21520

NoClassDefFoundError in git client 1.6.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: git-client-plugin
    • Labels:
      None
    • Environment:
      Linux, Jenkins
    • Similar Issues:

      Description

      After update to 1.6.1 I now get the following:

      Building on master in workspace /usr/local/NAS/jenkins_jobs/master-Documentation/workspace

      Deleting project workspace... done

      FATAL: org.jenkinsci.plugins.gitclient.GitClient
      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)

      Reverting to 1.6.0 resolves the issue.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De Loof
            Path:
            src/main/java/hudson/plugins/git/GitTool.java
            src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java
            http://jenkins-ci.org/commit/git-client-plugin/377561efbb3263c05058ab15ffd8cadbaba4dc56
            Log:
            JENKINS-21520 transient NoClassDefFoundError: javax/servlet/ServletException

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: src/main/java/hudson/plugins/git/GitTool.java src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java http://jenkins-ci.org/commit/git-client-plugin/377561efbb3263c05058ab15ffd8cadbaba4dc56 Log: JENKINS-21520 transient NoClassDefFoundError: javax/servlet/ServletException
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Mark Waite
            Path:
            src/main/java/hudson/plugins/git/GitTool.java
            src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java
            http://jenkins-ci.org/commit/git-client-plugin/0b57fecc2bb9c6aa2087f5aceaf82326b62b5859
            Log:
            Merge pull request #171 from ndeloof/master

            JENKINS-21520 transient NoClassDefFoundError: javax/servlet/ServletException

            Compare: https://github.com/jenkinsci/git-client-plugin/compare/886a32277375...0b57fecc2bb9

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/GitTool.java src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java http://jenkins-ci.org/commit/git-client-plugin/0b57fecc2bb9c6aa2087f5aceaf82326b62b5859 Log: Merge pull request #171 from ndeloof/master JENKINS-21520 transient NoClassDefFoundError: javax/servlet/ServletException Compare: https://github.com/jenkinsci/git-client-plugin/compare/886a32277375...0b57fecc2bb9
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Mark Waite
            Path:
            src/main/java/hudson/plugins/git/util/BuildData.java
            src/test/java/hudson/plugins/git/AbstractGitRepository.java
            src/test/java/hudson/plugins/git/AbstractGitTestCase.java
            src/test/java/hudson/plugins/git/GitPublisherTest.java
            src/test/java/hudson/plugins/git/SCMTriggerTest.java
            http://jenkins-ci.org/commit/git-plugin/9369a12c7bc4cdee6cea399029f302533727595a
            Log:
            Inline references to hudson.Functions, trying to resolve JENKINS-21520

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/util/BuildData.java src/test/java/hudson/plugins/git/AbstractGitRepository.java src/test/java/hudson/plugins/git/AbstractGitTestCase.java src/test/java/hudson/plugins/git/GitPublisherTest.java src/test/java/hudson/plugins/git/SCMTriggerTest.java http://jenkins-ci.org/commit/git-plugin/9369a12c7bc4cdee6cea399029f302533727595a Log: Inline references to hudson.Functions, trying to resolve JENKINS-21520
            Hide
            markewaite Mark Waite added a comment -

            The referenced git plugin changes are included in 2.4.0 which was released 18 Jul 2015.

            The referenced git client plugin changes are included in 1.18.0 which was released 18 Jul 2015.

            The root problem is not fixed by those changes and it is not clear if the referenced changes will be sufficient to resolve the issue. They did resolve the issue for Nicolas De Loof

            Show
            markewaite Mark Waite added a comment - The referenced git plugin changes are included in 2.4.0 which was released 18 Jul 2015. The referenced git client plugin changes are included in 1.18.0 which was released 18 Jul 2015. The root problem is not fixed by those changes and it is not clear if the referenced changes will be sufficient to resolve the issue. They did resolve the issue for Nicolas De Loof
            Hide
            jglick Jesse Glick added a comment -

            The general bug is in core, that there should be a blacklist of classes which should never be sent over a slave remoting channel. Cannot remember if that is filed or not.

            Show
            jglick Jesse Glick added a comment - The general bug is in core, that there should be a blacklist of classes which should never be sent over a slave remoting channel. Cannot remember if that is filed or not.

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                s7726 Gavin Swanson
              • Votes:
                3 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: