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

Atlassian JIRA | Jeff Turner | 1 decade 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

    # 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.

    Atlassian JIRA | 1 decade ago | Jeff Turner
    com.atlassian.core.util.InvalidDurationException: Must have integer preceding duration type
  2. 0

    # 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.

    Atlassian JIRA | 1 decade ago | Jeff Turner
    com.atlassian.core.util.InvalidDurationException: Must have integer preceding duration type

    Root Cause Analysis

    1. com.atlassian.core.util.InvalidDurationException

      Must have integer preceding duration type

      at com.atlassian.core.util.DateUtils.getDurationSeconds()
    2. com.atlassian.core
      DateUtils.getDurationWithNegative
      1. com.atlassian.core.util.DateUtils.getDurationSeconds(DateUtils.java:300)
      2. com.atlassian.core.util.DateUtils.getDurationSeconds(DateUtils.java:279)
      3. com.atlassian.core.util.DateUtils.getDuration(DateUtils.java:219)
      4. com.atlassian.core.util.DateUtils.getDurationWithNegative(DateUtils.java:243)
      4 frames
    3. com.atlassian.jira
      IssueNavigator.doExecute
      1. com.atlassian.jira.issue.search.searchers.impl.GenericDateSearcher.getPeriodOffset(GenericDateSearcher.java:321)
      2. com.atlassian.jira.issue.search.searchers.impl.GenericDateSearcher.populateFromParams(GenericDateSearcher.java:139)
      3. com.atlassian.jira.web.action.issue.IssueNavigator.populateAndValidate(IssueNavigator.java:242)
      4. com.atlassian.jira.web.action.issue.IssueNavigator.doExecute(IssueNavigator.java:120)
      4 frames
    4. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:153)
      1 frame
    5. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:57)
      1 frame
    6. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132)
      1 frame
    7. com.atlassian.jira
      JiraServletDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:185)
      1 frame
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      1 frame
    9. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2 frames
    10. com.atlassian.jira
      AccessLogFilter.doFilter
      1. com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51)
      1 frame
    11. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2 frames