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

a NoClassDefFoundError org/spearce/jgit/lib/ObjectId is raised when building from gerrit / gerrit trigger

XMLWordPrintable

      Using
      Jenkins 1.509
      Jenkins GIT client plugin 1.0.5
      Jenkins GIT plugin 1.3.0
      Gerrit Trigger 2.9.0

      The following error is thrown:
      Retriggered by user anonymous for Gerrit: http://172.18.48.95/1
      Building in workspace /home/ggargiulo/.jenkins/workspace/destination-management-gerrit
      Checkout:destination-management-gerrit / /home/ggargiulo/.jenkins/workspace/destination-management-gerrit - hudson.remoting.LocalChannel@2a081f8f
      Using strategy: Gerrit-Plugin
      Fetching changes from 1 remote Git repository
      Fetching upstream changes from origin
      FATAL: org/spearce/jgit/lib/ObjectId
      java.lang.NoClassDefFoundError: org/spearce/jgit/lib/ObjectId
      at hudson.plugins.gerrit.buildchoosers.GerritBuildChooser.parseCommit(GerritBuildChooser.java:111)
      at hudson.plugins.gerrit.buildchoosers.GerritBuildChooser.sortRevList(GerritBuildChooser.java:90)
      at hudson.plugins.gerrit.buildchoosers.GerritBuildChooser.getCandidateRevisions(GerritBuildChooser.java:46)
      at hudson.plugins.git.util.BuildChooser.getCandidateRevisions(BuildChooser.java:81)
      at hudson.plugins.git.util.BuildChooser.getCandidateRevisions(BuildChooser.java:71)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942)
      at hudson.FilePath.act(FilePath.java:865)
      at hudson.FilePath.act(FilePath.java:838)
      at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1364)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:670)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:575)
      at hudson.model.Run.execute(Run.java:1575)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)
      Caused by: java.lang.ClassNotFoundException: org.spearce.jgit.lib.ObjectId
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      ... 19 more

            jyrkiput jyrkiput
            nemo83 Giovanni Gargiulo
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: