java.io.IOException: Stream closed

Jenkins JIRA | Yan-Fa Li | 4 years ago
  1. 0

    I'm doing multi-platform builds and on 3 of the 7 platforms I'm building this crash occurred. This is not a critical part of the build, so I would like the option for an exception to not be fatal and just simply be ignored. Notification itself to a campfire room is not an error if it fails, it's a best effort service. If you guys can figure out what this happened, that would be great, but the default behavior of making the build fail is actually not very helpful and makes me want to turn it off because it's disruptive to our builds. ERROR: Publisher hudson.plugins.campfire.CampfireNotifier aborted due to exception java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:162) at java.io.BufferedInputStream.read(BufferedInputStream.java:258) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at hudson.plugins.campfire.Campfire.post(Campfire.java:68) at hudson.plugins.campfire.Room.speak(Room.java:29) at hudson.plugins.campfire.CampfireNotifier.publish(CampfireNotifier.java:48) at hudson.plugins.campfire.CampfireNotifier.perform(CampfireNotifier.java:80) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) at hudson.model.Run.execute(Run.java:1541) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 4 years ago | Yan-Fa Li
    java.io.IOException: Stream closed
  2. 0

    I'm doing multi-platform builds and on 3 of the 7 platforms I'm building this crash occurred. This is not a critical part of the build, so I would like the option for an exception to not be fatal and just simply be ignored. Notification itself to a campfire room is not an error if it fails, it's a best effort service. If you guys can figure out what this happened, that would be great, but the default behavior of making the build fail is actually not very helpful and makes me want to turn it off because it's disruptive to our builds. ERROR: Publisher hudson.plugins.campfire.CampfireNotifier aborted due to exception java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:162) at java.io.BufferedInputStream.read(BufferedInputStream.java:258) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at hudson.plugins.campfire.Campfire.post(Campfire.java:68) at hudson.plugins.campfire.Room.speak(Room.java:29) at hudson.plugins.campfire.CampfireNotifier.publish(CampfireNotifier.java:48) at hudson.plugins.campfire.CampfireNotifier.perform(CampfireNotifier.java:80) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) at hudson.model.Run.execute(Run.java:1541) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 4 years ago | Yan-Fa Li
    java.io.IOException: Stream closed
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    IO errors integrating two Java webapps via http

    Stack Overflow | 2 years ago | Slash
    java.io.IOException: Stream closed

  1. nasimk 56 times, last 5 months ago
12 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.IOException

    Stream closed

    at java.io.BufferedInputStream.getBufIfOpen()
  2. Java RT
    BufferedInputStream.read
    1. java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:162)
    2. java.io.BufferedInputStream.read(BufferedInputStream.java:258)
    2 frames
  3. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
    2. org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
    3. org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
    4. org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
    5. org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
    6. org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
    7. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    8. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    9. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    10. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    10 frames
  4. hudson.plugins.campfire
    CampfireNotifier.perform
    1. hudson.plugins.campfire.Campfire.post(Campfire.java:68)
    2. hudson.plugins.campfire.Room.speak(Room.java:29)
    3. hudson.plugins.campfire.CampfireNotifier.publish(CampfireNotifier.java:48)
    4. hudson.plugins.campfire.CampfireNotifier.perform(CampfireNotifier.java:80)
    4 frames
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729)
    6. hudson.model.Run.execute(Run.java:1541)
    7. hudson.matrix.MatrixRun.run(MatrixRun.java:146)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:236)
    9 frames