java.lang.NoClassDefFoundError: org/eclipse/jgit/lib/Repository

JFrog JIRA | Chris Beams | 5 years ago
  1. 0

    I've tried to install an extension defined on e.x.o that was missing a dependency (jgit). The installation stopped in mid-flight because of this error (in the console, not in the UI): {noformat} 2012-07-13 18:19:43,588 [http://localhost:8080/xwiki/bin/view/Main/] INFO .HibernateDataMigrationManager - No storage migration required since current version is [40001] Exception in thread "Thread-17" java.lang.NoClassDefFoundError: Failed to get fields for class [org.xwiki.git.internal.GitScriptService] because the class [org/eclipse/jgit/lib/Repository] couldn't be found in the ClassLoader. at org.xwiki.component.util.ReflectionUtils.getAllFields(ReflectionUtils.java:70) at org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptor(ComponentDescriptorFactory.java:132) at org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptors(ComponentDescriptorFactory.java:105) at org.xwiki.component.annotation.ComponentAnnotationLoader.register(ComponentAnnotationLoader.java:164) at org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:139) at org.xwiki.extension.jar.internal.handler.JarExtensionHandler.loadComponents(JarExtensionHandler.java:145) at org.xwiki.extension.jar.internal.handler.JarExtensionHandler.install(JarExtensionHandler.java:102) at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:80) at org.xwiki.extension.job.internal.InstallJob.installExtension(InstallJob.java:208) at org.xwiki.extension.job.internal.InstallJob.applyAction(InstallJob.java:263) at org.xwiki.extension.job.internal.InstallJob.start(InstallJob.java:161) at org.xwiki.job.AbstractJob.start(AbstractJob.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:156) at java.lang.Thread.run(Thread.java:680) {noformat}

    XWiki.org JIRA | 4 years ago | Vincent Massol
    java.lang.NoClassDefFoundError: Failed to get fields for class [org.xwiki.git.internal.GitScriptService] because the class [org/eclipse/jgit/lib/Repository] couldn't be found in the ClassLoader.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Started on Sep 5, 2011 11:19:18 AM Using strategy: Gerrit-Plugin [poll] Last Build : #3475 [poll] Last Built Revision: Revision bd497976a03ce6de50d294f1a593e6fd462f93e7 (timebased) Fetching changes from the remote Git repositories Fetching upstream changes from ssh://lisa-hudson@delta.deu.hp.com:29418/lisa Polling for changes in ERROR: Failed to record SCM polling 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.GitSCM$1.invoke(GitSCM.java:683) at hudson.plugins.git.GitSCM$1.invoke(GitSCM.java:665) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:665) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:355) at hudson.scm.SCM.poll(SCM.java:372) at hudson.model.AbstractProject.poll(AbstractProject.java:1311) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    Jenkins JIRA | 5 years ago | tisoft_media
    java.lang.NoClassDefFoundError: org/spearce/jgit/lib/ObjectId

    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.NoClassDefFoundError

      org/eclipse/jgit/lib/Repository

      at org.jfrog.bamboo.release.scm.git.GitCoordinator.prepare()
    2. org.jfrog.bamboo
      ArtifactoryPreBuildAction.call
      1. org.jfrog.bamboo.release.scm.git.GitCoordinator.prepare(GitCoordinator.java:50)
      2. org.jfrog.bamboo.release.provider.AbstractReleaseProvider.prepare(AbstractReleaseProvider.java:69)
      3. org.jfrog.bamboo.release.action.ArtifactoryPreBuildAction.call(ArtifactoryPreBuildAction.java:70)
      3 frames