java.lang.RuntimeException: time too late

Atlassian JIRA | Jeff Turner | 1 decade ago
  1. 0

    JIRA does not impose an upper limit on date fields. As a result, an invalid date can be entered that breaks lucene: 2004-09-04 11:46:30,969 WARN [jira.issue.index.DefaultIndexManager] There was an exception whilst reindexing issue OPS-177java.lang.RuntimeException: time too late java.lang.RuntimeException: time too late at org.apache.lucene.document.DateField.timeToString(DateField.java:106) at org.apache.lucene.document.DateField.dateToString(DateField.java:92) at com.atlassian.jira.issue.index.AbstractDocument.indexDateField(AbstractDocument.java:96) at com.atlassian.jira.issue.index.IssueDocument.getDocument(IssueDocument.java:64) at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssueAndComments(DefaultIndexManager.java:183) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:109) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:71) at com.atlassian.jira.web.action.admin.IndexAdminImpl.doReindex(IndexAdminImpl.java:208) at com.atlassian.jira.web.action.admin.IndexAdminImpl.doActivate(IndexAdminImpl.java:159) at com.atlassian.jira.web.action.admin.IndexAdminImpl.doReindex(IndexAdminImpl.java:202) We can fix this by imposing the date length limit that Lucene imposes: // make date strings long enough to last a millenium private static int DATE_LEN = Long.toString(1000L*365*24*60*60*1000, Character.MAX_RADIX).length(); .... if (s.length() > DATE_LEN) throw new RuntimeException("time too late");

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.RuntimeException: time too late
  2. 0

    JIRA does not impose an upper limit on date fields. As a result, an invalid date can be entered that breaks lucene: 2004-09-04 11:46:30,969 WARN [jira.issue.index.DefaultIndexManager] There was an exception whilst reindexing issue OPS-177java.lang.RuntimeException: time too late java.lang.RuntimeException: time too late at org.apache.lucene.document.DateField.timeToString(DateField.java:106) at org.apache.lucene.document.DateField.dateToString(DateField.java:92) at com.atlassian.jira.issue.index.AbstractDocument.indexDateField(AbstractDocument.java:96) at com.atlassian.jira.issue.index.IssueDocument.getDocument(IssueDocument.java:64) at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssueAndComments(DefaultIndexManager.java:183) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:109) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:71) at com.atlassian.jira.web.action.admin.IndexAdminImpl.doReindex(IndexAdminImpl.java:208) at com.atlassian.jira.web.action.admin.IndexAdminImpl.doActivate(IndexAdminImpl.java:159) at com.atlassian.jira.web.action.admin.IndexAdminImpl.doReindex(IndexAdminImpl.java:202) We can fix this by imposing the date length limit that Lucene imposes: // make date strings long enough to last a millenium private static int DATE_LEN = Long.toString(1000L*365*24*60*60*1000, Character.MAX_RADIX).length(); .... if (s.length() > DATE_LEN) throw new RuntimeException("time too late");

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.RuntimeException: time too late
  3. 0
    SMS Emulator caused this error. abortBroadcast only works with broadcasts sent through Context.sendOrderedBroadcast.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Switch to Android Build Tools 23.0.3
  6. 0
    If the decompile process didn't work properly, try the Android APK Decompiler.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      time too late

      at org.apache.lucene.document.DateField.timeToString()
    2. Lucene
      DateField.dateToString
      1. org.apache.lucene.document.DateField.timeToString(DateField.java:106)
      2. org.apache.lucene.document.DateField.dateToString(DateField.java:92)
      2 frames
    3. com.atlassian.jira
      IndexAdminImpl.doReindex
      1. com.atlassian.jira.issue.index.AbstractDocument.indexDateField(AbstractDocument.java:96)
      2. com.atlassian.jira.issue.index.IssueDocument.getDocument(IssueDocument.java:64)
      3. com.atlassian.jira.issue.index.DefaultIndexManager.indexIssueAndComments(DefaultIndexManager.java:183)
      4. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:109)
      5. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:71)
      6. com.atlassian.jira.web.action.admin.IndexAdminImpl.doReindex(IndexAdminImpl.java:208)
      7. com.atlassian.jira.web.action.admin.IndexAdminImpl.doActivate(IndexAdminImpl.java:159)
      8. com.atlassian.jira.web.action.admin.IndexAdminImpl.doReindex(IndexAdminImpl.java:202)
      8 frames