Issue Details (XML | Word | Printable)

Key: JCHART-238
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Jonathan Nolen
Reporter: Brenden Bain
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JIRA Charting Plugin

NullPointerException thrown when trying to look at "Average Time In Status" graph.

Created: 09/Sep/08 01:28 AM   Updated: 09/Sep/08 01:49 AM
Component/s: Chart Types
Affects Version/s: 1.3.13, 1.4
Fix Version/s: None
Security Level: public (Anyone can view the issue)

Time Tracking:
Not Specified

Environment: JIRA 3.13

Database: PostgreSQL
Labels:


 Description  « Hide
When I try and view the portlet I get the error message "There were no matching issues found. Please make sure that you have selected a valid project or filter and that you have correctly configured the required custom fields." The custom field is configured and the filter returns results. There is a related error in the log:
2008-09-09 16:16:47,322 http-8090-Processor4 ERROR [charting.charts.timeinstatus.AverageTimeInStatusChart] Could not create velocity parameters null
java.lang.NullPointerException
	at com.atlassian.jira.ext.charting.field.TimeInStatusDAO.getValueFromStatusCustomField(TimeInStatusDAO.java:161)
	at com.atlassian.jira.ext.charting.field.TimeInStatusDAO.getSecondsInStatus(TimeInStatusDAO.java:138)
	at com.atlassian.jira.ext.charting.data.AverageTimeInStatusHitCollector.getSecondsInStatus(AverageTimeInStatusHitCollector.java:80)
	at com.atlassian.jira.ext.charting.data.AverageTimeInStatusHitCollector.collect(AverageTimeInStatusHitCollector.java:63)
	at com.atlassian.jira.issue.statistics.util.DocumentHitCollector.collect(DocumentHitCollector.java:23)
	at org.apache.lucene.search.IndexSearcher$1.collect(IndexSearcher.java:137)
	at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:328)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:146)
	at org.apache.lucene.search.Searcher.search(Searcher.java:118)
	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:148)
	at com.atlassian.jira.ext.charting.data.DataCollector.getAverageInStatusMap(DataCollector.java:946)
	at com.atlassian.jira.ext.charting.data.DataCollector.populateAverageInStatus(DataCollector.java:886)
	at com.atlassian.jira.ext.charting.data.DataCollector.populateAverageInStatus(DataCollector.java:863)
	at com.atlassian.jira.ext.charting.data.DataCollector.populateAverageTimeInStatus(DataCollector.java:836)
	at com.atlassian.jira.ext.charting.charts.timeinstatus.AverageTimeInStatusChart.getVelocityParams(AverageTimeInStatusChart.java:44)
	at com.atlassian.jira.portal.PortletImpl.getViewHtml(PortletImpl.java:117)


 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.