Hi,
I got the same class not found exception with the latest Jenkins,
gerrit-trigger (2.7.0) and all the update plugin.
I googled around, notice that the there is an existing issue in Gerrit
Trigger filed last year, but still unresolved.
One solution suggested last year was to update the latest gerrit
trigger and manual install the plugin in jenkins.
But since I am already in the latest version, not sure how can I get
around this issue. please HELP.
Here is the stack trace,
Using strategy: Gerrit-Plugin
Fetching changes from 1 remote Git repository
Fetching upstream changes from ssh://dummy@localhost:29418/test7.git
FATAL: org/spearce/jgit/lib/ObjectIdjava.lang.NoClassDefFoundError
<http://stacktrace.jenkins-ci.org/search?query=java.lang.NoClassDefFoundError>:
org/spearce/jgit/lib/ObjectId
at
hudson.plugins.gerrit.buildchoosers.GerritBuildChooser.parseCommit(GerritBuildChooser.java:111)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.gerrit.buildchoosers.GerritBuildChooser.parseCommit&entity=method>
at
hudson.plugins.gerrit.buildchoosers.GerritBuildChooser.sortRevList(GerritBuildChooser.java:90)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.gerrit.buildchoosers.GerritBuildChooser.sortRevList&entity=method>
at
hudson.plugins.gerrit.buildchoosers.GerritBuildChooser.getCandidateRevisions(GerritBuildChooser.java:46)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.gerrit.buildchoosers.GerritBuildChooser.getCandidateRevisions&entity=method>
at
hudson.plugins.git.util.BuildChooser.getCandidateRevisions(BuildChooser.java:70)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.util.BuildChooser.getCandidateRevisions&entity=method>
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1097)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM$2.invoke&entity=method>
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM$2.invoke&entity=method>
at hudson.FilePath.act(FilePath.java:852)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method>
at hudson.FilePath.act(FilePath.java:825)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method>
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.determineRevisionToBuild&entity=method>
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method>
at hudson.model.AbstractProject.checkout(AbstractProject.java:1325)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method>
at
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method>
at
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
<http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method>
at
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
at hudson.model.Run.execute(Run.java:1543)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
at hudson.model.ResourceController.execute(ResourceController.java:88)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
at hudson.model.Executor.run(Executor.java:236)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
Caused by: java.lang.ClassNotFoundException
<http://stacktrace.jenkins-ci.org/search?query=java.lang.ClassNotFoundException>:
org.spearce.jgit.lib.ObjectId
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
<http://stacktrace.jenkins-ci.org/search/?query=java.net.URLClassLoader$1.run&entity=method>
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
<http://stacktrace.jenkins-ci.org/search/?query=java.net.URLClassLoader$1.run&entity=method>
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 18 more
On Thursday, July 21, 2011 6:23:58 AM UTC-7, Eyal Edri wrote:
>
> Anyone has this exception on jenkins.log file?
>
> I'm trying to find the source of the out of memory error, and I want to
> sort out all log errors.
>
> WARNING: Failed to resolve a type
> java.lang.NoClassDefFoundError: org/spearce/jgit/lib/ObjectId
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getDeclaredMethod(Class.java:1935)
> at
> com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.
> getMethod(SerializationMethodInvoker.java:128)
> at
> com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.
> supportsReadObject(SerializationMethodInvoker.java:79)
> at
> com.thoughtworks.xstream.converters.reflection.SerializableConverter.isSer
> ializable(SerializableConverter.java:81)
> at
> com.thoughtworks.xstream.converters.reflection.SerializableConverter.canCo
> nvert(SerializableConverter.java:77)
> at
> com.thoughtworks.xstream.core.DefaultConverterLookup.lookupConverterForTyp
> e(DefaultConverterLookup.java:63)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:66)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:60)
> at
> hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConve
> rter.java:290)
> at
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverte
> r.java:233)
> at
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.
> java:180)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.ja
> va:82)
> at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstra
> ctReferenceUnmarshaller.java:63)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:76)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:60)
> at
> hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConve
> rter.java:290)
> at
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverte
> r.java:233)
> at
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.
> java:180)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.ja
> va:82)
> at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstra
> ctReferenceUnmarshaller.java:63)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:76)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:60)
> at
> hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConve
> rter.java:290)
> at
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverte
> r.java:233)
> at
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.
> java:180)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.ja
> va:82)
> at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstra
> ctReferenceUnmarshaller.java:63)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:76)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:60)
> at
> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverte
> r.readItem(AbstractCollectionConverter.java:71)
> at
> hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionC
> onverter.java:85)
> at
> com.thoughtworks.xstream.converters.collections.CollectionConverter.unmars
> hal(CollectionConverter.java:61)
> at
> hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.
> java:76)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.ja
> va:82)
> at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstra
> ctReferenceUnmarshaller.java:63)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:76)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:60)
> at
> hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConve
> rter.java:290)
> at
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverte
> r.java:233)
> at
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.
> java:180)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.ja
> va:82)
> at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstra
> ctReferenceUnmarshaller.java:63)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:76)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:60)
> at
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java
> :137)
> at
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(Ab
> stractTreeMarshallingStrategy.java:33)
> at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
> at hudson.util.XStream2.unmarshal(XStream2.java:84)
> at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
> at hudson.XmlFile.unmarshal(XmlFile.java:154)
> at hudson.model.Run.reload(Run.java:283)
> at hudson.model.Run.<init>(Run.java:272)
> at hudson.model.AbstractBuild.<init>(AbstractBuild.java:159)
> at
> hudson.maven.AbstractMavenBuild.<init>(AbstractMavenBuild.java:48)
> at
> hudson.maven.MavenModuleSetBuild.<init>(MavenModuleSetBuild.java:142)
> at sun.reflect.GeneratedConstructorAccessor22.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstr
> uctorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> hudson.model.AbstractProject.loadBuild(AbstractProject.java:947)
> at hudson.model.AbstractProject$1.create(AbstractProject.java:256)
> at hudson.model.AbstractProject$1.create(AbstractProject.java:254)
> at hudson.model.RunMap.load(RunMap.java:221)
> at hudson.model.AbstractProject.onLoad(AbstractProject.java:254)
> at hudson.maven.MavenModuleSet.onLoad(MavenModuleSet.java:514)
> at hudson.model.Items.load(Items.java:115)
> at jenkins.model.Jenkins$14.run(Jenkins.java:2222)
> at
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.ja
> va:146)
> at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
> at jenkins.model.Jenkins$5.runTask(Jenkins.java:746)
> at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
> at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
> 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)
> 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:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 76 more
>
>