java.io.IOException: Stream Closed

jenkins-ci.org | 2 months ago
  1. 0

    https://github.com/jenkinsci/weblogic-deployer-plugin/commit/981fc3eacd1979833ff2674fbea1c410bd626f2b It seems like the log file stream is closed a bit too early (before calling the deploy() method which then uses that stream). As a result, my deployment log file is empty and Jenkins prints the following stacktrace: 11:07:04 java.io.IOException: Stream Closed 11:07:04 at java.io.FileOutputStream.writeBytes(Native Method) 11:07:04 at java.io.FileOutputStream.write(FileOutputStream.java:325) 11:07:04 at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:284) 11:07:04 at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:182) 11:07:04 at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236) 11:07:04 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 11:07:04 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) 11:07:04 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757) 11:07:04 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1020) 11:07:04 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706) 11:07:04 at hudson.model.Run.execute(Run.java:1702) 11:07:04 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) 11:07:04 at hudson.model.ResourceController.execute(ResourceController.java:88) 11:07:04 at hudson.model.Executor.run(Executor.java:231) 11:07:04 ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.

    Jenkins JIRA | 3 years ago | Raphael CHAUMIER
    java.io.IOException: Stream Closed
  2. 0

    https://github.com/jenkinsci/weblogic-deployer-plugin/commit/981fc3eacd1979833ff2674fbea1c410bd626f2b It seems like the log file stream is closed a bit too early (before calling the deploy() method which then uses that stream). As a result, my deployment log file is empty and Jenkins prints the following stacktrace: 11:07:04 java.io.IOException: Stream Closed 11:07:04 at java.io.FileOutputStream.writeBytes(Native Method) 11:07:04 at java.io.FileOutputStream.write(FileOutputStream.java:325) 11:07:04 at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:284) 11:07:04 at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:182) 11:07:04 at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236) 11:07:04 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 11:07:04 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) 11:07:04 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757) 11:07:04 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1020) 11:07:04 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706) 11:07:04 at hudson.model.Run.execute(Run.java:1702) 11:07:04 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) 11:07:04 at hudson.model.ResourceController.execute(ResourceController.java:88) 11:07:04 at hudson.model.Executor.run(Executor.java:231) 11:07:04 ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.

    Jenkins JIRA | 3 years ago | Raphael CHAUMIER
    java.io.IOException: Stream Closed
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    WebLogic Deployer Plugin - Jenkins - Jenkins Wiki

    jenkins-ci.org | 5 months ago
    java.io.IOException: Stream Closed
  5. 0

    FileOutputStream: Stream closed

    Stack Overflow | 4 years ago | smerlin
    java.io.IOException: Stream Closed

    6 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.FileOutputStream.writeBytes()
    2. Java RT
      FileOutputStream.write
      1. java.io.FileOutputStream.writeBytes(Native Method)
      2. java.io.FileOutputStream.write(FileOutputStream.java:325)
      2 frames
    3. org.jenkinsci.plugins
      WeblogicDeploymentPlugin.perform
      1. org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:284)
      2. org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:182)
      3. org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236)
      3 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757)
      3 frames
    5. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.post2
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1020)
      1 frame
    6. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706)
      2. hudson.model.Run.execute(Run.java:1702)
      2 frames
    7. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:231)
      2 frames