java.lang.IllegalArgumentException: Negative time

Jenkins JIRA | robsimon | 2 years ago
  1. 0

    1) have remote workspace on linux which generates a big video file (12GB) 2) have a master on windows which should archive this file during archiving the following exception is raised Archiving artifacts ERROR: Publisher hudson.tasks.ArtifactArchiver aborted due to exception java.lang.IllegalArgumentException: Negative time at java.io.File.setLastModified(Unknown Source) at hudson.FilePath.readFromTar(FilePath.java:2103) at hudson.FilePath.copyRecursiveTo(FilePath.java:2023) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:217) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1770) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) 3) job fails with error and video file doesn't get archived Note: files up to 7GB are working fine

    Jenkins JIRA | 2 years ago | robsimon
    java.lang.IllegalArgumentException: Negative time
  2. 0

    1) have remote workspace on linux which generates a big video file (12GB) 2) have a master on windows which should archive this file during archiving the following exception is raised Archiving artifacts ERROR: Publisher hudson.tasks.ArtifactArchiver aborted due to exception java.lang.IllegalArgumentException: Negative time at java.io.File.setLastModified(Unknown Source) at hudson.FilePath.readFromTar(FilePath.java:2103) at hudson.FilePath.copyRecursiveTo(FilePath.java:2023) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:217) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1770) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) 3) job fails with error and video file doesn't get archived Note: files up to 7GB are working fine

    Jenkins JIRA | 2 years ago | robsimon
    java.lang.IllegalArgumentException: Negative time
  3. 0

    jenkins throws exception when archiving artifacts

    Stack Overflow | 3 years ago | stevenGe
    java.lang.IllegalArgumentException: Negative time
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    "Negative time" when trying to run WAR generated with tomcat7-maven-plugin:exec-war-only

    Stack Overflow | 3 years ago | AlexZam
    java.lang.IllegalArgumentException: Negative time
  6. 0

    What am I doing to cause an "IllegalArgumentException: Negative time" exception in install4j?

    Stack Overflow | 4 years ago | Frank
    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(Unknown Source)
      1 frame
    3. Hudson
      FilePath.copyRecursiveTo
      1. hudson.FilePath.readFromTar(FilePath.java:2103)
      2. hudson.FilePath.copyRecursiveTo(FilePath.java:2023)
      2 frames
    4. jenkins.model
      StandardArtifactManager.archive
      1. jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:217)
      2. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
      3. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      4. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      6. hudson.model.Build$BuildExecution.post2(Build.java:183)
      7. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      8. hudson.model.Run.execute(Run.java:1770)
      9. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      10. hudson.model.ResourceController.execute(ResourceController.java:89)
      11. hudson.model.Executor.run(Executor.java:240)
      11 frames