java.lang.IllegalArgumentException: Year constructor: year (11950) outside valid range.

Atlassian JIRA | Janet Albion [Atlassian] | 5 years 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

    Steps to reproduce: # upgrade to JIRA 5.1 from a 4.x release, where x <= 3 # configure the Time Since Chart gadget to use Due Date in the "Date Field" # save the gadget. Gadget throws 'An internal server error occurred when requesting resource.' and not saved In JIRA logs: {noformat} 2012-07-31 16:35:32,648 http-8282-13 ERROR admin 995x407x9 1v5ehb0 127.0.0.1 /rest/gadget/1.0/timeSince/generate [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service java.lang.IllegalArgumentException: Year constructor: year (11950) outside valid range. at org.jfree.data.time.Year.<init>(Year.java:116) at org.jfree.data.time.Week.getYear(Week.java:235) at org.jfree.data.time.Week.compareTo(Week.java:497) at java.util.TreeMap.getEntry(TreeMap.java:328) at java.util.TreeMap.get(TreeMap.java:255) at com.atlassian.jira.charts.TimeSinceChart$GenericDateFieldIssuesHitCollector.incrementMap(TimeSinceChart.java:230) at com.atlassian.jira.charts.TimeSinceChart$GenericDateFieldIssuesHitCollector.collect(TimeSinceChart.java:225) at com.atlassian.jira.issue.statistics.util.DocumentHitCollector.collect(DocumentHitCollector.java:34) at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:575) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:535) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:323) at com.atlassian.jira.index.DelegateSearcher.search(DelegateSearcher.java:160) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:245) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:104) at com.atlassian.jira.charts.TimeSinceChart.generateChart(TimeSinceChart.java:99) at com.atlassian.jira.charts.DefaultChartFactory.generateTimeSinceChart(DefaultChartFactory.java:133) at sun.reflect.GeneratedMethodAccessor354.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) {noformat} Root cause of the problem is Due Date value in the indexes is in the old format. Refer to screenshot DueDate.png The other date field like created and updated is correct. Refer to screenshot DateFormat.png

    Atlassian JIRA | 5 years ago | Janet Albion [Atlassian]
    java.lang.IllegalArgumentException: Year constructor: year (11950) outside valid range.
  2. 0

    Steps to reproduce: # upgrade to JIRA 5.1 from a 4.x release, where x <= 3 # configure the Time Since Chart gadget to use Due Date in the "Date Field" # save the gadget. Gadget throws 'An internal server error occurred when requesting resource.' and not saved In JIRA logs: {noformat} 2012-07-31 16:35:32,648 http-8282-13 ERROR admin 995x407x9 1v5ehb0 127.0.0.1 /rest/gadget/1.0/timeSince/generate [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service java.lang.IllegalArgumentException: Year constructor: year (11950) outside valid range. at org.jfree.data.time.Year.<init>(Year.java:116) at org.jfree.data.time.Week.getYear(Week.java:235) at org.jfree.data.time.Week.compareTo(Week.java:497) at java.util.TreeMap.getEntry(TreeMap.java:328) at java.util.TreeMap.get(TreeMap.java:255) at com.atlassian.jira.charts.TimeSinceChart$GenericDateFieldIssuesHitCollector.incrementMap(TimeSinceChart.java:230) at com.atlassian.jira.charts.TimeSinceChart$GenericDateFieldIssuesHitCollector.collect(TimeSinceChart.java:225) at com.atlassian.jira.issue.statistics.util.DocumentHitCollector.collect(DocumentHitCollector.java:34) at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:575) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:535) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:323) at com.atlassian.jira.index.DelegateSearcher.search(DelegateSearcher.java:160) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:245) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:104) at com.atlassian.jira.charts.TimeSinceChart.generateChart(TimeSinceChart.java:99) at com.atlassian.jira.charts.DefaultChartFactory.generateTimeSinceChart(DefaultChartFactory.java:133) at sun.reflect.GeneratedMethodAccessor354.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) {noformat} Root cause of the problem is Due Date value in the indexes is in the old format. Refer to screenshot DueDate.png The other date field like created and updated is correct. Refer to screenshot DateFormat.png

    Atlassian JIRA | 5 years ago | Janet Albion [Atlassian]
    java.lang.IllegalArgumentException: Year constructor: year (11950) outside valid range.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Year constructor: year (11950) outside valid range.

      at org.jfree.data.time.Year.<init>()
    2. jfreechart
      Week.compareTo
      1. org.jfree.data.time.Year.<init>(Year.java:116)
      2. org.jfree.data.time.Week.getYear(Week.java:235)
      3. org.jfree.data.time.Week.compareTo(Week.java:497)
      3 frames
    3. Java RT
      TreeMap.get
      1. java.util.TreeMap.getEntry(TreeMap.java:328)
      2. java.util.TreeMap.get(TreeMap.java:255)
      2 frames
    4. com.atlassian.jira
      DocumentHitCollector.collect
      1. com.atlassian.jira.charts.TimeSinceChart$GenericDateFieldIssuesHitCollector.incrementMap(TimeSinceChart.java:230)
      2. com.atlassian.jira.charts.TimeSinceChart$GenericDateFieldIssuesHitCollector.collect(TimeSinceChart.java:225)
      3. com.atlassian.jira.issue.statistics.util.DocumentHitCollector.collect(DocumentHitCollector.java:34)
      3 frames
    5. Lucene
      IndexSearcher.search
      1. org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:575)
      2. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:535)
      3. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:323)
      3 frames
    6. com.atlassian.jira
      DefaultChartFactory.generateTimeSinceChart
      1. com.atlassian.jira.index.DelegateSearcher.search(DelegateSearcher.java:160)
      2. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:245)
      3. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:104)
      4. com.atlassian.jira.charts.TimeSinceChart.generateChart(TimeSinceChart.java:99)
      5. com.atlassian.jira.charts.DefaultChartFactory.generateTimeSinceChart(DefaultChartFactory.java:133)
      5 frames
    7. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.GeneratedMethodAccessor354.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2 frames