java.lang.reflect.UndeclaredThrowableException

Atlassian JIRA | Gary Donovan | 4 years ago
  1. 0

    I am getting an exception trying to run a particular job in a remote agent - See extract from atlassian-bamboo.log below. I appreciate the fact that the remote agent can recover from an unexpected error, and can still run jobs. It would be nice if the Bamboo server also knew that the remotely executed build had failed (rather than still showing it as executing). It would also be good if we could fix the underlying issue, so that Bamboo isn't the cause of a failing build :-) NB: Affects version 5.0-beta2 *atlassian-bamboo.log* {quote} 2013-06-11 17:42:10,160 INFO [1-BAM::syd-x-autotest.devel.iress.com.au::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] Xplan - Quick Checks - Core Tests #2131 (XPLAN-QUICKCHECK-CORETEST-2131) execution finished 2013-06-11 17:42:10,164 INFO [1-BAM::syd-x-autotest.devel.iress.com.au::Agent:pool-3-thread-1] [RemoteResultProcessor] Build Xplan - Quick Checks - Core Tests #2131 (XPLAN-QUICKCHECK-CORETEST-2131) completed on Bamboo agent. Sending results to server. 2013-06-11 17:42:10,182 ERROR [1-BAM::syd-x-autotest.devel.iress.com.au::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Unknown exception occurred on 'syd-x-autotest.devel.iress.com.au'. Agent will attempt to recover its normal operation... java.lang.reflect.UndeclaredThrowableException at $Proxy0.toMessage(Unknown Source) at org.springframework.jms.core.JmsTemplate$6.createMessage(JmsTemplate.java:590) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:509) at org.springframework.jms.core.JmsTemplate$2.doInJms(JmsTemplate.java:479) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:430) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:477) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:588) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:576) at com.atlassian.bamboo.v2.build.agent.remote.sender.JmsTemplateMessageSender.send(JmsTemplateMessageSender.java:42) at com.atlassian.bamboo.v2.build.agent.remote.sender.BatchedMessageSender.sendBatch(BatchedMessageSender.java:136) at com.atlassian.bamboo.v2.build.agent.remote.sender.BatchedMessageSender.flush(BatchedMessageSender.java:107) at com.atlassian.bamboo.v2.build.agent.remote.sender.BatchedMessageSender.send(BatchedMessageSender.java:59) at com.atlassian.bamboo.v2.build.agent.remote.RemoteResultProcessor.processResult(RemoteResultProcessor.java:26) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.processResult(BuildAgentControllerImpl.java:169) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:130) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:105) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.bamboo.spring.LazyComponentProxyFactoryBean$LazyInvocationHandler.invoke(LazyComponentProxyFactoryBean.java:59) ... 18 more Caused by: javax.jms.JMSException: encoded string too long: 85338 bytes at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62) at org.apache.activemq.command.ActiveMQBytesMessage.writeUTF(ActiveMQBytesMessage.java:672) at com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter.writeLogEntry(LogMessageBatchConverter.java:118) at com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter.createMessage(LogMessageBatchConverter.java:80) at com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter.toMessage(LogMessageBatchConverter.java:143) at com.atlassian.bamboo.v2.build.queue.MessageConverterProxy.toMessage(MessageConverterProxy.java:37) at com.atlassian.bamboo.v2.build.queue.BambooMessageConverter.toMessage(BambooMessageConverter.java:59) ... 22 more Caused by: java.io.UTFDataFormatException: encoded string too long: 85338 bytes at java.io.DataOutputStream.writeUTF(Unknown Source) at java.io.DataOutputStream.writeUTF(Unknown Source) at org.apache.activemq.command.ActiveMQBytesMessage.writeUTF(ActiveMQBytesMessage.java:670) ... 27 more 2013-06-11 17:42:10,191 FATAL [1-BAM::syd-x-autotest.devel.iress.com.au::Agent:pool-3-thread-1] [DefaultBuildAgent] 1 has occurred without a successful run. The agent will stop after reaching 10 exceptions. {quote}

    Atlassian JIRA | 4 years ago | Gary Donovan
    java.lang.reflect.UndeclaredThrowableException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    I am getting an exception trying to run a particular job in a remote agent - See extract from atlassian-bamboo.log below. I appreciate the fact that the remote agent can recover from an unexpected error, and can still run jobs. It would be nice if the Bamboo server also knew that the remotely executed build had failed (rather than still showing it as executing). It would also be good if we could fix the underlying issue, so that Bamboo isn't the cause of a failing build :-) NB: Affects version 5.0-beta2 *atlassian-bamboo.log* {quote} 2013-06-11 17:42:10,160 INFO [1-BAM::syd-x-autotest.devel.iress.com.au::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] Xplan - Quick Checks - Core Tests #2131 (XPLAN-QUICKCHECK-CORETEST-2131) execution finished 2013-06-11 17:42:10,164 INFO [1-BAM::syd-x-autotest.devel.iress.com.au::Agent:pool-3-thread-1] [RemoteResultProcessor] Build Xplan - Quick Checks - Core Tests #2131 (XPLAN-QUICKCHECK-CORETEST-2131) completed on Bamboo agent. Sending results to server. 2013-06-11 17:42:10,182 ERROR [1-BAM::syd-x-autotest.devel.iress.com.au::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Unknown exception occurred on 'syd-x-autotest.devel.iress.com.au'. Agent will attempt to recover its normal operation... java.lang.reflect.UndeclaredThrowableException at $Proxy0.toMessage(Unknown Source) at org.springframework.jms.core.JmsTemplate$6.createMessage(JmsTemplate.java:590) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:509) at org.springframework.jms.core.JmsTemplate$2.doInJms(JmsTemplate.java:479) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:430) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:477) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:588) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:576) at com.atlassian.bamboo.v2.build.agent.remote.sender.JmsTemplateMessageSender.send(JmsTemplateMessageSender.java:42) at com.atlassian.bamboo.v2.build.agent.remote.sender.BatchedMessageSender.sendBatch(BatchedMessageSender.java:136) at com.atlassian.bamboo.v2.build.agent.remote.sender.BatchedMessageSender.flush(BatchedMessageSender.java:107) at com.atlassian.bamboo.v2.build.agent.remote.sender.BatchedMessageSender.send(BatchedMessageSender.java:59) at com.atlassian.bamboo.v2.build.agent.remote.RemoteResultProcessor.processResult(RemoteResultProcessor.java:26) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.processResult(BuildAgentControllerImpl.java:169) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:130) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:105) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.bamboo.spring.LazyComponentProxyFactoryBean$LazyInvocationHandler.invoke(LazyComponentProxyFactoryBean.java:59) ... 18 more Caused by: javax.jms.JMSException: encoded string too long: 85338 bytes at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62) at org.apache.activemq.command.ActiveMQBytesMessage.writeUTF(ActiveMQBytesMessage.java:672) at com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter.writeLogEntry(LogMessageBatchConverter.java:118) at com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter.createMessage(LogMessageBatchConverter.java:80) at com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter.toMessage(LogMessageBatchConverter.java:143) at com.atlassian.bamboo.v2.build.queue.MessageConverterProxy.toMessage(MessageConverterProxy.java:37) at com.atlassian.bamboo.v2.build.queue.BambooMessageConverter.toMessage(BambooMessageConverter.java:59) ... 22 more Caused by: java.io.UTFDataFormatException: encoded string too long: 85338 bytes at java.io.DataOutputStream.writeUTF(Unknown Source) at java.io.DataOutputStream.writeUTF(Unknown Source) at org.apache.activemq.command.ActiveMQBytesMessage.writeUTF(ActiveMQBytesMessage.java:670) ... 27 more 2013-06-11 17:42:10,191 FATAL [1-BAM::syd-x-autotest.devel.iress.com.au::Agent:pool-3-thread-1] [DefaultBuildAgent] 1 has occurred without a successful run. The agent will stop after reaching 10 exceptions. {quote}

    Atlassian JIRA | 4 years ago | Gary Donovan
    java.lang.reflect.UndeclaredThrowableException
  4. 0

    Eclipse Community Forums: ATL ยป Could not debug, because UTFDataFormatException is thrown when reaching breakpoint

    eclipse.org | 9 months ago
    java.io.UTFDataFormatException: encoded string too long: 343862 bytes

  1. rp 1 times, last 2 weeks ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.UTFDataFormatException

    encoded string too long: 85338 bytes

    at java.io.DataOutputStream.writeUTF()
  2. Java RT
    DataOutputStream.writeUTF
    1. java.io.DataOutputStream.writeUTF(Unknown Source)
    2. java.io.DataOutputStream.writeUTF(Unknown Source)
    2 frames
  3. ActiveMQ :: Core
    ActiveMQBytesMessage.writeUTF
    1. org.apache.activemq.command.ActiveMQBytesMessage.writeUTF(ActiveMQBytesMessage.java:670)
    1 frame
  4. com.atlassian.bamboo
    BambooMessageConverter.toMessage
    1. com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter.writeLogEntry(LogMessageBatchConverter.java:118)
    2. com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter.createMessage(LogMessageBatchConverter.java:80)
    3. com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter.toMessage(LogMessageBatchConverter.java:143)
    4. com.atlassian.bamboo.v2.build.queue.MessageConverterProxy.toMessage(MessageConverterProxy.java:37)
    5. com.atlassian.bamboo.v2.build.queue.BambooMessageConverter.toMessage(BambooMessageConverter.java:59)
    5 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  6. com.atlassian.bamboo
    LazyComponentProxyFactoryBean$LazyInvocationHandler.invoke
    1. com.atlassian.bamboo.spring.LazyComponentProxyFactoryBean$LazyInvocationHandler.invoke(LazyComponentProxyFactoryBean.java:59)
    1 frame
  7. Unknown
    $Proxy0.toMessage
    1. $Proxy0.toMessage(Unknown Source)
    1 frame
  8. Spring Framework
    JmsTemplate.convertAndSend
    1. org.springframework.jms.core.JmsTemplate$6.createMessage(JmsTemplate.java:590)
    2. org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:509)
    3. org.springframework.jms.core.JmsTemplate$2.doInJms(JmsTemplate.java:479)
    4. org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:430)
    5. org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:477)
    6. org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:588)
    7. org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:576)
    7 frames
  9. com.atlassian.bamboo
    NamedThreadFactory$2.run
    1. com.atlassian.bamboo.v2.build.agent.remote.sender.JmsTemplateMessageSender.send(JmsTemplateMessageSender.java:42)
    2. com.atlassian.bamboo.v2.build.agent.remote.sender.BatchedMessageSender.sendBatch(BatchedMessageSender.java:136)
    3. com.atlassian.bamboo.v2.build.agent.remote.sender.BatchedMessageSender.flush(BatchedMessageSender.java:107)
    4. com.atlassian.bamboo.v2.build.agent.remote.sender.BatchedMessageSender.send(BatchedMessageSender.java:59)
    5. com.atlassian.bamboo.v2.build.agent.remote.RemoteResultProcessor.processResult(RemoteResultProcessor.java:26)
    6. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.processResult(BuildAgentControllerImpl.java:169)
    7. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:130)
    8. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:105)
    9. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
    9 frames
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame