首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Hudson生成失败,导致致命错误(java.lang.ClassNotFoundException: hudson.util.RemotingDiagnostics$HeapDump )

Hudson生成失败,导致致命错误(java.lang.ClassNotFoundException: hudson.util.RemotingDiagnostics$HeapDump )
EN

Stack Overflow用户
提问于 2011-01-25 17:55:04
回答 2查看 4.2K关注 0票数 2

希望有人能指出,在使用Hudson进行Maven构建时,造成致命错误的问题可能是什么。

我刚刚在测试环境中的Windows机顶盒上安装了Tomcat中的Hudson实例。我是哈德逊大学的新手。我正在尝试在一个小型Java项目上做一个简单的Maven 'clean‘,我知道这个项目在另一个服务器上的Hudson的另一个实例上构建得很好。

来自Hudson控制台的堆栈跟踪如下:

谢谢

代码语言:javascript
复制
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
hudson.util.RemotingDiagnostics$HeapDump
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.reflect.UndeclaredThrowableException
    at $Proxy2.end(Unknown Source)
    at hudson.maven.MavenBuildProxy2$Filter.end(MavenBuildProxy2.java:67)
    at hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:922)
    at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:353)
    at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:311)
    at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:68)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at hudson.maven.agent.Main.launch(Main.java:173)
    at hudson.maven.MavenBuilder.call(MavenBuilder.java:164)
    at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:868)
    at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:799)
    at hudson.remoting.UserRequest.perform(UserRequest.java:114)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:270)
    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:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Remote call on channel failed
    at hudson.remoting.Channel.call(Channel.java:638)
    at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158)
    ... 28 more
Caused by: java.lang.NoClassDefFoundError: hudson/util/RemotingDiagnostics$HeapDump
    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.callWriteReplace(SerializationMethodInvoker.java:62)
    at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:88)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
    at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
    at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:55)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
    at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:175)
    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:163)
    at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:135)
    at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:130)
    at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:120)
    at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:94)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:98)
    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:38)
    at com.thoughtworks.xstream.XStream.marshal(XStream.java:840)
    at com.thoughtworks.xstream.XStream.marshal(XStream.java:829)
    at com.thoughtworks.xstream.XStream.toXML(XStream.java:804)
    at hudson.XmlFile.write(XmlFile.java:165)
    at hudson.model.Run.save(Run.java:1493)
    at hudson.maven.MavenModuleSetBuild.notifyModuleBuild(MavenModuleSetBuild.java:458)
    at hudson.maven.MavenBuild$ProxyImpl2.end(MavenBuild.java:479)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at hudson.model.Executor$1.call(Executor.java:429)
    at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
    at $Proxy51.end(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
    at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
    at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
    ... 9 more
**Caused by: java.lang.ClassNotFoundException: hudson.util.RemotingDiagnostics$HeapDump**
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ... 55 more
[INFO] ------------------------------------------------------------------------
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-01-26 14:45:06

您是否碰巧将作业(或整个hudson根目录)从先前的hudson计算机复制并粘贴到您安装的计算机上?类未发现的异常是hudson/xstream试图解锁构建配置的产物。

发生这种情况的一个原因是,您在一台带有版本的计算机上构建了hudson,然后尝试将构建配置复制并粘贴到本地实例中,然后使用不同的版本运行hudson。

如果是这样的话,我的建议是同步本地机器,使其与以前运行的hudson版本相同。

票数 1
EN

Stack Overflow用户

发布于 2011-02-10 22:39:50

我没有升级或使用任何其他版本的hudson或复制任何任务。我也得到了这个错误!在哈德逊登记,我看到1.395版本是可用的。不过,我确实安装了M2 maven发布插件.看上去它的东西增加了1.394?我也没有改变我的工作来使用它,但它失败了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4797070

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档