Bamboo Agent Throws java.lang.reflect.UndeclaredThrowableException

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

This KB article is not relevant to any version of Bamboo currently supported. If this fits your current installation, please consider upgrading Bamboo

症状

Bamboo agent throws OOMEs and the following stacktrace:

java.lang.reflect.UndeclaredThrowableException
	at $Proxy0.toMessage(Unknown Source)
	at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50)
	at java.lang.Thread.run(Thread.java:619)
...
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.atlassian.bamboo.spring.LazyComponentProxyFactoryBean$LazyInvocationHandler.invoke(LazyComponentProxyFactoryBean.java:59)
Caused by: java.lang.OutOfMemoryError: Java heap space
...
	at com.thoughtworks.xstream.core.util.QuickWriter.flush(QuickWriter.java:73)
	at com.thoughtworks.xstream.core.util.QuickWriter.write(QuickWriter.java:49)
	at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeText(PrettyPrintWriter.java:273)
	at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeAttributeValue(PrettyPrintWriter.java:223)
	at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.addAttribute(PrettyPrintWriter.java:218)
	at com.thoughtworks.xstream.io.WriterWrapper.addAttribute(WriterWrapper.java:41)
...

原因

The build is producing massive amounts of log and this data needs to be serialized and transferred to the Bamboo server. At some point the agent is not able to fit in the memory and causes these errors.

ソリューション

Theris problem was fixed in Bamboo 5.0 ( BAM-11899 - Getting issue details... STATUS ).

For older versions, please reduce the logged amount.

 

最終更新日 2017 年 11 月 30 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.