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

Unexpected close of a file stream

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: