maven 2 - Hudson build fails with Fatal Error (java.lang.ClassNotFoundException: hudson.util.RemotingDiagnostics$HeapDump ) -
hopefully, can point out maybe issue causing fatal error receive when doing maven build using hudson.
i installed instance of hudson in tomcat on windows xp box in test environment. rather novice @ hudson. trying simple maven 'clean' on small java project know builds fine on instance of hudson on server.
the stack trace hudson console below:
thank you
[error] fatal error [info] ------------------------------------------------------------------------ [info] null hudson.util.remotingdiagnostics$heapdump [info] ------------------------------------------------------------------------ [info] trace java.lang.reflect.undeclaredthrowableexception @ $proxy2.end(unknown source) @ hudson.maven.mavenbuildproxy2$filter.end(mavenbuildproxy2.java:67) @ hudson.maven.mavenmodulesetbuild$builder.postmodule(mavenmodulesetbuild.java:922) @ hudson.maven.mavenbuilder$adapter.fireleavemodule(mavenbuilder.java:353) @ hudson.maven.mavenbuilder$adapter.postbuild(mavenbuilder.java:311) @ org.apache.maven.lifecycle.lifecycleexecutorinterceptor.execute(lifecycleexecutorinterceptor.java:68) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:328) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:138) @ org.apache.maven.cli.mavencli.main(mavencli.java:362) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.codehaus.classworlds.launcher.launchenhanced(launcher.java:315) @ org.codehaus.classworlds.launcher.launch(launcher.java:255) @ hudson.maven.agent.main.launch(main.java:173) @ hudson.maven.mavenbuilder.call(mavenbuilder.java:164) @ hudson.maven.mavenmodulesetbuild$builder.call(mavenmodulesetbuild.java:868) @ hudson.maven.mavenmodulesetbuild$builder.call(mavenmodulesetbuild.java:799) @ hudson.remoting.userrequest.perform(userrequest.java:114) @ hudson.remoting.userrequest.perform(userrequest.java:48) @ hudson.remoting.request$2.run(request.java:270) @ java.util.concurrent.executors$runnableadapter.call(executors.java:441) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:303) @ java.util.concurrent.futuretask.run(futuretask.java:138) @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:885) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:907) @ java.lang.thread.run(thread.java:619) caused by: java.io.ioexception: remote call on channel failed @ hudson.remoting.channel.call(channel.java:638) @ hudson.remoting.remoteinvocationhandler.invoke(remoteinvocationhandler.java:158) ... 28 more caused by: java.lang.noclassdeffounderror: hudson/util/remotingdiagnostics$heapdump @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(class.java:2427) @ java.lang.class.getdeclaredmethod(class.java:1935) @ com.thoughtworks.xstream.converters.reflection.serializationmethodinvoker.getmethod(serializationmethodinvoker.java:128) @ com.thoughtworks.xstream.converters.reflection.serializationmethodinvoker.callwritereplace(serializationmethodinvoker.java:62) @ hudson.util.robustreflectionconverter.marshal(robustreflectionconverter.java:88) @ com.thoughtworks.xstream.core.abstractreferencemarshaller.convert(abstractreferencemarshaller.java:68) @ com.thoughtworks.xstream.core.treemarshaller.convertanother(treemarshaller.java:78) @ com.thoughtworks.xstream.core.treemarshaller.convertanother(treemarshaller.java:63) @ com.thoughtworks.xstream.converters.collections.abstractcollectionconverter.writeitem(abstractcollectionconverter.java:64) @ com.thoughtworks.xstream.converters.collections.collectionconverter.marshal(collectionconverter.java:55) @ com.thoughtworks.xstream.core.abstractreferencemarshaller.convert(abstractreferencemarshaller.java:68) @ com.thoughtworks.xstream.core.treemarshaller.convertanother(treemarshaller.java:78) @ com.thoughtworks.xstream.core.treemarshaller.convertanother(treemarshaller.java:63) @ hudson.util.robustreflectionconverter.marshallfield(robustreflectionconverter.java:175) @ hudson.util.robustreflectionconverter$2.writefield(robustreflectionconverter.java:163) @ hudson.util.robustreflectionconverter$2.visit(robustreflectionconverter.java:135) @ com.thoughtworks.xstream.converters.reflection.purejavareflectionprovider.visitserializablefields(purejavareflectionprovider.java:130) @ hudson.util.robustreflectionconverter.domarshal(robustreflectionconverter.java:120) @ hudson.util.robustreflectionconverter.marshal(robustreflectionconverter.java:94) @ com.thoughtworks.xstream.core.abstractreferencemarshaller.convert(abstractreferencemarshaller.java:68) @ com.thoughtworks.xstream.core.treemarshaller.convertanother(treemarshaller.java:78) @ com.thoughtworks.xstream.core.treemarshaller.convertanother(treemarshaller.java:63) @ com.thoughtworks.xstream.core.treemarshaller.start(treemarshaller.java:98) @ com.thoughtworks.xstream.core.abstracttreemarshallingstrategy.marshal(abstracttreemarshallingstrategy.java:38) @ com.thoughtworks.xstream.xstream.marshal(xstream.java:840) @ com.thoughtworks.xstream.xstream.marshal(xstream.java:829) @ com.thoughtworks.xstream.xstream.toxml(xstream.java:804) @ hudson.xmlfile.write(xmlfile.java:165) @ hudson.model.run.save(run.java:1493) @ hudson.maven.mavenmodulesetbuild.notifymodulebuild(mavenmodulesetbuild.java:458) @ hudson.maven.mavenbuild$proxyimpl2.end(mavenbuild.java:479) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ hudson.model.executor$1.call(executor.java:429) @ hudson.util.interceptingproxy$1.invoke(interceptingproxy.java:23) @ $proxy51.end(unknown source) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ hudson.remoting.remoteinvocationhandler$rpcrequest.perform(remoteinvocationhandler.java:274) @ hudson.remoting.remoteinvocationhandler$rpcrequest.call(remoteinvocationhandler.java:255) @ hudson.remoting.remoteinvocationhandler$rpcrequest.call(remoteinvocationhandler.java:215) ... 9 more **caused by: java.lang.classnotfoundexception: hudson.util.remotingdiagnostics$heapdump** @ java.net.urlclassloader$1.run(urlclassloader.java:200) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:188) @ java.lang.classloader.loadclass(classloader.java:306) @ java.lang.classloader.loadclass(classloader.java:251) @ java.lang.classloader.loadclassinternal(classloader.java:319) ... 55 more [info] ------------------------------------------------------------------------
did happen copy , paste job (or entire hudson root) directory previous hudson machine 1 installed? classnotfound exception product of hudson/xstream trying unmarshall build configuration.
one reason happening because built hudson on 1 machine version , tried copy , paste build configuration local instance , run hudson different version.
my suggestion if thats case synch local machine have same version of hudson run on.
Comments
Post a Comment