java.lang.ClassCastException

org.jfree.data.xy.XYSeriesCollection cannot be cast to org.jfree.data.xy.TableXYDataset

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via Unknown by Gutlez,
  • via Unknown by Gutlez,
  • Stack trace

    • java.lang.ClassCastException: org.jfree.data.xy.XYSeriesCollection cannot be cast to org.jfree.data.xy.TableXYDataset at org.jfree.chart.renderer.xy.StackedXYBarRenderer.findRangeBounds(StackedXYBarRenderer.java:199) at org.jfree.chart.plot.XYPlot.getDataRange(XYPlot.java:3904) at org.jfree.chart.axis.NumberAxis.autoAdjustRange(NumberAxis.java:426) at org.jfree.chart.axis.NumberAxis.configure(NumberAxis.java:409) at org.jfree.chart.axis.Axis.setPlot(Axis.java:821) at org.jfree.chart.plot.XYPlot.<init>(XYPlot.java:559) at org.pentaho.plugin.jfreereport.reportcharts.XYBarChartExpression.createStackedXYBarChart(XYBarChartExpression.java:281) at org.pentaho.plugin.jfreereport.reportcharts.XYBarChartExpression.computeXYChart(XYBarChartExpression.java:145) at org.pentaho.plugin.jfreereport.reportcharts.XYChartExpression.computeChart(XYChartExpression.java:645) at org.pentaho.plugin.jfreereport.reportcharts.AbstractChartExpression.getValue(AbstractChartExpression.java:486) at org.pentaho.reporting.engine.classic.core.function.sys.AttributeExpressionsEvaluator.evaluate(AttributeExpressionsEvaluator.java:283) at org.pentaho.reporting.engine.classic.core.function.sys.AttributeExpressionsEvaluator.evaluateElement(AttributeExpressionsEvaluator.java:209) at org.pentaho.reporting.engine.classic.core.function.sys.AttributeExpressionsEvaluator.processBand(AttributeExpressionsEvaluator.java:135) at org.pentaho.reporting.engine.classic.core.function.sys.AttributeExpressionsEvaluator.processRootBand(AttributeExpressionsEvaluator.java:107) at org.pentaho.reporting.engine.classic.core.function.AbstractElementFormatFunction.reportStarted(AbstractElementFormatFunction.java:188) at org.pentaho.reporting.engine.classic.core.states.SubLayoutProcess.fireReportStartedEvent(SubLayoutProcess.java:334) at org.pentaho.reporting.engine.classic.core.states.SubLayoutProcess.fireReportEvent(SubLayoutProcess.java:233) at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.fireReportEvent(ProcessState.java:957) at org.pentaho.reporting.engine.classic.core.states.process.ReportHeaderHandler.advance(ReportHeaderHandler.java:47) at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.advance(ProcessState.java:774) at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processPage(AbstractReportProcessor.java:1000) at org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PrintReportProcessor.processPage(PrintReportProcessor.java:289) at org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:261) at org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane.updateVisiblePage(PreviewPane.java:1705) at org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane$PreviewUpdateHandler.propertyChange(PreviewPane.java:368) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at java.awt.Component.firePropertyChange(Unknown Source) at javax.swing.JComponent.firePropertyChange(Unknown Source) at org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane.setPaginating(PreviewPane.java:1601) at org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane$UpdatePaginatingPropertyHandler.run(PreviewPane.java:339) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.