java.lang.IllegalArgumentException: durationMillis must not be negative

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.
java.lang.IllegalArgumentException: durationMillis must not be negative
at org.apache.commons.lang3.Validate.inclusiveBetween(Validate.java:969)
at org.apache.commons.lang3.time.DurationFormatUtils.formatDuration(DurationFormatUtils.java:131)
at com.hubspot.mesos.JavaUtils.duration(JavaUtils.java:115)
at com.hubspot.singularity.data.CuratorManager.log(CuratorManager.java:67)
at com.hubspot.singularity.data.CuratorAsyncManager.queryAndReturnResultsThrows(CuratorAsyncManager.java:308)
at com.hubspot.singularity.data.CuratorAsyncManager.getAsyncThrows(CuratorAsyncManager.java:100)
at com.hubspot.singularity.data.CuratorAsyncManager.getAsyncChildrenThrows(CuratorAsyncManager.java:52)
at com.hubspot.singularity.data.CuratorAsyncManager.getAsyncChildren(CuratorAsyncManager.java:236)
at com.hubspot.singularity.data.TaskManager.getPendingTasks(TaskManager.java:605)
at com.hubspot.singularity.scheduler.SingularityScheduler.getDueTasks(SingularityScheduler.java:301)
at com.palominolabs.metrics.guice.TimedInterceptor.invoke(TimedInterceptor.java:47)
at com.hubspot.singularity.mesos.SingularityMesosScheduler.resourceOffers(SingularityMesosScheduler.java:151)
at com.palominolabs.metrics.guice.TimedInterceptor.invoke(TimedInterceptor.java:47)
at com.hubspot.singularity.mesos.SingularityMesosSchedulerDelegator.resourceOffers(SingularityMesosSchedulerDelegator.java:175)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.