java.lang.reflect.UndeclaredThrowableException

Atlassian JIRA | Deric Lee | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    h3. Summary Build remain as a "building" although build was completed but with errors. Example, when a remote agent encounter OOME when submitting the results back to the server, the following appears in the logs: {noformat:title=atlassian-bamboo.log} 2016-08-05 10:05:11,285 INFO [bambooAgentMessageListenerConnector-1] [DefaultErrorHandler] Recording an error: Unknown exception occurred on 'agent name'. Agent will attempt to recover its normal operation... : All Builds : null {noformat} {noformat:title=atlassian-remote-agent.log} 2016-08-05 10:05:11,280 ERROR [0-BAM::nbsrvbba-01.diasemi.com (2)::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Unknown exception occurred on 'agent name'. Agent will attempt to recover its normal operation... java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy12.toMessage(Unknown Source) at com.atlassian.bamboo.v2.build.agent.remote.sender.JmsTemplateMessageSender$3.doInJms(JmsTemplateMessageSender.java:95) at com.atlassian.bamboo.v2.build.agent.remote.sender.JmsTemplateMessageSender$3.doInJms(JmsTemplateMessageSender.java:87) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:491) ... at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.bamboo.spring.LazyComponentProxyFactoryBean$LazyInvocationHandler.invoke(LazyComponentProxyFactoryBean.java:59) ... 19 more Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:3664) at java.lang.StringBuffer.toString(StringBuffer.java:671) at java.io.StringWriter.toString(StringWriter.java:210) at com.thoughtworks.xstream.XStream.toXML(XStream.java:1017) at com.atlassian.bamboo.v2.build.queue.BambooMessageConverter.toMessage(BambooMessageConverter.java:69) ... 23 more {noformat} h3. Workaround * Restart Bamboo * Change the {{BUILD_STATE}} and {{LIFE_CYCLE_STATE}} of the affected build in the database. Such information is stored in the {{BUILDRESULTSUMMARY}} table.

    Atlassian JIRA | 8 months ago | Deric Lee
    java.lang.reflect.UndeclaredThrowableException

    Root Cause Analysis

    1. java.lang.reflect.UndeclaredThrowableException

      No message provided

      at com.sun.proxy.$Proxy12.toMessage()
    2. com.sun.proxy
      $Proxy12.toMessage
      1. com.sun.proxy.$Proxy12.toMessage(Unknown Source)
      1 frame
    3. com.atlassian.bamboo
      JmsTemplateMessageSender$3.doInJms
      1. com.atlassian.bamboo.v2.build.agent.remote.sender.JmsTemplateMessageSender$3.doInJms(JmsTemplateMessageSender.java:95)
      2. com.atlassian.bamboo.v2.build.agent.remote.sender.JmsTemplateMessageSender$3.doInJms(JmsTemplateMessageSender.java:87)
      2 frames
    4. Spring Framework
      JmsTemplate.execute
      1. org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:491)
      1 frame