java.lang.ClassCastException: org.jfree.data.xy.XYSeriesCollection cannot be cast to org.jfree.data.xy.TableXYDataset

Pentaho BI Platform Tracking | Gutlez | 7 years ago
  1. 0

    If I select a data source with multiple series, and try to do a stacked XY chart, the chart does not come up, and in the debug window, the following appears: INFO 23-09 14:55:30,731 - Failed to configure chart 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) INFO 23-09 14:55:30,809 - Font-Storage: hits=1, misses=0 If the "Stacked" is changed to "False" the chart shows.

    Pentaho BI Platform Tracking | 7 years ago | Gutlez
    java.lang.ClassCastException: org.jfree.data.xy.XYSeriesCollection cannot be cast to org.jfree.data.xy.TableXYDataset
  2. 0

    If I select a data source with multiple series, and try to do a stacked XY chart, the chart does not come up, and in the debug window, the following appears: INFO 23-09 14:55:30,731 - Failed to configure chart 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) INFO 23-09 14:55:30,809 - Font-Storage: hits=1, misses=0 If the "Stacked" is changed to "False" the chart shows.

    Pentaho BI Platform Tracking | 7 years ago | Gutlez
    java.lang.ClassCastException: org.jfree.data.xy.XYSeriesCollection cannot be cast to org.jfree.data.xy.TableXYDataset
  3. 0

    Jfreechart with scroller

    Stack Overflow | 4 years ago | user977828
    java.lang.ClassCastException: org.jfree.data.xy.XYSeriesCollection cannot be cast to org.jfree.data.category.CategoryDataset
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Memcached Java客户端2.6.1发布 - 编程语言 - ITeye资讯

    iteye.com | 1 year ago
    java.lang.ClassCastException: cannot be cast to
  6. 0

    cannot be cast to javax.servlet.Filter | Oracle Community

    oracle.com | 8 months ago
    java.lang.ClassCastException: cannot be cast to javax.servlet.Filter

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. jfreechart
      XYPlot.<init>
      1. org.jfree.chart.renderer.xy.StackedXYBarRenderer.findRangeBounds(StackedXYBarRenderer.java:199)
      2. org.jfree.chart.plot.XYPlot.getDataRange(XYPlot.java:3904)
      3. org.jfree.chart.axis.NumberAxis.autoAdjustRange(NumberAxis.java:426)
      4. org.jfree.chart.axis.NumberAxis.configure(NumberAxis.java:409)
      5. org.jfree.chart.axis.Axis.setPlot(Axis.java:821)
      6. org.jfree.chart.plot.XYPlot.<init>(XYPlot.java:559)
      6 frames
    3. org.pentaho.plugin
      AbstractChartExpression.getValue
      1. org.pentaho.plugin.jfreereport.reportcharts.XYBarChartExpression.createStackedXYBarChart(XYBarChartExpression.java:281)
      2. org.pentaho.plugin.jfreereport.reportcharts.XYBarChartExpression.computeXYChart(XYBarChartExpression.java:145)
      3. org.pentaho.plugin.jfreereport.reportcharts.XYChartExpression.computeChart(XYChartExpression.java:645)
      4. org.pentaho.plugin.jfreereport.reportcharts.AbstractChartExpression.getValue(AbstractChartExpression.java:486)
      4 frames
    4. org.pentaho.reporting
      PreviewPane$PreviewUpdateHandler.propertyChange
      1. org.pentaho.reporting.engine.classic.core.function.sys.AttributeExpressionsEvaluator.evaluate(AttributeExpressionsEvaluator.java:283)
      2. org.pentaho.reporting.engine.classic.core.function.sys.AttributeExpressionsEvaluator.evaluateElement(AttributeExpressionsEvaluator.java:209)
      3. org.pentaho.reporting.engine.classic.core.function.sys.AttributeExpressionsEvaluator.processBand(AttributeExpressionsEvaluator.java:135)
      4. org.pentaho.reporting.engine.classic.core.function.sys.AttributeExpressionsEvaluator.processRootBand(AttributeExpressionsEvaluator.java:107)
      5. org.pentaho.reporting.engine.classic.core.function.AbstractElementFormatFunction.reportStarted(AbstractElementFormatFunction.java:188)
      6. org.pentaho.reporting.engine.classic.core.states.SubLayoutProcess.fireReportStartedEvent(SubLayoutProcess.java:334)
      7. org.pentaho.reporting.engine.classic.core.states.SubLayoutProcess.fireReportEvent(SubLayoutProcess.java:233)
      8. org.pentaho.reporting.engine.classic.core.states.process.ProcessState.fireReportEvent(ProcessState.java:957)
      9. org.pentaho.reporting.engine.classic.core.states.process.ReportHeaderHandler.advance(ReportHeaderHandler.java:47)
      10. org.pentaho.reporting.engine.classic.core.states.process.ProcessState.advance(ProcessState.java:774)
      11. org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processPage(AbstractReportProcessor.java:1000)
      12. org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PrintReportProcessor.processPage(PrintReportProcessor.java:289)
      13. org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:261)
      14. org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane.updateVisiblePage(PreviewPane.java:1705)
      15. org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane$PreviewUpdateHandler.propertyChange(PreviewPane.java:368)
      15 frames
    5. Java RT
      JComponent.firePropertyChange
      1. java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
      2. java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
      3. java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
      4. java.awt.Component.firePropertyChange(Unknown Source)
      5. javax.swing.JComponent.firePropertyChange(Unknown Source)
      5 frames
    6. org.pentaho.reporting
      PreviewPane$UpdatePaginatingPropertyHandler.run
      1. org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane.setPaginating(PreviewPane.java:1601)
      2. org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane$UpdatePaginatingPropertyHandler.run(PreviewPane.java:339)
      2 frames
    7. Java RT
      EventDispatchThread.run
      1. java.awt.event.InvocationEvent.dispatch(Unknown Source)
      2. java.awt.EventQueue.dispatchEvent(Unknown Source)
      3. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      4. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      5. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      6. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      7. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      8. java.awt.EventDispatchThread.run(Unknown Source)
      8 frames