java.lang.IllegalArgumentException: durationMillis must not be negative

GitHub | grepsr | 8 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.

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    durationMillis must not be negative

    at org.apache.commons.lang3.Validate.inclusiveBetween()
  2. Commons Lang
    DurationFormatUtils.formatDuration
    1. org.apache.commons.lang3.Validate.inclusiveBetween(Validate.java:969)[SingularityService.jar:0.8.0]
    2. org.apache.commons.lang3.time.DurationFormatUtils.formatDuration(DurationFormatUtils.java:131)[SingularityService.jar:0.8.0]
    3. org.apache.commons.lang3.time.DurationFormatUtils.formatDuration(DurationFormatUtils.java:114)[SingularityService.jar:0.8.0]
    3 frames
  3. com.hubspot.mesos
    JavaUtils.duration
    1. com.hubspot.mesos.JavaUtils.duration(JavaUtils.java:115)[SingularityService.jar:0.8.0]
    1 frame
  4. com.hubspot.singularity
    SingularityScheduler.getDueTasks
    1. com.hubspot.singularity.data.CuratorManager.log(CuratorManager.java:67)[SingularityService.jar:0.8.0]
    2. com.hubspot.singularity.data.CuratorAsyncManager.queryAndReturnResultsThrows(CuratorAsyncManager.java:308)[SingularityService.jar:0.8.0]
    3. com.hubspot.singularity.data.CuratorAsyncManager.getAsyncThrows(CuratorAsyncManager.java:100)[SingularityService.jar:0.8.0]
    4. com.hubspot.singularity.data.CuratorAsyncManager.getAsyncChildrenThrows(CuratorAsyncManager.java:52)[SingularityService.jar:0.8.0]
    5. com.hubspot.singularity.data.CuratorAsyncManager.getAsyncChildren(CuratorAsyncManager.java:236)[SingularityService.jar:0.8.0]
    6. com.hubspot.singularity.data.TaskManager.getPendingTasks(TaskManager.java:605)[SingularityService.jar:0.8.0]
    7. com.hubspot.singularity.scheduler.SingularityScheduler.getDueTasks(SingularityScheduler.java:301)[SingularityService.jar:0.8.0]
    7 frames
  5. com.palominolabs.metrics
    TimedInterceptor.invoke
    1. com.palominolabs.metrics.guice.TimedInterceptor.invoke(TimedInterceptor.java:47)[SingularityService.jar:0.8.0]
    1 frame
  6. com.hubspot.singularity
    SingularityMesosScheduler.resourceOffers
    1. com.hubspot.singularity.mesos.SingularityMesosScheduler.resourceOffers(SingularityMesosScheduler.java:151)[SingularityService.jar:0.8.0]
    1 frame
  7. com.palominolabs.metrics
    TimedInterceptor.invoke
    1. com.palominolabs.metrics.guice.TimedInterceptor.invoke(TimedInterceptor.java:47)[SingularityService.jar:0.8.0]
    1 frame
  8. com.hubspot.singularity
    SingularityMesosSchedulerDelegator.resourceOffers
    1. com.hubspot.singularity.mesos.SingularityMesosSchedulerDelegator.resourceOffers(SingularityMesosSchedulerDelegator.java:175)[SingularityService.jar:0.8.0]
    1 frame