java.lang.NegativeArraySizeException

Jenkins JIRA | kevinp2 | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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!

    Jenkins JIRA | 6 years ago | kevinp2
    java.lang.NegativeArraySizeException
  2. 0

    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!

    Jenkins JIRA | 6 years ago | kevinp2
    java.lang.NegativeArraySizeException
  3. 0

    After an Upgrade to 1.379 (from 1.366) we got several exceptions on site archiving. As we are in need for the new version (because of JENKINS-6817 which seems to be fixed for at least our site with JENKINS-5977) we tried it with 1.380, 1.381 and 1.382 but only the type of the exceptions changed sometimes. Some of them are already covered in JENKINS-7783, JENKINS-7581, JENKINS-7745, JENKINS-7734. We get additionally a NegativeArraySizeException (at least on 1.382): [HUDSON] Archiving site from 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(4,98)->130945 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(4,4)->130941 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(4,87)->130854 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(4,1)->130853 /software/hudson/slave-1/data/workspace/de.wwag.vertrieb.pdfService~core~B-trunk~build/target/site25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(4,29)->130882 to /software/hudson/hudson-1/data/jobs/de.wwag.vertrieb.pdfService~core~B-trunk~build/site 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(4,98)->130980 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(4,4)->130984 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(4,87)->131071 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(4,1)->131072 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(19,8018)->123054 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(19,131072)->-8018 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(19,8192)->-16210 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(19,8018)->-8192 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(19,131072)->122880 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(19,8192)->131072 [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace 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:88) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:132) at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:180) at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:138) at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:95) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:128) 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.maven.reporters.MavenSiteArchiver.postExecute(MavenSiteArchiver.java:81) at hudson.maven.MavenModuleSetBuild$Builder.postExecute(MavenModuleSetBuild.java:772) at hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:300) at hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPost(PluginManagerInterceptor.java:170) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:183) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:694) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:638) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:432) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:284) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:678) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:703) at java.lang.Thread.run(Thread.java:811)

    Jenkins JIRA | 6 years ago | micha4311
    java.lang.NegativeArraySizeException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After an Upgrade to 1.379 (from 1.366) we got several exceptions on site archiving. As we are in need for the new version (because of JENKINS-6817 which seems to be fixed for at least our site with JENKINS-5977) we tried it with 1.380, 1.381 and 1.382 but only the type of the exceptions changed sometimes. Some of them are already covered in JENKINS-7783, JENKINS-7581, JENKINS-7745, JENKINS-7734. We get additionally a NegativeArraySizeException (at least on 1.382): [HUDSON] Archiving site from 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(4,98)->130945 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(4,4)->130941 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(4,87)->130854 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(4,1)->130853 /software/hudson/slave-1/data/workspace/de.wwag.vertrieb.pdfService~core~B-trunk~build/target/site25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(4,29)->130882 to /software/hudson/hudson-1/data/jobs/de.wwag.vertrieb.pdfService~core~B-trunk~build/site 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(4,98)->130980 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(4,4)->130984 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(4,87)->131071 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(4,1)->131072 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(19,8018)->123054 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(19,131072)->-8018 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real decrease INFO: decrease(19,8192)->-16210 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(19,8018)->-8192 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(19,131072)->122880 25.10.2010 17:51:58 hudson.remoting.PipeWindow$Real increase INFO: increase(19,8192)->131072 [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace 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:88) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:132) at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:180) at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:138) at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:95) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:128) 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.maven.reporters.MavenSiteArchiver.postExecute(MavenSiteArchiver.java:81) at hudson.maven.MavenModuleSetBuild$Builder.postExecute(MavenModuleSetBuild.java:772) at hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:300) at hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPost(PluginManagerInterceptor.java:170) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:183) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:694) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:638) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:432) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:284) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:678) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:703) at java.lang.Thread.run(Thread.java:811)

    Jenkins JIRA | 6 years ago | micha4311
    java.lang.NegativeArraySizeException
  6. 0

    The error is intermittent. Over the weekend the copying between the 64-bit master and the 64-bit slave also failed Here is the trace. FATAL: hudson.util.IOException2: Not in GZIP format 21:16:23 stream=17a62cd81f681b04e30e75de9e220b5a85b8649967a52ef738875c56e48311b728a48a42552dc6f235564de8168d58bec22743a5c800280ae5e8754983cb6108b3135859dd13f10cffd123ed77bb477451a7d1e9e24362603c22bfc74f5246870174f2ce1642dd894fedddbbfee4f08052e0e2456654a8711b81f941e91105c000fe96d4a2d8fc5239c6314da0ebb5cde52592793756dfad939cf5bedc196667d4375881d2aa4ba2eb107605200cd41e89be50ec253ec1e23a5fe38aba566dfbae5583f78f00f1bfdbbdafae47690e20856d74dcb320c82b4a51f09521b060687227441753c94dd44c496de008bdfc06e1110658b360c0e4e23dac900da0ba4fac719872b3ea6bc2521cb112c587188e3b6d6325f1d7e13a05c4211362acd1c425ac4aa9859cb88ef550284cb9697b76e6dcebd720053feca507825d6c114307cc736705bfefc81bcf0d9ed29734425231d1ad86dd556d23dc5fdcc26df485f33b91cdb9e89a8c1dd8751d243c4942d5f5ebc813de97911385cf1d7c4abb7bd7e30ad0d5a917d65ab5097d85ecd954be0c7b27c52f915a670bc52fa0bd464b09f772395bd5b1038d263ab036225d2d698168eaad5975340e59420d4ee5f4d6e499c832067da747401353cfbd394aa9ba50796b01e61ac7b917eca31d1ca6a63f248507858bea1c4a47ee1cd8d496f8999da19145eabee6f2faead236eb9ace30e3d560b5c826a31852fc4f82ec21aef9c286f584a50c220ca00cea137509b481b9a25c138b698da95bdd249588ca292a117333bb4bf7402ca7ac10053146dda33d60902d557fe19cf52b0ac0edea5b7359152d0657136b1b6bbb38def5d58d07a06b2fc6f8a94f45786437970edc509158dd5c234c5e17d5186f509f17929fe01512d9b4c5abfcb667e8fe83cb9efc327725f15a03890f818a1840062394e1801f53d72c5dc73656c16ebfa68d5451b6d2ae541d56cd939506bae50dca877b7f1bad4fc721710e798d07bdebd1e556d900a5cf7adc76d8ee769fa109abb1d70eacebcd91520b0c9d276a673332d4ad3de6989a3f23fb5924512ec3a15890d331c9df2c3451a7a959cc30ccaa4f444213d7e12b9fe4a67c8817b5660a8243bca82b864bebeb9bcb756b9dcce8680a5ca3c082a901c76b044152d0a00900869d5470958c2e62c8ca91dd3ab15cb1693b4674c44079d7287541864648b54ca60d79a3e318ef4b78583d2979fb9a0ac6995842cb61957577f419fcc3144b611c391d0ac38697c63c934a67b3cbf41a310669fa9acab54c116bf3d57612b3d3cbe5a3429d5a384fb4b24c25ee521993a0423ea71452aa3297b13731777e8aca40c884e3aa289ad1d9767460744a708f7399188f0b3b244bded136d23ddb624e45c81a858356cfefc4ec5d5a33518707cc3fa1e31926977ec8b79d50276159cbd2918a 21:16:23 hudson.util.IOException2: hudson.util.IOException2: Not in GZIP format 21:16:23 stream=17a62cd81f681b04e30e75de9e220b5a85b8649967a52ef738875c56e48311b728a48a42552dc6f235564de8168d58bec22743a5c800280ae5e8754983cb6108b3135859dd13f10cffd123ed77bb477451a7d1e9e24362603c22bfc74f5246870174f2ce1642dd894fedddbbfee4f08052e0e2456654a8711b81f941e91105c000fe96d4a2d8fc5239c6314da0ebb5cde52592793756dfad939cf5bedc196667d4375881d2aa4ba2eb107605200cd41e89be50ec253ec1e23a5fe38aba566dfbae5583f78f00f1bfdbbdafae47690e20856d74dcb320c82b4a51f09521b060687227441753c94dd44c496de008bdfc06e1110658b360c0e4e23dac900da0ba4fac719872b3ea6bc2521cb112c587188e3b6d6325f1d7e13a05c4211362acd1c425ac4aa9859cb88ef550284cb9697b76e6dcebd720053feca507825d6c114307cc736705bfefc81bcf0d9ed29734425231d1ad86dd556d23dc5fdcc26df485f33b91cdb9e89a8c1dd8751d243c4942d5f5ebc813de97911385cf1d7c4abb7bd7e30ad0d5a917d65ab5097d85ecd954be0c7b27c52f915a670bc52fa0bd464b09f772395bd5b1038d263ab036225d2d698168eaad5975340e59420d4ee5f4d6e499c832067da747401353cfbd394aa9ba50796b01e61ac7b917eca31d1ca6a63f248507858bea1c4a47ee1cd8d496f8999da19145eabee6f2faead236eb9ace30e3d560b5c826a31852fc4f82ec21aef9c286f584a50c220ca00cea137509b481b9a25c138b698da95bdd249588ca292a117333bb4bf7402ca7ac10053146dda33d60902d557fe19cf52b0ac0edea5b7359152d0657136b1b6bbb38def5d58d07a06b2fc6f8a94f45786437970edc509158dd5c234c5e17d5186f509f17929fe01512d9b4c5abfcb667e8fe83cb9efc327725f15a03890f818a1840062394e1801f53d72c5dc73656c16ebfa68d5451b6d2ae541d56cd939506bae50dca877b7f1bad4fc721710e798d07bdebd1e556d900a5cf7adc76d8ee769fa109abb1d70eacebcd91520b0c9d276a673332d4ad3de6989a3f23fb5924512ec3a15890d331c9df2c3451a7a959cc30ccaa4f444213d7e12b9fe4a67c8817b5660a8243bca82b864bebeb9bcb756b9dcce8680a5ca3c082a901c76b044152d0a00900869d5470958c2e62c8ca91dd3ab15cb1693b4674c44079d7287541864648b54ca60d79a3e318ef4b78583d2979fb9a0ac6995842cb61957577f419fcc3144b611c391d0ac38697c63c934a67b3cbf41a310669fa9acab54c116bf3d57612b3d3cbe5a3429d5a384fb4b24c25ee521993a0423ea71452aa3297b13731777e8aca40c884e3aa289ad1d9767460744a708f7399188f0b3b244bded136d23ddb624e45c81a858356cfefc4ec5d5a33518707cc3fa1e31926977ec8b79d50276159cbd2918a 21:16:23 at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:94) 21:16:23 at com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper.setUp(CopyToSlaveBuildWrapper.java:94) 21:16:23 at hudson.model.Build$RunnerImpl.doRun(Build.java:131) 21:16:23 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417) 21:16:23 at hudson.model.Run.run(Run.java:1365) 21:16:23 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 21:16:23 at hudson.model.ResourceController.execute(ResourceController.java:88) 21:16:23 at hudson.model.Executor.run(Executor.java:145) 21:16:23 Caused by: java.util.concurrent.ExecutionException: hudson.util.IOException2: Not in GZIP format 21:16:23 stream=17a62cd81f681b04e30e75de9e220b5a85b8649967a52ef738875c56e48311b728a48a42552dc6f235564de8168d58bec22743a5c800280ae5e8754983cb6108b3135859dd13f10cffd123ed77bb477451a7d1e9e24362603c22bfc74f5246870174f2ce1642dd894fedddbbfee4f08052e0e2456654a8711b81f941e91105c000fe96d4a2d8fc5239c6314da0ebb5cde52592793756dfad939cf5bedc196667d4375881d2aa4ba2eb107605200cd41e89be50ec253ec1e23a5fe38aba566dfbae5583f78f00f1bfdbbdafae47690e20856d74dcb320c82b4a51f09521b060687227441753c94dd44c496de008bdfc06e1110658b360c0e4e23dac900da0ba4fac719872b3ea6bc2521cb112c587188e3b6d6325f1d7e13a05c4211362acd1c425ac4aa9859cb88ef550284cb9697b76e6dcebd720053feca507825d6c114307cc736705bfefc81bcf0d9ed29734425231d1ad86dd556d23dc5fdcc26df485f33b91cdb9e89a8c1dd8751d243c4942d5f5ebc813de97911385cf1d7c4abb7bd7e30ad0d5a917d65ab5097d85ecd954be0c7b27c52f915a670bc52fa0bd464b09f772395bd5b1038d263ab036225d2d698168eaad5975340e59420d4ee5f4d6e499c832067da747401353cfbd394aa9ba50796b01e61ac7b917eca31d1ca6a63f248507858bea1c4a47ee1cd8d496f8999da19145eabee6f2faead236eb9ace30e3d560b5c826a31852fc4f82ec21aef9c286f584a50c220ca00cea137509b481b9a25c138b698da95bdd249588ca292a117333bb4bf7402ca7ac10053146dda33d60902d557fe19cf52b0ac0edea5b7359152d0657136b1b6bbb38def5d58d07a06b2fc6f8a94f45786437970edc509158dd5c234c5e17d5186f509f17929fe01512d9b4c5abfcb667e8fe83cb9efc327725f15a03890f818a1840062394e1801f53d72c5dc73656c16ebfa68d5451b6d2ae541d56cd939506bae50dca877b7f1bad4fc721710e798d07bdebd1e556d900a5cf7adc76d8ee769fa109abb1d70eacebcd91520b0c9d276a673332d4ad3de6989a3f23fb5924512ec3a15890d331c9df2c3451a7a959cc30ccaa4f444213d7e12b9fe4a67c8817b5660a8243bca82b864bebeb9bcb756b9dcce8680a5ca3c082a901c76b044152d0a00900869d5470958c2e62c8ca91dd3ab15cb1693b4674c44079d7287541864648b54ca60d79a3e318ef4b78583d2979fb9a0ac6995842cb61957577f419fcc3144b611c391d0ac38697c63c934a67b3cbf41a310669fa9acab54c116bf3d57612b3d3cbe5a3429d5a384fb4b24c25ee521993a0423ea71452aa3297b13731777e8aca40c884e3aa289ad1d9767460744a708f7399188f0b3b244bded136d23ddb624e45c81a858356cfefc4ec5d5a33518707cc3fa1e31926977ec8b79d50276159cbd2918a 21:16:23 at hudson.remoting.Channel$2.adapt(Channel.java:662) 21:16:23 at hudson.remoting.Channel$2.adapt(Channel.java:657) 21:16:23 at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) 21:16:23 at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:92) 21:16:23 ... 7 more 21:16:23 Caused by: hudson.util.IOException2: Not in GZIP format 21:16:23 stream=17a62cd81f681b04e30e75de9e220b5a85b8649967a52ef738875c56e48311b728a48a42552dc6f235564de8168d58bec22743a5c800280ae5e8754983cb6108b3135859dd13f10cffd123ed77bb477451a7d1e9e24362603c22bfc74f5246870174f2ce1642dd894fedddbbfee4f08052e0e2456654a8711b81f941e91105c000fe96d4a2d8fc5239c6314da0ebb5cde52592793756dfad939cf5bedc196667d4375881d2aa4ba2eb107605200cd41e89be50ec253ec1e23a5fe38aba566dfbae5583f78f00f1bfdbbdafae47690e20856d74dcb320c82b4a51f09521b060687227441753c94dd44c496de008bdfc06e1110658b360c0e4e23dac900da0ba4fac719872b3ea6bc2521cb112c587188e3b6d6325f1d7e13a05c4211362acd1c425ac4aa9859cb88ef550284cb9697b76e6dcebd720053feca507825d6c114307cc736705bfefc81bcf0d9ed29734425231d1ad86dd556d23dc5fdcc26df485f33b91cdb9e89a8c1dd8751d243c4942d5f5ebc813de97911385cf1d7c4abb7bd7e30ad0d5a917d65ab5097d85ecd954be0c7b27c52f915a670bc52fa0bd464b09f772395bd5b1038d263ab036225d2d698168eaad5975340e59420d4ee5f4d6e499c832067da747401353cfbd394aa9ba50796b01e61ac7b917eca31d1ca6a63f248507858bea1c4a47ee1cd8d496f8999da19145eabee6f2faead236eb9ace30e3d560b5c826a31852fc4f82ec21aef9c286f584a50c220ca00cea137509b481b9a25c138b698da95bdd249588ca292a117333bb4bf7402ca7ac10053146dda33d60902d557fe19cf52b0ac0edea5b7359152d0657136b1b6bbb38def5d58d07a06b2fc6f8a94f45786437970edc509158dd5c234c5e17d5186f509f17929fe01512d9b4c5abfcb667e8fe83cb9efc327725f15a03890f818a1840062394e1801f53d72c5dc73656c16ebfa68d5451b6d2ae541d56cd939506bae50dca877b7f1bad4fc721710e798d07bdebd1e556d900a5cf7adc76d8ee769fa109abb1d70eacebcd91520b0c9d276a673332d4ad3de6989a3f23fb5924512ec3a15890d331c9df2c3451a7a959cc30ccaa4f444213d7e12b9fe4a67c8817b5660a8243bca82b864bebeb9bcb756b9dcce8680a5ca3c082a901c76b044152d0a00900869d5470958c2e62c8ca91dd3ab15cb1693b4674c44079d7287541864648b54ca60d79a3e318ef4b78583d2979fb9a0ac6995842cb61957577f419fcc3144b611c391d0ac38697c63c934a67b3cbf41a310669fa9acab54c116bf3d57612b3d3cbe5a3429d5a384fb4b24c25ee521993a0423ea71452aa3297b13731777e8aca40c884e3aa289ad1d9767460744a708f7399188f0b3b244bded136d23ddb624e45c81a858356cfefc4ec5d5a33518707cc3fa1e31926977ec8b79d50276159cbd2918a 21:16:23 at hudson.FilePath$TarCompression$2.extract(FilePath.java:537) 21:16:23 at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath$1.invoke(MyFilePath.java:82) 21:16:23 at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath$1.invoke(MyFilePath.java:77) 21:16:23 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1925) 21:16:23 at hudson.remoting.UserRequest.perform(UserRequest.java:114) 21:16:23 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 21:16:23 at hudson.remoting.Request$2.run(Request.java:270) 21:16:23 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 21:16:23 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 21:16:23 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 21:16:23 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 21:16:23 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 21:16:23 at java.lang.Thread.run(Thread.java:636) 21:16:23 Caused by: java.io.IOException: Not in GZIP format 21:16:23 at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:154) 21:16:23 at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:75) 21:16:23 at hudson.FilePath$TarCompression$2.extract(FilePath.java:533) 21:16:23 ... 12 more Copying a compressed tar file from a 64-bit master to a 32-bit slave When copying a compressed tar file, such as myfile.gar.gz from master to slave I get the following error. Part of the file gets copied (always the same amount) before the copying fails. Started by user ullamerz Building remotely on bcbl10 Copying 'tar/adps_dev.tar.gz', excluding '' from 'file:/hudson/server/' on the master to 'file:/hudson/server/workspace/copy-tar/' on 'bcbl10'. 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:82) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126) at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:178) at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:135) at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:89) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122) at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410) at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:388) at hudson.org.apache.tools.tar.TarOutputStream.write(TarOutputStream.java:337) at hudson.util.io.TarArchiver.visit(TarArchiver.java:103) at com.michelin.cio.hudson.plugins.copytoslave.MyGlobDirScanner.scan(MyGlobDirScanner.java:68) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.writeToTar(MyFilePath.java:173) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:90) at com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper.setUp(CopyToSlaveBuildWrapper.java:94) at hudson.model.Build$RunnerImpl.doRun(Build.java:131) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417) at hudson.model.Run.run(Run.java:1365) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Once or twice I also received this error; but the error showing below does not persist tarted by user ullamerz Building remotely on bcbl10 Copying 'tar/adps_dev.tar.gz', excluding '' from 'file:/hudson/server/' on the master to 'file:/hudson/server/workspace/copy-tar/' on 'bcbl10'. FATAL: hudson.util.IOException2: Failed to extract /hudson/server/tar/adps_dev.tar.gz hudson.util.IOException2: hudson.util.IOException2: Failed to extract /hudson/server/tar/adps_dev.tar.gz at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:94) at com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper.setUp(CopyToSlaveBuildWrapper.java:94) at hudson.model.Build$RunnerImpl.doRun(Build.java:131) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417) at hudson.model.Run.run(Run.java:1365) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.util.concurrent.ExecutionException: hudson.util.IOException2: Failed to extract /hudson/server/tar/adps_dev.tar.gz at hudson.remoting.Channel$2.adapt(Channel.java:662) at hudson.remoting.Channel$2.adapt(Channel.java:657) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:92) ... 7 more Caused by: hudson.util.IOException2: Failed to extract /hudson/server/tar/adps_dev.tar.gz at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.readFromTar(MyFilePath.java:158) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath$1.invoke(MyFilePath.java:82) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath$1.invoke(MyFilePath.java:77) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1925) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.util.zip.ZipException: invalid stored block lengths at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:109) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at hudson.org.apache.tools.tar.TarInputStream.read(TarInputStream.java:345) at java.io.FilterInputStream.read(FilterInputStream.java:107) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) at org.apache.commons.io.IOUtils.copy(IOUtils.java:999) at hudson.util.IOUtils.copy(IOUtils.java:33) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.readFromTar(MyFilePath.java:135) ... 12 more The copying works fine using a 64bit slave with also SUSE 11.1 On the 32-bit slave I defined a pre-build script doing an scp from the master to the slave and this works consistently.

    Jenkins JIRA | 6 years ago | ullamerz
    java.lang.NegativeArraySizeException

    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.lang.NegativeArraySizeException

      No message provided

      at hudson.remoting.ProxyOutputStream$Chunk.<init>()
    2. Hudson :: Remoting Layer
      ProxyOutputStream.write
      1. hudson.remoting.ProxyOutputStream$Chunk.<init>(ProxyOutputStream.java:175)
      2. hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:123)
      3. hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103)
      3 frames
    3. Java RT
      BufferedOutputStream.write
      1. java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      2. java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
      3. java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:161)
      4. java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118)
      5. java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:72)
      6. java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
      6 frames
    4. Ant
      TarBuffer.writeRecord
      1. org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410)
      2. org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:351)
      2 frames
    5. Hudson
      FilePath.copyRecursiveTo
      1. hudson.org.apache.tools.tar.TarOutputStream.writeEOFRecord(TarOutputStream.java:356)
      2. hudson.org.apache.tools.tar.TarOutputStream.finish(TarOutputStream.java:137)
      3. hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:149)
      4. hudson.util.io.TarArchiver.close(TarArchiver.java:114)
      5. hudson.FilePath.writeToTar(FilePath.java:1545)
      6. hudson.FilePath.copyRecursiveTo(FilePath.java:1470)
      7. hudson.FilePath.copyRecursiveTo(FilePath.java:1399)
      7 frames
    6. hudson.plugins.copyartifact
      CopyArtifact.perform
      1. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:172)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      3. hudson.model.Build$RunnerImpl.build(Build.java:174)
      4. hudson.model.Build$RunnerImpl.doRun(Build.java:138)
      5. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      6. hudson.model.Run.run(Run.java:1280)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:140)
      9 frames