java.io.InterruptedIOException: Operation interrupted

Atlassian JIRA | Ajay Sridhar [Atlassian] | 8 years ago
  1. 0

    If a remote build is stopped while a Bamboo agent is sending the artifact back to the server, the agent throws an exception and tries to restart - {quote}2008-08-12 11:00:38,290 INFO [BAM::fodevsx4.london.kbcfp.com::Agent] [BuildArtifactPostProcessor] Copying the build artifacts for build:CTU-HEAD-1026 2008-08-12 11:03:29,225 INFO [agentMessageListenerConnector-1] [DefaultBuildAgent] Cancel build build request for 'CTU-HEAD-1026' received on agent 'fodevsx4.london.kbcfp.com'. 2008-08-12 11:03:29,226 INFO [agentMessageListenerConnector-1] [DefaultBuildAgent] Interrupting task com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask@63f0f47c. 2008-08-12 11:03:29,252 INFO [BAM::fodevsx4.london.kbcfp.com::Agent] [AgentContext] Exiting Bamboo agent... java.io.InterruptedIOException: Operation interrupted at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at org.apache.commons.httpclient.HttpConnection.isStale(HttpConnection.java:505) at org.apache.commons.httpclient.HttpConnection.closeIfStale(HttpConnection.java:430) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.closeIfStale(MultiThreadedHttpConnectionManager.java:1273) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:381) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:106) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.loadClass(AgentClassLoader.java:232) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:225) at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:172) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:433) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:477) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:557) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:548) at com.atlassian.bamboo.v2.build.agent.remote.JmsTemplateStrategy.send(JmsTemplateStrategy.java:19) at com.atlassian.bamboo.v2.build.agent.remote.SegmentedMessageStrategy$1.write(SegmentedMessageStrategy.java:48) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109) at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838) at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1747) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1161) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at com.atlassian.bamboo.v2.build.agent.messages.PublishArtifacts.writeObject(PublishArtifacts.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at com.atlassian.bamboo.v2.build.agent.remote.SegmentedMessageStrategy.send(SegmentedMessageStrategy.java:67) at com.atlassian.bamboo.v2.build.agent.remote.BambooAgentMessageSenderImpl.send(BambooAgentMessageSenderImpl.java:27) at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publish(RemoteArtifactManager.java:18) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:49) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:109) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:69) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:192) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:89) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:105) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Thread.java:619) {quote}

    Atlassian JIRA | 8 years ago | Ajay Sridhar [Atlassian]
    java.io.InterruptedIOException: Operation interrupted
  2. 0

    If a remote build is stopped while a Bamboo agent is sending the artifact back to the server, the agent throws an exception and tries to restart - {quote}2008-08-12 11:00:38,290 INFO [BAM::fodevsx4.london.kbcfp.com::Agent] [BuildArtifactPostProcessor] Copying the build artifacts for build:CTU-HEAD-1026 2008-08-12 11:03:29,225 INFO [agentMessageListenerConnector-1] [DefaultBuildAgent] Cancel build build request for 'CTU-HEAD-1026' received on agent 'fodevsx4.london.kbcfp.com'. 2008-08-12 11:03:29,226 INFO [agentMessageListenerConnector-1] [DefaultBuildAgent] Interrupting task com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask@63f0f47c. 2008-08-12 11:03:29,252 INFO [BAM::fodevsx4.london.kbcfp.com::Agent] [AgentContext] Exiting Bamboo agent... java.io.InterruptedIOException: Operation interrupted at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at org.apache.commons.httpclient.HttpConnection.isStale(HttpConnection.java:505) at org.apache.commons.httpclient.HttpConnection.closeIfStale(HttpConnection.java:430) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.closeIfStale(MultiThreadedHttpConnectionManager.java:1273) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:381) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:106) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.loadClass(AgentClassLoader.java:232) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:225) at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:172) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:433) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:477) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:557) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:548) at com.atlassian.bamboo.v2.build.agent.remote.JmsTemplateStrategy.send(JmsTemplateStrategy.java:19) at com.atlassian.bamboo.v2.build.agent.remote.SegmentedMessageStrategy$1.write(SegmentedMessageStrategy.java:48) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109) at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838) at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1747) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1161) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at com.atlassian.bamboo.v2.build.agent.messages.PublishArtifacts.writeObject(PublishArtifacts.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at com.atlassian.bamboo.v2.build.agent.remote.SegmentedMessageStrategy.send(SegmentedMessageStrategy.java:67) at com.atlassian.bamboo.v2.build.agent.remote.BambooAgentMessageSenderImpl.send(BambooAgentMessageSenderImpl.java:27) at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publish(RemoteArtifactManager.java:18) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:49) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:109) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:69) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:192) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:89) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:105) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Thread.java:619) {quote}

    Atlassian JIRA | 8 years ago | Ajay Sridhar [Atlassian]
    java.io.InterruptedIOException: Operation interrupted
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    InterruptedIOException

    Oracle Community | 1 decade ago | 843854
    java.io.InterruptedIOException: Operation interrupted
  5. 0

    Axis Java - User - java.io.InterruptedIOException: Read timed out - HELP!

    nabble.com | 8 months ago
    java.io.InterruptedIOException: Read timed out

    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.InterruptedIOException

      Operation interrupted

      at java.net.SocketInputStream.socketRead0()
    2. Java RT
      BufferedInputStream.read
      1. java.net.SocketInputStream.socketRead0(Native Method)
      2. java.net.SocketInputStream.read(SocketInputStream.java:129)
      3. java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      4. java.io.BufferedInputStream.read(BufferedInputStream.java:237)
      4 frames
    3. HttpClient
      HttpClient.executeMethod
      1. org.apache.commons.httpclient.HttpConnection.isStale(HttpConnection.java:505)
      2. org.apache.commons.httpclient.HttpConnection.closeIfStale(HttpConnection.java:430)
      3. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.closeIfStale(MultiThreadedHttpConnectionManager.java:1273)
      4. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:381)
      5. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
      6. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
      7. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
      7 frames
    4. com.atlassian.bamboo
      AgentClassLoader.findClass
      1. com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:106)
      1 frame
    5. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      1 frame
    6. com.atlassian.bamboo
      AgentClassLoader.loadClass
      1. com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.loadClass(AgentClassLoader.java:232)
      1 frame
    7. Java RT
      ClassLoader.loadClassInternal
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      2. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      2 frames
    8. Spring Framework
      JmsTemplate.convertAndSend
      1. org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:225)
      2. org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:172)
      3. org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:433)
      4. org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:477)
      5. org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:557)
      6. org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:548)
      6 frames
    9. com.atlassian.bamboo
      SegmentedMessageStrategy$1.write
      1. com.atlassian.bamboo.v2.build.agent.remote.JmsTemplateStrategy.send(JmsTemplateStrategy.java:19)
      2. com.atlassian.bamboo.v2.build.agent.remote.SegmentedMessageStrategy$1.write(SegmentedMessageStrategy.java:48)
      2 frames
    10. Java RT
      ObjectOutputStream.writeObject
      1. java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      2. java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
      3. java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838)
      4. java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1747)
      5. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1161)
      6. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      6 frames
    11. com.atlassian.bamboo
      PublishArtifacts.writeObject
      1. com.atlassian.bamboo.v2.build.agent.messages.PublishArtifacts.writeObject(PublishArtifacts.java:65)
      1 frame
    12. Java RT
      ObjectOutputStream.writeObject
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      5. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
      6. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
      7. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      8. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      9. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      9 frames
    13. com.atlassian.bamboo
      NamedThreadFactory$1.run
      1. com.atlassian.bamboo.v2.build.agent.remote.SegmentedMessageStrategy.send(SegmentedMessageStrategy.java:67)
      2. com.atlassian.bamboo.v2.build.agent.remote.BambooAgentMessageSenderImpl.send(BambooAgentMessageSenderImpl.java:27)
      3. com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publish(RemoteArtifactManager.java:18)
      4. com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:49)
      5. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:109)
      6. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:69)
      7. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:192)
      8. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:89)
      9. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:105)
      10. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32)
      10 frames
    14. Backport of JSR 166
      ThreadHelpers$1.run
      1. edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      1 frame
    15. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame