Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » java.lang.NoClassDefFoundError: hudson/maven/MavenBuild(hudson 2.2.1)
java.lang.NoClassDefFoundError: hudson/maven/MavenBuild [message #963111] Mon, 29 October 2012 11:30 Go to next message
lea ilagan is currently offline lea ilagan
Messages: 13
Registered: October 2012
Junior Member
Hi everyone,

When one of my job was triggered by its upstream, below error (java.lang.NoClassDefFoundError: hudson/maven/MavenBuild) occur. But when i manually kick off, it built successfully.

Is there anyone knows any idea about it.. Please kindly help.

Thanks



11:19:47 Started by upstream project "com.accenture.mddarch.logging" build number 131
11:19:47 FATAL: hudson/maven/MavenBuild
11:19:47 java.lang.NoClassDefFoundError: hudson/maven/MavenBuild
11:19:47 at java.lang.Class.getDeclaredMethods0(Native Method)
11:19:47 at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
11:19:47 at java.lang.Class.getDeclaredMethod(Unknown Source)
11:19:47 at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:159)
11:19:47 at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:164)
11:19:47 at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:146)
11:19:47 at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteReplace(SerializationMethodInvoker.java:83)
11:19:47 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:88)
11:19:47 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
11:19:47 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
11:19:47 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44)
11:19:47 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
11:19:47 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
11:19:47 at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:55)
11:19:47 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
11:19:47 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
11:19:47 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44)
11:19:47 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
11:19:47 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:175)
11:19:47 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:163)
11:19:47 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:135)
11:19:47 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:135)
11:19:47 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:120)
11:19:47 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:94)
11:19:47 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
11:19:47 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
11:19:47 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44)
11:19:47 at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:79)
11:19:47 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
11:19:47 at com.thoughtworks.xstream.XStream.marshal(XStream.java:876)
11:19:47 at com.thoughtworks.xstream.XStream.marshal(XStream.java:865)
11:19:47 at com.thoughtworks.xstream.XStream.toXML(XStream.java:838)
11:19:47 at hudson.XmlFile.write(XmlFile.java:167)
11:19:47 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.save(DownstreamBuildViewUpdateListener.java:105)
11:19:47 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:91)
11:19:47 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46)
11:19:47 at hudson.model.listeners.RunListener.fireStarted(RunListener.java:153)
11:19:47 at hudson.model.Run.run(Run.java:1361)
11:19:47 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
11:19:47 at hudson.model.ResourceController.execute(ResourceController.java:88)
11:19:47 at hudson.model.Executor.run(Executor.java:145)
11:19:47 Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenBuild
11:19:47 at org.aspectj.weaver.bcel.ExtensibleURLClassLoader.findClass(ExtensibleURLClassLoader.java:54)
11:19:47 at java.lang.ClassLoader.loadClass(Unknown Source)
11:19:47 at java.lang.ClassLoader.loadClass(Unknown Source)
11:19:47 ... 41 more



Re: java.lang.NoClassDefFoundError: hudson/maven/MavenBuild [message #963179 is a reply to message #963111] Mon, 29 October 2012 12:20 Go to previous message
Steve Christou is currently offline Steve Christou
Messages: 125
Registered: June 2012
Location: Milwaukee, Wisconsin
Senior Member

What version of the legacy-maven plugin are you using?

/**
 * @author Steven Christou
 * @dev    Hudson-ci
 */
Previous Topic:Passing parameters to down stream job without triggering the downstream job
Next Topic:Hudson role-based security
Goto Forum:
  


Current Time: Tue Jul 22 05:22:59 EDT 2014

Powered by FUDForum. Page generated in 0.02805 seconds