java.lang.IllegalArgumentException: Time spent '2d 5h' must be not null and greater then zero


Solutions on the web364

Solution icon of atlassian
via Atlassian JIRA by Christopher Parker [Atlassian], 1 year ago
Time spent '2d 5h' must be not null and greater then zero

Solution icon of atlassian
via Atlassian JIRA by Christopher Parker [Atlassian], 1 year ago
Time spent '2d 5h' must be not null and greater then zero

Solution icon of googlegroups
via Google Groups by Unknown author, 1 year ago
Line must be null or greater than zero (got 0)

Solution icon of stackoverflow
Line must be null or greater than zero (got 0)

Solution icon of stackoverflow
Line must be null or greater than zero (got 0)

Solution icon of googlegroups
via Google Groups by Massimo Paladin, 1 year ago
Line must be null or greater than zero (got 0)

Solution icon of github
Line must be null or greater than zero (got 0)

Solution icon of stackoverflow
Line must be null or greater than zero (got 0)

Solution icon of web
Line must be null or greater than  zero (got 0)

Solution icon of github
Line must be null or greater than zero (got 0)

Stack trace

java.lang.IllegalArgumentException: Time spent '2d 5h' must be not null and greater then zero
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)[guava-18.0.jar:?]
	at com.atlassian.fecru.plugins.jirarest.JiraIssueImpl$6.run(JiraIssueImpl.java:290)[?:?]
	at com.atlassian.fecru.plugins.jirarest.restinvoker.JiraRestInvokerImpl.invoke(JiraRestInvokerImpl.java:46)[?:?]
	at com.atlassian.fecru.plugins.jirarest.restinvoker.JiraRestInvokerImpl.invokeAuthenticated(JiraRestInvokerImpl.java:29)[?:?]
	at com.atlassian.fecru.plugins.jirarest.JiraIssueImpl.logWork(JiraIssueImpl.java:286)[?:?]
	at com.atlassian.fecru.plugin.commithook.jira.commands.TimeCommandHandler$1.execute(TimeCommandHandler.java:58)[?:?]
	at com.atlassian.fecru.plugin.commithook.jira.commands.CommandHandler.doForEachIssue(CommandHandler.java:112)[?:?]
	at com.atlassian.fecru.plugin.commithook.jira.commands.TimeCommandHandler.doForProject(TimeCommandHandler.java:53)[?:?]
	at com.atlassian.fecru.plugin.commithook.jira.commands.CommandHandler.handleCommand(CommandHandler.java:52)[?:?]
	at com.atlassian.fecru.plugin.commithook.jira.JIRACommitHook$1.perform(JIRACommitHook.java:66)[?:?]
	at com.atlassian.fecru.plugin.commithook.jira.JIRACommitHook$1.perform(JIRACommitHook.java:61)[?:?]
	at com.atlassian.crucible.spi.impl.DefaultImpersonationService.doOperationAsUser(DefaultImpersonationService.java:122)[fisheye.jar:?]
	at com.atlassian.crucible.spi.impl.DefaultImpersonationService.doAsUser(DefaultImpersonationService.java:45)[fisheye.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497)[?:1.8.0_45]
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at com.cenqua.crucible.hibernate.WithSessionAspect.doCloseSession(WithSessionAspect.java:56)[fisheye.jar:?]
	at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497)[?:1.8.0_45]
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)[spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
	at com.sun.proxy.$Proxy113.doAsUser(Unknown Source)[?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497)[?:1.8.0_45]
	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)[atlassian-plugins-core-4.1.5.jar:?]
	at com.sun.proxy.$Proxy170.doAsUser(Unknown Source)[?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497)[?:1.8.0_45]
	at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136)[?:?]
	at com.sun.proxy.$Proxy170.doAsUser(Unknown Source)[?:?]
	at com.atlassian.fecru.plugin.commithook.jira.JIRACommitHook.processHook(JIRACommitHook.java:61)[?:?]
	at com.atlassian.fecru.plugin.commithook.internal.DefaultCommitHookManager.handleCommit(DefaultCommitHookManager.java:223)[fecru-commithooks-plugin-4.1.0-SNAPSHOT_1462183376000.jar:?]
	at com.atlassian.fecru.plugin.commithook.internal.DefaultCommitHookManager.handleCommit(DefaultCommitHookManager.java:192)[fecru-commithooks-plugin-4.1.0-SNAPSHOT_1462183376000.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497)[?:1.8.0_45]
	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)[atlassian-event-3.0.0.jar:?]
	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46)[atlassian-event-3.0.0.jar:?]
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)[guava-18.0.jar:?]
	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:105)[atlassian-event-3.0.0.jar:?]
	at com.atlassian.event.internal.LockFreeEventPublisher$Publisher.dispatch(LockFreeEventPublisher.java:260)[atlassian-event-3.0.0.jar:?]
	at com.atlassian.event.internal.LockFreeEventPublisher.publish(LockFreeEventPublisher.java:102)[atlassian-event-3.0.0.jar:?]
	at com.atlassian.fisheye.event.FisheyeEventPublisher$EventPublication.publish(FisheyeEventPublisher.java:63)[fisheye.jar:?]
	at com.atlassian.fisheye.event.FisheyeEventPublisher.publish(FisheyeEventPublisher.java:35)[fisheye.jar:?]
	at com.cenqua.fisheye.rep.CommitEventGenerator$CommitEventNotifier$1.apply(CommitEventGenerator.java:290)[fisheye.jar:?]
	at com.cenqua.fisheye.rep.CommitEventGenerator$CommitEventNotifier$1.apply(CommitEventGenerator.java:273)[fisheye.jar:?]
	at com.cenqua.fisheye.rep.RepositoryHandle.withEngine(RepositoryHandle.java:511)[fisheye.jar:?]
	at com.cenqua.fisheye.rep.CommitEventGenerator$CommitEventNotifier.run(CommitEventGenerator.java:273)[fisheye.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_45]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_45]
	at java.lang.Thread.run(Thread.java:745)[?:1.8.0_45]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 1 year ago
10 times, 3 months ago
Once, 3 months ago
Once, 4 months ago
3 times, 5 months ago
33 more bugmates