2011-01-25 29 views
2

Hudsonを使用してMavenビルドを行っているときに致命的なエラーの原因となる問題が発生している可能性があります。

テスト環境のWindows XPボックスでTomcatにHudsonのインスタンスをインストールしたばかりです。私はハドソンではかなり初心者です。私が知っている小さなJavaプロジェクトで単純なMaven 'clean'をやろうとしています。もう1つのサーバー上のHudsonの別のインスタンスで上手くビルドできます。

ハドソンコンソールからスタックトレースは以下の通りです:あなたの前のハドソンから

は、ジョブ(または全体ハドソンのルート)をコピーして貼り付けることが起こった


[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] ------------------------------------------------------------------------ 
+0

Maven、Hudson、Javaのバージョン? – Sagar

+0

Maven 2.2.1、Hudson ver。 1.393、Java 1.6.0_04 – anseltim

答えて

1

ありがとうディレクトリあなたがインストールしたマシンにマシンをインストールしますか? classnotfound例外は、hudson/xstreamがビルド設定をアンマーシャリングしようとしている製品です。

これは、あるマシンにバージョンを指定してhudsonをビルドし、そのビルド構成をコピーしてローカルインスタンスに貼り付け、別のバージョンのhudsonを実行しようとしたためです。

私の提案は、以前に実行されていた同じバージョンのhudsonを持つようにローカルマシンを同期させることです。

+0

テストボックスからすべてのHudsonファイルを削除し、同じバージョンのHudsonを稼動中のマシンとしてインストールして再試行します。 – anseltim

+0

どうすればいいのか教えてあげます - ありがとう! – anseltim

+0

だから、あなたの他のマシンがHudson v 1.395を使用していて、1.395がHeapDumpクラスを持つ唯一の現在のバージョンであるため、あなたはv 1.393を使用しています。 1.395にアップグレードすると、 –

0

他のバージョンのhudsonをアップグレードしたり使用したりしていません。私もこのエラーが発生しています!ハドソンを調べてみると、私は1.395のバージョンが利用可能であると思う。私はしかし、ただM2のmavenのリリースプラグインをインストールしました.... 1.394アップそのstuffs?私はまだそれを使用するために私の仕事を変更していないまだ失敗します。

関連する問題