Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20970

Unexpected close of a file stream

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          raphc Raphael CHAUMIER created issue -
          raphc Raphael CHAUMIER made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          raphc Raphael CHAUMIER made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 152811 ] JNJira + In-Review [ 194351 ]
          raphc Raphael CHAUMIER made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              raphc Raphael CHAUMIER
              Reporter:
              raphc Raphael CHAUMIER
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: