java.lang.Exception

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.

  • Open the attached report. I have stripped out all non relevant items. Open the subreport. Create a band in the report header. Save - you get the error : java.lang.Exception: Save Failed at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:200) at org.pentaho.reporting.designer.core.actions.report.SaveReportAction.saveReport(SaveReportAction.java:106) at org.pentaho.reporting.designer.core.actions.report.SaveReportAction.actionPerformed(SaveReportAction.java:68) 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.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) Caused by: java.lang.ClassCastException: org.pentaho.reporting.engine.classic.core.Element cannot be cast to org.pentaho.reporting.engine.classic.core.Band at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.BandElementWriteHandler.writeElement(BandElementWriteHandler.java:80) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:566) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportHeaderElementWriteHandler.writeElement(ReportHeaderElementWriteHandler.java:81) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeChildElement(ReportDefinitionWriteHandler.java:141) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeElement(ReportDefinitionWriteHandler.java:128) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.LayoutFileWriter.writeReport(LayoutFileWriter.java:86) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeSubReport(BundleWriter.java:188) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeSubReport(AbstractElementWriteHandler.java:626) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeRootSubReports(AbstractElementWriteHandler.java:595) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ItembandElementWriteHandler.writeElement(ItembandElementWriteHandler.java:83) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:566) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.DataGroupBodyElementWriteHandler.writeElement(DataGroupBodyElementWriteHandler.java:79) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:566) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.RelationalGroupElementWriteHandler.writeElement(RelationalGroupElementWriteHandler.java:93) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeChildElement(ReportDefinitionWriteHandler.java:141) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeElement(ReportDefinitionWriteHandler.java:129) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.LayoutFileWriter.writeReport(LayoutFileWriter.java:86) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:163) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:130) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReportToZipFile(BundleWriter.java:206) at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:194) ... 28 more
    via by gunter rombauts,
  • Open the attached report. I have stripped out all non relevant items. Open the subreport. Create a band in the report header. Save - you get the error : java.lang.Exception: Save Failed at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:200) at org.pentaho.reporting.designer.core.actions.report.SaveReportAction.saveReport(SaveReportAction.java:106) at org.pentaho.reporting.designer.core.actions.report.SaveReportAction.actionPerformed(SaveReportAction.java:68) 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.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) Caused by: java.lang.ClassCastException: org.pentaho.reporting.engine.classic.core.Element cannot be cast to org.pentaho.reporting.engine.classic.core.Band at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.BandElementWriteHandler.writeElement(BandElementWriteHandler.java:80) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:566) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportHeaderElementWriteHandler.writeElement(ReportHeaderElementWriteHandler.java:81) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeChildElement(ReportDefinitionWriteHandler.java:141) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeElement(ReportDefinitionWriteHandler.java:128) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.LayoutFileWriter.writeReport(LayoutFileWriter.java:86) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeSubReport(BundleWriter.java:188) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeSubReport(AbstractElementWriteHandler.java:626) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeRootSubReports(AbstractElementWriteHandler.java:595) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ItembandElementWriteHandler.writeElement(ItembandElementWriteHandler.java:83) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:566) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.DataGroupBodyElementWriteHandler.writeElement(DataGroupBodyElementWriteHandler.java:79) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:566) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.RelationalGroupElementWriteHandler.writeElement(RelationalGroupElementWriteHandler.java:93) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeChildElement(ReportDefinitionWriteHandler.java:141) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeElement(ReportDefinitionWriteHandler.java:129) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.LayoutFileWriter.writeReport(LayoutFileWriter.java:86) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:163) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:130) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReportToZipFile(BundleWriter.java:206) at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:194) ... 28 more
    via by gunter rombauts,
    • java.lang.Exception: Save Failed at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:200) at org.pentaho.reporting.designer.core.actions.report.SaveReportAction.saveReport(SaveReportAction.java:106) at org.pentaho.reporting.designer.core.actions.report.SaveReportAction.actionPerformed(SaveReportAction.java:68) 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.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) Caused by: java.lang.ClassCastException: org.pentaho.reporting.engine.classic.core.Element cannot be cast to org.pentaho.reporting.engine.classic.core.Band at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.BandElementWriteHandler.writeElement(BandElementWriteHandler.java:80) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:566) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportHeaderElementWriteHandler.writeElement(ReportHeaderElementWriteHandler.java:81) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeChildElement(ReportDefinitionWriteHandler.java:141) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeElement(ReportDefinitionWriteHandler.java:128) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.LayoutFileWriter.writeReport(LayoutFileWriter.java:86) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeSubReport(BundleWriter.java:188) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeSubReport(AbstractElementWriteHandler.java:626) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeRootSubReports(AbstractElementWriteHandler.java:595) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ItembandElementWriteHandler.writeElement(ItembandElementWriteHandler.java:83) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:566) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.DataGroupBodyElementWriteHandler.writeElement(DataGroupBodyElementWriteHandler.java:79) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:566) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.RelationalGroupElementWriteHandler.writeElement(RelationalGroupElementWriteHandler.java:93) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeChildElement(ReportDefinitionWriteHandler.java:141) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeElement(ReportDefinitionWriteHandler.java:129) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.LayoutFileWriter.writeReport(LayoutFileWriter.java:86) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:163) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:130) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReportToZipFile(BundleWriter.java:206) at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:194) ... 28 more
    No Bugmate found.