com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150925-250915-1458-137/IRISDOC-Clients-250915-1458-138.pdf

Atlassian JIRA | Paula Silveira [Atlassian] | 1 year ago
  1. 0

    h3. Summary Confluence pages without any character on the page cannot be exported to PDF. !Screen Shot 2015-09-25 at 9.56.45 AM.png|thumbnail! h3. Environment * Confluence Cloud h3. Steps to Reproduce # Create a Confluence page # Add a tittle, but no content # Save the page and then try exporting to PDF h3. Expected Results PDF file is generated h3. Actual Results {code}Cause com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150925-250915-1458-137/IRISDOC-Clients-250915-1458-138.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) Stack Trace:[hide] com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150925-250915-1458-137/IRISDOC-Clients-250915-1458-138.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:49) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:111) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:27) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168){code} !Screen Shot 2015-09-25 at 9.58.52 AM.png|thumbnail! h3.Workaround -

    Atlassian JIRA | 1 year ago | Paula Silveira [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150925-250915-1458-137/IRISDOC-Clients-250915-1458-138.pdf
  2. 0

    h3. Summary Confluence pages without any character on the page cannot be exported to PDF. !Screen Shot 2015-09-25 at 9.56.45 AM.png|thumbnail! h3. Environment * Confluence Cloud h3. Steps to Reproduce # Create a Confluence page # Add a tittle, but no content # Save the page and then try exporting to PDF h3. Expected Results PDF file is generated h3. Actual Results {code}Cause com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150925-250915-1458-137/IRISDOC-Clients-250915-1458-138.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) Stack Trace:[hide] com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150925-250915-1458-137/IRISDOC-Clients-250915-1458-138.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:49) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:111) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:27) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168){code} !Screen Shot 2015-09-25 at 9.58.52 AM.png|thumbnail! h3.Workaround -

    Atlassian JIRA | 1 year ago | Paula Silveira [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150925-250915-1458-137/IRISDOC-Clients-250915-1458-138.pdf
  3. 0

    [CONF-34275] Could Not Export to PDF with Space Details Macro - Atlassian JIRA

    atlassian.com | 1 year ago
    com.atlassian.confluence.importexport.ImportExportException: Exception rendering the PDF document C:\confluence\data-5.5.2\temp\pdfexport-20140715-150714-1626-19\PE-12189697-150714-1626-20.pdf
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When using the following CSS to hide page title: {code} div.pagetitle:first-child { visibility:hidden } {code} Attempt to create PDF export will produce a stack trace: {noformat} com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document C:\confluence\standalone\mysql\data-3.0.0_01\temp\pdfexport-20091201-145808-3\sand-1835016-145808-4.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:111) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:38) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:68) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:20) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55) {noformat} The *visibility:hidden* parameter cannot be used either. No stack trace, but the whole content will be invisible along with the page title. The work around is to make the text colour the same as the background colour (assuming your background colour is white): {code} div.pagetitle:first-child { color:white; } {code}

    Atlassian JIRA | 7 years ago | Roy Hartono [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document C:\confluence\standalone\mysql\data-3.0.0_01\temp\pdfexport-20091201-145808-3\sand-1835016-145808-4.pdf
  6. 0

    If the title of a page in Confluence contains the colon character then it fails when a user attempts to use "Export to PDF" on a page when Confluence is running on Windows as it attempts to use the invalid character in the generated PDF's file name. {panel:title=example character} : {panel} The result is a System Error page with the following... h3. Cause com.atlassian.confluence.importexport.ImportExportException: Failed to create a location and file for the PDF export. at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:53) caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io.WinNTFileSystem.canonicalize0(Native Method) h3. Stack Trace: com.atlassian.confluence.importexport.ImportExportException: Failed to create a location and file for the PDF export. at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:53) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:39) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:98) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:27) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) ...

    Atlassian JIRA | 3 years ago | Isaac Davidson
    com.atlassian.confluence.importexport.ImportExportException: Failed to create a location and file for the PDF export.

    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. com.atlassian.confluence.importexport.ImportExportException

      Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150925-250915-1458-137/IRISDOC-Clients-250915-1458-138.pdf

      at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf()
    2. com.atlassian.confluence
      ExportPageAsPdfAction.execute
      1. com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102)
      2. com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:49)
      3. com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:111)
      4. com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:27)
      4 frames