java.io.UTFDataFormatException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 24#198571956
    via GitHub by MrGraphic
    ,
  • 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}
    via by Gary Donovan,
  • 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}
    via by Gary Donovan,
    • java.io.UTFDataFormatException: encoded string too long: 98113 bytes at java.io.DataOutputStream.writeUTF(Unknown Source)[?:1.8.0_74] at java.io.DataOutputStream.writeUTF(Unknown Source)[?:1.8.0_74] at net.minecraft.nbt.NBTTagString.func_74734_a(NBTTagString.java:28)[ea.class:?] at net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:392)[dn.class:?] at net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:24)[dn.class:?] at net.minecraft.nbt.NBTTagList.func_74734_a(SourceFile:45)[du.class:?] at net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:392)[dn.class:?] at net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:24)[dn.class:?] at net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:392)[dn.class:?] at net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:24)[dn.class:?] at net.minecraft.nbt.CompressedStreamTools.func_150663_a(CompressedStreamTools.java:111)[dx.class:?] at net.minecraft.nbt.CompressedStreamTools.func_74800_a(CompressedStreamTools.java:101)[dx.class:?] at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_183013_b(AnvilChunkLoader.java:232)[anj.class:?] at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75814_c(AnvilChunkLoader.java:210)[anj.class:?] at net.minecraft.world.storage.ThreadedFileIOBase.func_75736_b(SourceFile:37)[auc.class:?] at net.minecraft.world.storage.ThreadedFileIOBase.run(SourceFile:30)[auc.class:?] at java.lang.Thread.run(Unknown Source)[?:1.8.0_74]

    Users with the same issue

    rp
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,