New Chart report data retrieval issue

0

I have created a new report with only a chart on it (and a title). The SQL query I put in work and returns a simple data set:

 disaster_name             assigned_count     active_count    
 ------------------------  -----------------  ---------------
 West, City of, Explosion  1                  1               
 The Next Big Boom         2                  2             

I want to render this as a stacked bar chart. I'm trying to follow the tutorial but I get this when I do a preview.

Why? What does this mean?

net.sf.jasperreports.engine.JRException: java.lang.IllegalArgumentException: Null 'dataset' argument.
    at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:474)
    at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$14(ReportControler.java:449)
    at com.jaspersoft.studio.editor.preview.view.control.ReportControler$3.run(ReportControler.java:339)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.IllegalArgumentException: Null 'dataset' argument.
    at org.jfree.data.general.DatasetUtilities.findStackedRangeBounds(DatasetUtilities.java:1364)
    at org.jfree.data.general.DatasetUtilities.findStackedRangeBounds(DatasetUtilities.java:1349)
    at org.jfree.chart.renderer.category.StackedBarRenderer3D.findRangeBounds(StackedBarRenderer3D.java:223)
    at org.jfree.chart.plot.CategoryPlot.getDataRange(CategoryPlot.java:3897)
    at org.jfree.chart.axis.NumberAxis.autoAdjustRange(NumberAxis.java:428)
    at org.jfree.chart.axis.NumberAxis.configure(NumberAxis.java:411)
    at org.jfree.chart.axis.Axis.setPlot(Axis.java:964)
    at org.jfree.chart.plot.CategoryPlot.<init>(CategoryPlot.java:542)
    at org.jfree.chart.ChartFactory.createStackedBarChart3D(ChartFactory.java:1068)
    at net.sf.jasperreports.engine.fill.DefaultChartTheme.createStackedBar3DChart(DefaultChartTheme.java:1261)
    at net.sf.jasperreports.engine.fill.DefaultChartTheme.createChart(DefaultChartTheme.java:317)
    at net.sf.jasperreports.engine.fill.JRFillChart.evaluateChart(JRFillChart.java:843)
    at net.sf.jasperreports.engine.fill.JRFillChart.evaluateRenderer(JRFillChart.java:808)
    at net.sf.jasperreports.engine.fill.JRFillChart.resolveElement(JRFillChart.java:1384)
    at net.sf.jasperreports.engine.fill.JRFillElement.performDelayedEvaluation(JRFillElement.java:968)
    at net.sf.jasperreports.engine.fill.JRFillElement.resolveElement(JRFillElement.java:1070)
    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.BaseFillHandle$ReportFiller.run(BaseFillHandle.java:120)
    at java.lang.Thread.run(Thread.java:662)
 

arnie.morein's picture
Joined: Aug 7 2013 - 8:24am
Last seen: 7 years 9 months ago

0 Answers:

No answers yet
Feedback
randomness