java.lang.IllegalArgumentException

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.

  • 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
    via by Janet Albion [Atlassian],
  • 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
    via by Janet Albion [Atlassian],
    • 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)
    No Bugmate found.