java.lang.RuntimeException: The document is not open.

ZK-Tracker | henrichen | 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

    1. Open demo-sample.xlsx in zssapp 2. Press export to PDF 3. RuntimeException "The document is not open". java.lang.RuntimeException: The document is not open. at com.lowagie.text.pdf.PdfWriter.getDirectContent(Unknown Source) at org.zkoss.zss.model.impl.pdf.PdfExporter.printPage(PdfExporter.java:1139) at org.zkoss.zss.model.impl.pdf.PdfExporter.printSheet(PdfExporter.java:1068) at org.zkoss.zss.model.impl.pdf.PdfExporter.exportSheetSelection(PdfExporter.java:690) at org.zkoss.zss.model.impl.pdf.PdfExporter.exportSheet(PdfExporter.java:785) at org.zkoss.zss.model.impl.pdf.PdfExporter.export(PdfExporter.java:258) at org.zkoss.zss.api.impl.ExporterImpl.export(ExporterImpl.java:49) at org.zkoss.zss.app.repository.impl.BookUtil.saveBookToWorkingFolder(BookUtil.java:133) at org.zkoss.zss.app.ui.AppCtrl.doExportPdf(AppCtrl.java:349) at org.zkoss.zss.app.ui.AppCtrl.onAppEvent(AppCtrl.java:375) at org.zkoss.zss.app.ui.CtrlBase$1.onEvent(CtrlBase.java:64) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2752) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2723) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2664) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765) at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:603) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)

    ZK-Tracker | 2 years ago | henrichen
    java.lang.RuntimeException: The document is not open.
  2. 0

    1. Open demo-sample.xlsx in zssapp 2. Press export to PDF 3. RuntimeException "The document is not open". java.lang.RuntimeException: The document is not open. at com.lowagie.text.pdf.PdfWriter.getDirectContent(Unknown Source) at org.zkoss.zss.model.impl.pdf.PdfExporter.printPage(PdfExporter.java:1139) at org.zkoss.zss.model.impl.pdf.PdfExporter.printSheet(PdfExporter.java:1068) at org.zkoss.zss.model.impl.pdf.PdfExporter.exportSheetSelection(PdfExporter.java:690) at org.zkoss.zss.model.impl.pdf.PdfExporter.exportSheet(PdfExporter.java:785) at org.zkoss.zss.model.impl.pdf.PdfExporter.export(PdfExporter.java:258) at org.zkoss.zss.api.impl.ExporterImpl.export(ExporterImpl.java:49) at org.zkoss.zss.app.repository.impl.BookUtil.saveBookToWorkingFolder(BookUtil.java:133) at org.zkoss.zss.app.ui.AppCtrl.doExportPdf(AppCtrl.java:349) at org.zkoss.zss.app.ui.AppCtrl.onAppEvent(AppCtrl.java:375) at org.zkoss.zss.app.ui.CtrlBase$1.onEvent(CtrlBase.java:64) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2752) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2723) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2664) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765) at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:603) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)

    ZK-Tracker | 2 years ago | henrichen
    java.lang.RuntimeException: The document is not open.
  3. 0

    iText®, a JAVA PDF library / Mailing Lists

    sourceforge.net | 1 year ago
    java.lang.RuntimeException: The document is not open.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      The document is not open.

      at com.lowagie.text.pdf.PdfWriter.getDirectContent()
    2. iText-4.2.1
      PdfWriter.getDirectContent
      1. com.lowagie.text.pdf.PdfWriter.getDirectContent(Unknown Source)
      1 frame
    3. org.zkoss.zss
      CtrlBase$1.onEvent
      1. org.zkoss.zss.model.impl.pdf.PdfExporter.printPage(PdfExporter.java:1139)
      2. org.zkoss.zss.model.impl.pdf.PdfExporter.printSheet(PdfExporter.java:1068)
      3. org.zkoss.zss.model.impl.pdf.PdfExporter.exportSheetSelection(PdfExporter.java:690)
      4. org.zkoss.zss.model.impl.pdf.PdfExporter.exportSheet(PdfExporter.java:785)
      5. org.zkoss.zss.model.impl.pdf.PdfExporter.export(PdfExporter.java:258)
      6. org.zkoss.zss.api.impl.ExporterImpl.export(ExporterImpl.java:49)
      7. org.zkoss.zss.app.repository.impl.BookUtil.saveBookToWorkingFolder(BookUtil.java:133)
      8. org.zkoss.zss.app.ui.AppCtrl.doExportPdf(AppCtrl.java:349)
      9. org.zkoss.zss.app.ui.AppCtrl.onAppEvent(AppCtrl.java:375)
      10. org.zkoss.zss.app.ui.CtrlBase$1.onEvent(CtrlBase.java:64)
      10 frames
    4. ZK Kernel
      DHtmlUpdateServlet.doPost
      1. org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2752)
      2. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2723)
      3. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2664)
      4. org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
      5. org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765)
      6. org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550)
      7. org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260)
      8. org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:603)
      9. org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485)
      10. org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494)
      10 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    6. Jetty Server
      ServletHolder.handle
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      1 frame