java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error

Atlassian JIRA | Adrian Deccico [Atlassian] | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    We are getting the mentioned problem in this plan: https://bamboo.extranet.atlassian.com/browse/CONFXHTML-ONDEMAND-JOB1-53/log We use it for automating our release process. So far we tried in OpenVZ agents and in EC2 ones. Some logs: agent 69 011-01-17 21:09:47,364 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Artifact Copier' 2011-01-17 21:09:47,364 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [BuildArtifactPostProcessor] Copying the build artifacts for build: CONFXHTML-ONDEMAND-JOB1-52 2011-01-17 21:09:51,293 ERROR [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [HttpMessageSender] Failed to send message. java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:97) at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publishFileSet(RemoteArtifactManager.java:37) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:55) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:54) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:163) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:619) 2011-01-17 21:09:51,294 WARN [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Failed to execute plugin with class com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor : CONFXHTML-ONDEMAND-JOB1-52 java.lang.RuntimeException: java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:103) at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publishFileSet(RemoteArtifactManager.java:37) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:55) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:54) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:163) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:97) ... 10 more 2011-01-17 21:09:51,294 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Sandbox Environment cleanup' 2011-01-17 21:09:51,295 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Clover Results Collector' regarding: 5937209960934079336 @agent 69 2011-01-11 18:21:56,298 INFO [Thread-1] [AgentMessageListenerContainer] Configuring message selector: allowableAgents LIKE '%[152176113]%' AND fingerprint = '5937209960934079336' --------------- MASTER 2011-01-17 21:09:42,490 INFO [TP-Processor1512] [AccessLogFilter] adeccico GET https://bamboo.extranet.atlassian.com/chart?filename=jfreechart-onetime-2526863368045882221.png 259222kb 2011-01-17 21:09:43,911 WARN [bambooHeartBeatMessageListenerConnector-6] [RemoteAgentManagerImpl] Request to update remote agent status, but no remote agent with id: 160596422 found. 2011-01-17 21:09:51,288 WARN [http-j2ee_bamboo.extranet.atlassian.com.mgmt%2F172.16.3.139-8080-12] [BambooFileUtils] Could not replace temporary file with a directory 2011-01-17 21:09:51,288 ERROR [http-j2ee_bamboo.extranet.atlassian.com.mgmt%2F172.16.3.139-8080-12] [DeliverMessageServlet] Failed to deserialise message from URI /agentServer/message&fingerprint=5937209960934079336 java.io.IOException: Could not replace temporary file with a directory. at com.atlassian.bamboo.util.BambooFileUtils.createTempDirectory(BambooFileUtils.java:93) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.prepareDeserialisationPath(ArtifactTransferPayload.java:145) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.readObject(ArtifactTransferPayload.java:94) at sun.reflect.GeneratedMethodAccessor5106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at com.atlassian.bamboo.agent.messaging.DeliverMessageServlet.deserializeObject(DeliverMessageServlet.java:115) at com.atlassian.bamboo.agent.messaging.DeliverMessageServlet.doPost(DeliverMessageServlet.java:49) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.bamboo.filter.AccessLogFilter.doFilter(AccessLogFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.bamboo.filter.LicenseFilter.doFilter(LicenseFilter.java:73) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:71)

    Atlassian JIRA | 6 years ago | Adrian Deccico [Atlassian]
    java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error
  2. 0

    We are getting the mentioned problem in this plan: https://bamboo.extranet.atlassian.com/browse/CONFXHTML-ONDEMAND-JOB1-53/log We use it for automating our release process. So far we tried in OpenVZ agents and in EC2 ones. Some logs: agent 69 011-01-17 21:09:47,364 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Artifact Copier' 2011-01-17 21:09:47,364 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [BuildArtifactPostProcessor] Copying the build artifacts for build: CONFXHTML-ONDEMAND-JOB1-52 2011-01-17 21:09:51,293 ERROR [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [HttpMessageSender] Failed to send message. java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:97) at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publishFileSet(RemoteArtifactManager.java:37) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:55) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:54) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:163) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:619) 2011-01-17 21:09:51,294 WARN [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Failed to execute plugin with class com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor : CONFXHTML-ONDEMAND-JOB1-52 java.lang.RuntimeException: java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:103) at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publishFileSet(RemoteArtifactManager.java:37) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:55) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:54) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:163) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:97) ... 10 more 2011-01-17 21:09:51,294 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Sandbox Environment cleanup' 2011-01-17 21:09:51,295 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Clover Results Collector' regarding: 5937209960934079336 @agent 69 2011-01-11 18:21:56,298 INFO [Thread-1] [AgentMessageListenerContainer] Configuring message selector: allowableAgents LIKE '%[152176113]%' AND fingerprint = '5937209960934079336' --------------- MASTER 2011-01-17 21:09:42,490 INFO [TP-Processor1512] [AccessLogFilter] adeccico GET https://bamboo.extranet.atlassian.com/chart?filename=jfreechart-onetime-2526863368045882221.png 259222kb 2011-01-17 21:09:43,911 WARN [bambooHeartBeatMessageListenerConnector-6] [RemoteAgentManagerImpl] Request to update remote agent status, but no remote agent with id: 160596422 found. 2011-01-17 21:09:51,288 WARN [http-j2ee_bamboo.extranet.atlassian.com.mgmt%2F172.16.3.139-8080-12] [BambooFileUtils] Could not replace temporary file with a directory 2011-01-17 21:09:51,288 ERROR [http-j2ee_bamboo.extranet.atlassian.com.mgmt%2F172.16.3.139-8080-12] [DeliverMessageServlet] Failed to deserialise message from URI /agentServer/message&fingerprint=5937209960934079336 java.io.IOException: Could not replace temporary file with a directory. at com.atlassian.bamboo.util.BambooFileUtils.createTempDirectory(BambooFileUtils.java:93) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.prepareDeserialisationPath(ArtifactTransferPayload.java:145) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.readObject(ArtifactTransferPayload.java:94) at sun.reflect.GeneratedMethodAccessor5106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at com.atlassian.bamboo.agent.messaging.DeliverMessageServlet.deserializeObject(DeliverMessageServlet.java:115) at com.atlassian.bamboo.agent.messaging.DeliverMessageServlet.doPost(DeliverMessageServlet.java:49) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.bamboo.filter.AccessLogFilter.doFilter(AccessLogFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.bamboo.filter.LicenseFilter.doFilter(LicenseFilter.java:73) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:71)

    Atlassian JIRA | 6 years ago | Adrian Deccico [Atlassian]
    java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Unexpected HTTP status code: 500 Internal Server Error

      at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send()
    2. com.atlassian.bamboo
      NamedThreadFactory$2.run
      1. com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:97)
      2. com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publishFileSet(RemoteArtifactManager.java:37)
      3. com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:55)
      4. com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:54)
      5. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:163)
      6. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87)
      7. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189)
      8. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90)
      9. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102)
      10. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50)
      10 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame