org.jfree.data.general.SeriesException: You are trying to add data where the time period class is org.jfree.data.time.Week, but the TimeSeries is expecting an instance of org.jfree.data.time.Day.

Pentaho BI Platform Tracking | Will Gorman | 7 years ago
  1. 0

    Attached is a simple example. I added a few days worth of data, and it works fine if the time series time-period-type is Day, but if its anything else I get the following stack exception: org.jfree.data.general.SeriesException: You are trying to add data where the time period class is org.jfree.data.time.Week, but the TimeSeries is expecting an instance of org.jfree.data.time.Day. at org.jfree.data.time.TimeSeries.add(TimeSeries.java:497) at org.jfree.data.time.TimeSeries.add(TimeSeries.java:473) at org.pentaho.plugin.jfreereport.reportcharts.collectors.TimeSeriesCollector.buildDataset(TimeSeriesCollector.java:188) at org.pentaho.plugin.jfreereport.reportcharts.collectors.AbstractCollectorFunction.itemsAdvanced(AbstractCollectorFunction.java:230) at org.pentaho.reporting.engine.classic.core.states.datarow.ExpressionDataRow.fireItemsAdvancedEvent(ExpressionDataRow.java:714) 18:11:34,312 ERROR [ExpressionDataRow] Failed to fire prepare event: org.jfree.data.general.SeriesException: You are trying to add data where the time period class is org.jfree.data.time.Week, but the TimeSeries is expecting an instance of org.jfree.data.time.Day. at org.pentaho.reporting.engine.classic.core.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:568) at org.pentaho.reporting.engine.classic.core.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:558) at org.pentaho.reporting.engine.classic.core.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:410) at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.fireReportEvent(ProcessState.java:962) at org.pentaho.reporting.engine.classic.core.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:59) at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.advance(ProcessState.java:780) at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processPrepareLevels(AbstractReportProcessor.java:345) at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:445) at org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PrintReportProcessor.getNumberOfPages(PrintReportProcessor.java:90) at org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane$RepaginationRunnable.run(PreviewPane.java:274) at org.pentaho.reporting.engine.classic.core.util.Worker.run(Worker.java:187)

    Pentaho BI Platform Tracking | 7 years ago | Will Gorman
    org.jfree.data.general.SeriesException: You are trying to add data where the time period class is org.jfree.data.time.Week, but the TimeSeries is expecting an instance of org.jfree.data.time.Day.
  2. 0

    Attached is a simple example. I added a few days worth of data, and it works fine if the time series time-period-type is Day, but if its anything else I get the following stack exception: org.jfree.data.general.SeriesException: You are trying to add data where the time period class is org.jfree.data.time.Week, but the TimeSeries is expecting an instance of org.jfree.data.time.Day. at org.jfree.data.time.TimeSeries.add(TimeSeries.java:497) at org.jfree.data.time.TimeSeries.add(TimeSeries.java:473) at org.pentaho.plugin.jfreereport.reportcharts.collectors.TimeSeriesCollector.buildDataset(TimeSeriesCollector.java:188) at org.pentaho.plugin.jfreereport.reportcharts.collectors.AbstractCollectorFunction.itemsAdvanced(AbstractCollectorFunction.java:230) at org.pentaho.reporting.engine.classic.core.states.datarow.ExpressionDataRow.fireItemsAdvancedEvent(ExpressionDataRow.java:714) 18:11:34,312 ERROR [ExpressionDataRow] Failed to fire prepare event: org.jfree.data.general.SeriesException: You are trying to add data where the time period class is org.jfree.data.time.Week, but the TimeSeries is expecting an instance of org.jfree.data.time.Day. at org.pentaho.reporting.engine.classic.core.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:568) at org.pentaho.reporting.engine.classic.core.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:558) at org.pentaho.reporting.engine.classic.core.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:410) at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.fireReportEvent(ProcessState.java:962) at org.pentaho.reporting.engine.classic.core.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:59) at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.advance(ProcessState.java:780) at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processPrepareLevels(AbstractReportProcessor.java:345) at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:445) at org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PrintReportProcessor.getNumberOfPages(PrintReportProcessor.java:90) at org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane$RepaginationRunnable.run(PreviewPane.java:274) at org.pentaho.reporting.engine.classic.core.util.Worker.run(Worker.java:187)

    Pentaho BI Platform Tracking | 7 years ago | Will Gorman
    org.jfree.data.general.SeriesException: You are trying to add data where the time period class is org.jfree.data.time.Week, but the TimeSeries is expecting an instance of org.jfree.data.time.Day.
  3. 0

    SeriesException - Duplicates are not permitted

    GitHub | 3 years ago | hguerrero
    org.jfree.data.general.SeriesException: You are attempting to add an observation for the time period Wed Dec 31 18:00:11 CST 1969 but the series already contains an observation for that time period. Duplicates are not permitted. Try using the addOrUpdate() method.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GUI freezes while opening Scan Progress dialogue

    GitHub | 6 months ago | thc202
    org.jfree.data.general.SeriesException: You are attempting to add an observation for the time period Wed Jun 08 12:34:56 WEST 2016 but the series already contains an observation for that time period. Duplicates are not permitted. Try using the addOrUpdate() method.
  6. 0

    ZAP GUI freezes on Active Scan

    Google Groups | 6 months ago | Hugo Baes Jr.
    org.jfree.data.general.SeriesException: You are attempting to add an observation for the time period Mon Jun 06 10:35:52 BRT 2016 but the series already contains an observation for that time period. Duplicates are not permitted. Try using the addOrUpdate() method.

    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. org.jfree.data.general.SeriesException

      You are trying to add data where the time period class is org.jfree.data.time.Week, but the TimeSeries is expecting an instance of org.jfree.data.time.Day.

      at org.jfree.data.time.TimeSeries.add()
    2. jfreechart
      TimeSeries.add
      1. org.jfree.data.time.TimeSeries.add(TimeSeries.java:497)
      2. org.jfree.data.time.TimeSeries.add(TimeSeries.java:473)
      2 frames
    3. org.pentaho.plugin
      AbstractCollectorFunction.itemsAdvanced
      1. org.pentaho.plugin.jfreereport.reportcharts.collectors.TimeSeriesCollector.buildDataset(TimeSeriesCollector.java:188)
      2. org.pentaho.plugin.jfreereport.reportcharts.collectors.AbstractCollectorFunction.itemsAdvanced(AbstractCollectorFunction.java:230)
      2 frames
    4. org.pentaho.reporting
      ExpressionDataRow.fireItemsAdvancedEvent
      1. org.pentaho.reporting.engine.classic.core.states.datarow.ExpressionDataRow.fireItemsAdvancedEvent(ExpressionDataRow.java:714)
      1 frame