java.lang.IllegalArgumentException: Negative time

Jenkins JIRA | keith baker | 5 years ago
  1. 0

    [JENKINS-10629] Tar implimentation can't handle > 8GB and doesn't error out. - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    java.lang.IllegalArgumentException: Negative time
  2. 0

    During archiving from a slave the untaring can fail with files > 8GB. This is because the tar creator makes a corrupt archive. I think it doesn't properly null terminate the size value when the file size is gets to the 12th digit - which is a violation of tar spec (from Wikipedia tar article: Numeric values are encoded in octal numbers using ASCII digits, with leading zeroes. For historical reasons, a final NUL or space character should be used. Thus although there are 12 bytes reserved for storing the file size, only 11 octal digits can be stored. This gives a maximum file size of 8 gigabytes on archived files.) Changing to gnutar might be nice to handle large files, or at least making the library error out when it hits large files rather than happily building corrupt archives. Error caused by this bug (due to reading the corrupt header): Archiving artifacts ERROR: Publisher hudson.tasks.ArtifactArchiver aborted due to exception java.lang.IllegalArgumentException: Negative time at java.io.File.setLastModified(File.java:1258) at hudson.FilePath.readFromTar(FilePath.java:1605) at hudson.FilePath.copyRecursiveTo(FilePath.java:1530) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:649) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:625) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:572) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Finished: FAILURE

    Jenkins JIRA | 5 years ago | keith baker
    java.lang.IllegalArgumentException: Negative time
  3. 0

    During archiving from a slave the untaring can fail with files > 8GB. This is because the tar creator makes a corrupt archive. I think it doesn't properly null terminate the size value when the file size is gets to the 12th digit - which is a violation of tar spec (from Wikipedia tar article: Numeric values are encoded in octal numbers using ASCII digits, with leading zeroes. For historical reasons, a final NUL or space character should be used. Thus although there are 12 bytes reserved for storing the file size, only 11 octal digits can be stored. This gives a maximum file size of 8 gigabytes on archived files.) Changing to gnutar might be nice to handle large files, or at least making the library error out when it hits large files rather than happily building corrupt archives. Error caused by this bug (due to reading the corrupt header): Archiving artifacts ERROR: Publisher hudson.tasks.ArtifactArchiver aborted due to exception java.lang.IllegalArgumentException: Negative time at java.io.File.setLastModified(File.java:1258) at hudson.FilePath.readFromTar(FilePath.java:1605) at hudson.FilePath.copyRecursiveTo(FilePath.java:1530) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:649) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:625) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:572) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Finished: FAILURE

    Jenkins JIRA | 5 years ago | keith baker
    java.lang.IllegalArgumentException: Negative time
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error in Fileutils.copydirectory using apache commons java

    Stack Overflow | 2 years ago | Dhinakar
    java.lang.IllegalArgumentException: Negative time
  6. 0

    Negative time from JSP compiler

    Stack Overflow | 5 years ago
    java.lang.IllegalArgumentException: Negative time

    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.IllegalArgumentException

      Negative time

      at java.io.File.setLastModified()
    2. Java RT
      File.setLastModified
      1. java.io.File.setLastModified(File.java:1258)
      1 frame
    3. Hudson
      Executor.run
      1. hudson.FilePath.readFromTar(FilePath.java:1605)
      2. hudson.FilePath.copyRecursiveTo(FilePath.java:1530)
      3. hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117)
      4. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      5. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:649)
      6. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:625)
      7. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603)
      8. hudson.model.Build$RunnerImpl.post2(Build.java:161)
      9. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:572)
      10. hudson.model.Run.run(Run.java:1386)
      11. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      12. hudson.model.ResourceController.execute(ResourceController.java:88)
      13. hudson.model.Executor.run(Executor.java:145)
      13 frames