Copy Artifact Plugin aborts job with java.lang.NegativeArraySizeException

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      This issue started after upgrading from Hudson 1.355 to 1.380

      Jobs where the copy artifact plugin used to work properly now abort with the message:
      FATAL: null
      java.lang.NegativeArraySizeException
      at hudson.remoting.ProxyOutputStream$Chunk.<init>(ProxyOutputStream.java:175)
      at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:123)
      at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103)
      at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
      at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:161)
      at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118)
      at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:72)
      at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
      at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410)
      at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:351)
      at hudson.org.apache.tools.tar.TarOutputStream.writeEOFRecord(TarOutputStream.java:356)
      at hudson.org.apache.tools.tar.TarOutputStream.finish(TarOutputStream.java:137)
      at hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:149)
      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.CopyArtifact.perform(CopyArtifact.java:172)
      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:1280)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:140)

      This has made the jobs unusable!

            Assignee:
            Kohsuke Kawaguchi
            Reporter:
            kevinp2
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: