java.io.IOException: Save Failed

Pentaho BI Platform Tracking | Zachary Zeus | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When creating a parameter in PRD, the create-parameter dialog does not effectively prevent the creation of parameters that have no name. The PRPT file format cannot allow parameters without name, as subsequent loading of such report files would evict such parameters, thus loosing user inputs. Parameter without names also cannot be used to parametrize reports, as the HTTP transport requires name-value pairs and empty names are not allowed in that context either. Fix: Make sure the parameter dialog prevents the creation of unnamed parameters. Original Exception: java.io.IOException: Save Failed at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:193) at org.pentaho.reporting.designer.core.actions.report.AbstractSaveReportAction.saveReport(AbstractSaveReportAction.java:83) at org.pentaho.reporting.designer.core.actions.report.AbstractSaveReportAction.actionPerformed(AbstractSaveReportAction.java:61) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289) at java.awt.Component.processMouseEvent(Component.java:6516) at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) at java.awt.Component.processEvent(Component.java:6281) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4872) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4698) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4698) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:740) at java.awt.EventQueue.access$300(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:699) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:713) at java.awt.EventQueue$4.run(EventQueue.java:711) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:710) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) Caused by: org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException: Cannot write a unnamed parameter entry. at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.DataDefinitionFileWriter.writePlainParameter(DataDefinitionFileWriter.java:210) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.DataDefinitionFileWriter.writeMasterReportParameters(DataDefinitionFileWriter.java:195) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.DataDefinitionFileWriter.writeParameterDefinitions(DataDefinitionFileWriter.java:181) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.DataDefinitionFileWriter.writeReport(DataDefinitionFileWriter.java:92) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:137) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:106) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReportToZipFile(BundleWriter.java:180) at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:187) ... 39 more

    Pentaho BI Platform Tracking | 2 years ago | Zachary Zeus
    java.io.IOException: Save Failed
  2. 0

    When creating a parameter in PRD, the create-parameter dialog does not effectively prevent the creation of parameters that have no name. The PRPT file format cannot allow parameters without name, as subsequent loading of such report files would evict such parameters, thus loosing user inputs. Parameter without names also cannot be used to parametrize reports, as the HTTP transport requires name-value pairs and empty names are not allowed in that context either. Fix: Make sure the parameter dialog prevents the creation of unnamed parameters. Original Exception: java.io.IOException: Save Failed at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:193) at org.pentaho.reporting.designer.core.actions.report.AbstractSaveReportAction.saveReport(AbstractSaveReportAction.java:83) at org.pentaho.reporting.designer.core.actions.report.AbstractSaveReportAction.actionPerformed(AbstractSaveReportAction.java:61) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289) at java.awt.Component.processMouseEvent(Component.java:6516) at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) at java.awt.Component.processEvent(Component.java:6281) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4872) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4698) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4698) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:740) at java.awt.EventQueue.access$300(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:699) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:713) at java.awt.EventQueue$4.run(EventQueue.java:711) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:710) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) Caused by: org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException: Cannot write a unnamed parameter entry. at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.DataDefinitionFileWriter.writePlainParameter(DataDefinitionFileWriter.java:210) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.DataDefinitionFileWriter.writeMasterReportParameters(DataDefinitionFileWriter.java:195) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.DataDefinitionFileWriter.writeParameterDefinitions(DataDefinitionFileWriter.java:181) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.DataDefinitionFileWriter.writeReport(DataDefinitionFileWriter.java:92) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:137) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:106) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReportToZipFile(BundleWriter.java:180) at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:187) ... 39 more

    Pentaho BI Platform Tracking | 2 years ago | Zachary Zeus
    java.io.IOException: Save Failed
  3. 0

    When selecting a table of contents in a new report when double click it shows the following error message: {noformat} java.lang.ClassCastException: org.pentaho.reporting.engine.classic.core.Element cannot be cast to org.pentaho.reporting.engine.classic.extensions.toc.TocElement at org.pentaho.reporting.designer.extensions.toc.TocReportElementInlineEditor.getElementCellEditorComponent(TocReportElementInlineEditor.java:48) at org.pentaho.reporting.designer.core.editor.report.AbstractRenderComponent.installEditor(AbstractRenderComponent.java:1402) at org.pentaho.reporting.designer.core.editor.report.AbstractRenderComponent$MouseEditorActionHandler.mouseClicked(AbstractRenderComponent.java:641) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269) at java.awt.Component.processMouseEvent(Component.java:6536) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6298) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) at java.awt.Container.dispatchEventImpl(Container.java:2280) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) {noformat} *Note*: The same error message happen in 7.0. See the attaches. *Note*: It was not possible to save the file with the report mentioned above (It may be related with the issue above) it shows the error message: {noformat} java.io.IOException: Save Failed at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:172) at org.pentaho.reporting.designer.core.actions.report.AbstractSaveReportAction.saveReport(AbstractSaveReportAction.java:81) at org.pentaho.reporting.designer.core.actions.report.AbstractSaveReportAction.actionPerformed(AbstractSaveReportAction.java:58) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877) at java.awt.Component.processMouseEvent(Component.java:6533) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6298) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) at java.awt.Container.dispatchEventImpl(Container.java:2280) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Caused by: java.lang.ClassCastException: org.pentaho.reporting.engine.classic.core.Element cannot be cast to org.pentaho.reporting.engine.classic.extensions.toc.TocElement at org.pentaho.reporting.engine.classic.extensions.toc.writer.TocElementWriteHandler.writeElement(TocElementWriteHandler.java:51) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:477) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.GenericElementWriteHandler.writeElement(GenericElementWriteHandler.java:67) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.StyleFileWriter.writeReport(StyleFileWriter.java:147) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:117) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:93) at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReportToZipFile(BundleWriter.java:152) at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:167) ... 40 more {noformat} *Note*: This error also happens with other formats for example Index.

    Pentaho BI Platform Tracking | 1 month ago | Sandra Pires
    java.io.IOException: Save Failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Save Failed

      at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport()
    2. org.pentaho.reporting
      AbstractSaveReportAction.actionPerformed
      1. org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:193)
      2. org.pentaho.reporting.designer.core.actions.report.AbstractSaveReportAction.saveReport(AbstractSaveReportAction.java:83)
      3. org.pentaho.reporting.designer.core.actions.report.AbstractSaveReportAction.actionPerformed(AbstractSaveReportAction.java:61)
      3 frames
    3. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      6. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
      7. java.awt.Component.processMouseEvent(Component.java:6516)
      8. javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      9. java.awt.Component.processEvent(Component.java:6281)
      10. java.awt.Container.processEvent(Container.java:2229)
      11. java.awt.Component.dispatchEventImpl(Component.java:4872)
      12. java.awt.Container.dispatchEventImpl(Container.java:2287)
      13. java.awt.Component.dispatchEvent(Component.java:4698)
      14. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
      15. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
      16. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
      17. java.awt.Container.dispatchEventImpl(Container.java:2273)
      18. java.awt.Window.dispatchEventImpl(Window.java:2719)
      19. java.awt.Component.dispatchEvent(Component.java:4698)
      20. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:740)
      21. java.awt.EventQueue.access$300(EventQueue.java:103)
      22. java.awt.EventQueue$3.run(EventQueue.java:699)
      23. java.awt.EventQueue$3.run(EventQueue.java:697)
      24. java.security.AccessController.doPrivileged(Native Method)
      25. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      26. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      27. java.awt.EventQueue$4.run(EventQueue.java:713)
      28. java.awt.EventQueue$4.run(EventQueue.java:711)
      29. java.security.AccessController.doPrivileged(Native Method)
      30. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      31. java.awt.EventQueue.dispatchEvent(EventQueue.java:710)
      32. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      33. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      34. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      35. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      36. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      37. java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
      37 frames