Description
When there's no index data, the exception below occurs. If for some reason the data is in some other weird state, the gadget is blank and shows empty white space, no exceptions or errors can be seen. Reindexing fixes both these problems, but they're just not very nice errors.
com.sun.jersey.server.impl.application.WebApplicationImpl onException
SEVERE: Internal server error
java.lang.RuntimeException: no terms in field completedTimestamp - cannot determine sort type
at org.apache.lucene.search.ExtendedFieldCacheImpl$5.createValue(ExtendedFieldCacheImpl.java:122)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:72)
at org.apache.lucene.search.ExtendedFieldCacheImpl.getAuto(ExtendedFieldCacheImpl.java:110)
at org.apache.lucene.search.FieldSortedHitQueue.comparatorAuto(FieldSortedHitQueue.java:420)
at org.apache.lucene.search.FieldSortedHitQueue$1.createValue(FieldSortedHitQueue.java:185)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:72)
at org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:168)
at org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.java:56)
at org.apache.lucene.search.TopFieldDocCollector.<init>(TopFieldDocCollector.java:43)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:122)
at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:100)
at org.apache.lucene.search.Hits.<init>(Hits.java:77)
at org.apache.lucene.search.Searcher.search(Searcher.java:55)
at com.atlassian.bamboo.resultsummary.search.IndexedBuildResultsSearcherImpl$1.perform(IndexedBuildResultsSearcherImpl.java:74)
at com.atlassian.bonnie.LuceneConnection.withSearch(LuceneConnection.java:259)
at com.atlassian.bamboo.resultsummary.search.IndexedBuildResultsSearcherImpl.search(IndexedBuildResultsSearcherImpl.java:69)
at com.atlassian.bamboo.resultsummary.search.IndexedBuildResultsSearcherImpl.search(IndexedBuildResultsSearcherImpl.java:60)
at com.atlassian.bamboo.charts.DefaultChartManager.prepareResultList(DefaultChartManager.java:57)