java.lang.IllegalArgumentException: durationMillis must not be negative

GitHub | stevenschlansker | 7 months 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

    SingularityDeployPoller IllegalArgumentException: durationMillis must not be negative

    GitHub | 7 months ago | stevenschlansker
    java.lang.IllegalArgumentException: durationMillis must not be negative

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      durationMillis must not be negative

      at org.apache.commons.lang3.Validate.inclusiveBetween()
    2. Commons Lang
      DurationFormatUtils.formatDurationHMS
      1. org.apache.commons.lang3.Validate.inclusiveBetween(Validate.java:969)[singularity-0.6.2.jar:0.6.2]
      2. org.apache.commons.lang3.time.DurationFormatUtils.formatDuration(DurationFormatUtils.java:131)[singularity-0.6.2.jar:0.6.2]
      3. org.apache.commons.lang3.time.DurationFormatUtils.formatDuration(DurationFormatUtils.java:114)[singularity-0.6.2.jar:0.6.2]
      4. org.apache.commons.lang3.time.DurationFormatUtils.formatDurationHMS(DurationFormatUtils.java:83)[singularity-0.6.2.jar:0.6.2]
      4 frames
    3. com.hubspot.singularity
      SingularityLeaderOnlyPoller$1.run
      1. com.hubspot.singularity.scheduler.SingularityDeployChecker.isDeployOverdue(SingularityDeployChecker.java:310)[singularity-0.6.2.jar:0.6.2]
      2. com.hubspot.singularity.scheduler.SingularityDeployChecker.checkDeployProgress(SingularityDeployChecker.java:466)[singularity-0.6.2.jar:0.6.2]
      3. com.hubspot.singularity.scheduler.SingularityDeployChecker.getDeployResult(SingularityDeployChecker.java:431)[singularity-0.6.2.jar:0.6.2]
      4. com.hubspot.singularity.scheduler.SingularityDeployChecker.checkDeploy(SingularityDeployChecker.java:150)[singularity-0.6.2.jar:0.6.2]
      5. com.hubspot.singularity.scheduler.SingularityDeployChecker.checkDeploys(SingularityDeployChecker.java:98)[singularity-0.6.2.jar:0.6.2]
      6. com.hubspot.singularity.scheduler.SingularityDeployPoller.runActionOnPoll(SingularityDeployPoller.java:35)[singularity-0.6.2.jar:0.6.2]
      7. com.hubspot.singularity.scheduler.SingularityLeaderOnlyPoller.runActionIfLeaderAndMesosIsRunning(SingularityLeaderOnlyPoller.java:108)[singularity-0.6.2.jar:0.6.2]
      8. com.hubspot.singularity.scheduler.SingularityLeaderOnlyPoller.access$000(SingularityLeaderOnlyPoller.java:24)[singularity-0.6.2.jar:0.6.2]
      9. com.hubspot.singularity.scheduler.SingularityLeaderOnlyPoller$1.run(SingularityLeaderOnlyPoller.java:83)[singularity-0.6.2.jar:0.6.2]
      9 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_72-internal]
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[na:1.8.0_72-internal]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_72-internal]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[na:1.8.0_72-internal]
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_72-internal]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_72-internal]
      7. java.lang.Thread.run(Thread.java:745)[na:1.8.0_72-internal]
      7 frames