org.jfree.data.general.SeriesException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • ZAP GUI freezes on Active Scan
    via by Hugo Baes Jr.,
  • ZAP Active Scan - Exception
    via by NCoder,
  • 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)
    via by Will Gorman,
  • 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)
    via by Will Gorman,
    • 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. at org.jfree.data.time.TimeSeries.add(TimeSeries.java:519) at org.jfree.data.time.TimeSeries.add(TimeSeries.java:562) at org.jfree.data.time.TimeSeries.add(TimeSeries.java:548) at org.zaproxy.zap.extension.ascan.ScanProgressDialog.showProgress(Unknown Source) at org.zaproxy.zap.extension.ascan.ScanProgressDialog.access$500(Unknown Source) at org.zaproxy.zap.extension.ascan.ScanProgressDialog$5.actionPerformed(Unknown Source) at javax.swing.JComboBox.fireActionEvent(Unknown Source) at javax.swing.JComboBox.contentsChanged(Unknown Source) at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source) at javax.swing.DefaultComboBoxModel.setSelectedItem(Unknown Source) at javax.swing.DefaultComboBoxModel.addElement(Unknown Source) at javax.swing.JComboBox.addItem(Unknown Source) at org.zaproxy.zap.extension.ascan.ScanProgressDialog.setActiveScan(Unknown Source) at org.zaproxy.zap.extension.ascan.ActiveScanPanel.showScanProgressDialog(Unknown Source) at org.zaproxy.zap.extension.ascan.ActiveScanPanel.access$100(Unknown Source) at org.zaproxy.zap.extension.ascan.ActiveScanPanel$3.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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)
    No Bugmate found.