com.atlassian.core.util.InvalidDurationException: Must have integer preceding duration type

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • # Go to Find Issues # scroll down to "Due Date" # enter "-1 m" in the "From" field # click "View" In the logs, you'll get this error: {noformat} 2006-09-07 12:40:34,618 ERROR [issue.search.searchers.IssueSearcher] Could not get duration for: -1 m com.atlassian.core.util.InvalidDurationException: Must have integer preceding duration type at com.atlassian.core.util.DateUtils.getDurationSeconds(DateUtils.java:300) at com.atlassian.core.util.DateUtils.getDurationSeconds(DateUtils.java:279) at com.atlassian.core.util.DateUtils.getDuration(DateUtils.java:219) at com.atlassian.core.util.DateUtils.getDurationWithNegative(DateUtils.java:243) at com.atlassian.jira.issue.search.searchers.impl.GenericDateSearcher.getPeriodOffset(GenericDateSearcher.java:321) at com.atlassian.jira.issue.search.searchers.impl.GenericDateSearcher.populateFromParams(GenericDateSearcher.java:139) at com.atlassian.jira.web.action.issue.IssueNavigator.populateAndValidate(IssueNavigator.java:242) at com.atlassian.jira.web.action.issue.IssueNavigator.doExecute(IssueNavigator.java:120) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:57) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:185) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) .... {noformat} This is a *user* error, not a JIRA error. It should be shown to the *user only*, and not logged with log4j.
    via by Jeff Turner,
  • # Go to Find Issues # scroll down to "Due Date" # enter "-1 m" in the "From" field # click "View" In the logs, you'll get this error: {noformat} 2006-09-07 12:40:34,618 ERROR [issue.search.searchers.IssueSearcher] Could not get duration for: -1 m com.atlassian.core.util.InvalidDurationException: Must have integer preceding duration type at com.atlassian.core.util.DateUtils.getDurationSeconds(DateUtils.java:300) at com.atlassian.core.util.DateUtils.getDurationSeconds(DateUtils.java:279) at com.atlassian.core.util.DateUtils.getDuration(DateUtils.java:219) at com.atlassian.core.util.DateUtils.getDurationWithNegative(DateUtils.java:243) at com.atlassian.jira.issue.search.searchers.impl.GenericDateSearcher.getPeriodOffset(GenericDateSearcher.java:321) at com.atlassian.jira.issue.search.searchers.impl.GenericDateSearcher.populateFromParams(GenericDateSearcher.java:139) at com.atlassian.jira.web.action.issue.IssueNavigator.populateAndValidate(IssueNavigator.java:242) at com.atlassian.jira.web.action.issue.IssueNavigator.doExecute(IssueNavigator.java:120) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:57) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:185) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) .... {noformat} This is a *user* error, not a JIRA error. It should be shown to the *user only*, and not logged with log4j.
    via by Jeff Turner,
    • com.atlassian.core.util.InvalidDurationException: Must have integer preceding duration type at com.atlassian.core.util.DateUtils.getDurationSeconds(DateUtils.java:300) at com.atlassian.core.util.DateUtils.getDurationSeconds(DateUtils.java:279) at com.atlassian.core.util.DateUtils.getDuration(DateUtils.java:219) at com.atlassian.core.util.DateUtils.getDurationWithNegative(DateUtils.java:243) at com.atlassian.jira.issue.search.searchers.impl.GenericDateSearcher.getPeriodOffset(GenericDateSearcher.java:321) at com.atlassian.jira.issue.search.searchers.impl.GenericDateSearcher.populateFromParams(GenericDateSearcher.java:139) at com.atlassian.jira.web.action.issue.IssueNavigator.populateAndValidate(IssueNavigator.java:242) at com.atlassian.jira.web.action.issue.IssueNavigator.doExecute(IssueNavigator.java:120) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:57) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:185) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    No Bugmate found.