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

NullPointerException/ race condition when copying artifacts using Copy Artifact Plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • copyartifact-plugin, core
    • None
    • slave runs on mac 10.6

      FATAL: null
      java.lang.NullPointerException
      at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:118)
      at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103)
      at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
      at java.io.FilterOutputStream.close(FilterOutputStream.java:140)
      at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:149)
      at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
      at org.apache.tools.tar.TarBuffer.close(TarBuffer.java:450)
      at hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:150)
      at hudson.util.io.TarArchiver.close(TarArchiver.java:114)
      at hudson.FilePath.writeToTar(FilePath.java:1545)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1470)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1399)
      at hudson.plugins.copyartifact.FilePathCopyMethod.init(FilePathCopyMethod.java:56)
      at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:221)
      at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:199)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      at hudson.model.Build$RunnerImpl.build(Build.java:174)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:138)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      at hudson.model.Run.run(Run.java:1257)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:127)

      I'm wondering what could make window null in line 118 for hudson.remoting.ProxyOutputStream?
      103 _write(b, off, len);
      104 }
      105
      106 /**
      107 *

      {@link #write(byte[])}

      without the close check.
      108 */
      109 private synchronized void _write(byte[] b, int off, int len) throws IOException {
      110 if(channel==null)

      { 111 if(tmp==null) 112 tmp = new ByteArrayOutputStream(); 113 tmp.write(b,off,len); 114 }

      else {
      115 while (len>0) {
      116 int sendable;
      117 try {
      118 sendable = Math.min(window.get(),len);

            Unassigned Unassigned
            martha Martha Tiambeng
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: