Why can't I add a series to an HTML5 Time Series Line Chart

0

I'm using the HTML5 Time Series Line chart and get an error message when running the report. The report simply shows charges against 4 account numbers for a period of time. The report works with just the dates and charges but fails when I add the account which is just a string. This same SQL works fine on the the Pro Line Chart. The settings for the series are below as well as the stack trace. Any help would be appreciated.

Error filling print... null
Setting up the file resolver...
java.lang.NullPointerException
    at net.sf.jasperreports.crosstabs.fill.calculation.BucketDefinition$Bucket.compareTo(BucketDefinition.java:378)
    at net.sf.jasperreports.crosstabs.fill.calculation.BucketingService$BucketListMap.collectVals(BucketingService.java:870)
    at net.sf.jasperreports.crosstabs.fill.calculation.BucketingService$BucketListMap.collectVals(BucketingService.java:900)
    at net.sf.jasperreports.crosstabs.fill.calculation.BucketingService.computeRowTotals(BucketingService.java:562)
    at net.sf.jasperreports.crosstabs.fill.calculation.BucketingService.computeTotals(BucketingService.java:510)
    at net.sf.jasperreports.crosstabs.fill.calculation.BucketingService.computeTotals(BucketingService.java:498)
    at net.sf.jasperreports.crosstabs.fill.calculation.BucketingService.processData(BucketingService.java:406)
    at net.sf.jasperreports.engine.analytics.dataset.MultiAxisDataService.createDataSource(MultiAxisDataService.java:383)
    at net.sf.jasperreports.engine.analytics.dataset.FillMultiAxisDataset.getDataSource(FillMultiAxisDataset.java:106)
    at net.sf.jasperreports.engine.analytics.dataset.FillMultiAxisData.getDataSource(FillMultiAxisData.java:53)
    at com.jaspersoft.jasperreports.highcharts.charts.ChartFillComponent.setPrintChartParameters(ChartFillComponent.java:231)
    at com.jaspersoft.jasperreports.highcharts.charts.ChartFillGenericElement.evaluateDelayedElement(ChartFillGenericElement.java:44)
    at net.sf.jasperreports.engine.fill.JRFillComponentElement.resolveElement(JRFillComponentElement.java:186)
    at net.sf.jasperreports.engine.fill.JRFillElement.performDelayedEvaluation(JRFillElement.java:968)
    at net.sf.jasperreports.engine.fill.JRFillComponentElement.resolveElement(JRFillComponentElement.java:180)
    at net.sf.jasperreports.engine.fill.ElementEvaluationAction.execute(JRBaseFiller.java:2423)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveBoundElements(JRBaseFiller.java:1609)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveReportBoundElements(JRBaseFiller.java:1636)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1077)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:319)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:158)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:932)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845)
    at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:61)
    at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:446)
    at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:276)
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:745)
    at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:891)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

 

ffaber's picture
28
Joined: Feb 5 2007 - 4:31am
Last seen: 3 weeks 2 days ago

1 Answer:

1

I changed the order from none to ascending and the error went away. Problem solved.

ffaber's picture
28
Joined: Feb 5 2007 - 4:31am
Last seen: 3 weeks 2 days ago
Feedback