com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150820-200815-0836-11/FLUT-200815-0836-12.pdf 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:73) 2015-08-20 08:37:00.735869500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:77) 2015-08-20 08:37:00.735870500 at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) 2015-08-20 08:37:00.735873500 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) 2015-08-20 08:37:00.735873500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask.runInternal(PdfExportLongRunningTask.java:57) 2015-08-20 08:37:00.735874500 at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:27) 2015-08-20 08:37:00.735875500 at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:58) 2015-08-20 08:37:00.735876500 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 2015-08-20 08:37:00.735876500 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 2015-08-20 08:37:00.735877500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2015-08-20 08:37:00.735882500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2015-08-20 08:37:00.735883500 at java.lang.Thread.run(Thread.java:745) 2015-08-20 08:37:00.735883500 Caused by: java.lang.NullPointerException 2015-08-20 08:37:00.735883500 at org.xhtmlrenderer.newtable.TableBox.calcPageClearance(TableBox.java:557) 2015-08-20 08:37:00.735884500 at org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:218)

Atlassian JIRA | Janice Alor [Atlassian] | 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

    {{<tr></tr>}} tag causes PDF Export to fail h3. Steps to Reproduce # Customize Exports to PDF by adding the following codes in Global PDF Layout {code} <table style="position:absolute;bottom: 0"> <tr> <td style="color:white; width: 220px;" class="contact"> Street </td> <td style="color:white;" class="contact"> Tel: +27 21 529 4750 </td> </tr> {code} # Export Space to PDF # Getting the following errors: !export.png|thumbnail! {noformat} 2015-08-20 08:37:00.735856500 com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150820-200815-0836-11/FLUT-200815-0836-12.pdf 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:73) 2015-08-20 08:37:00.735869500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:77) 2015-08-20 08:37:00.735870500 at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) 2015-08-20 08:37:00.735873500 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) 2015-08-20 08:37:00.735873500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask.runInternal(PdfExportLongRunningTask.java:57) 2015-08-20 08:37:00.735874500 at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:27) 2015-08-20 08:37:00.735875500 at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:58) 2015-08-20 08:37:00.735876500 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 2015-08-20 08:37:00.735876500 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 2015-08-20 08:37:00.735877500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2015-08-20 08:37:00.735882500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2015-08-20 08:37:00.735883500 at java.lang.Thread.run(Thread.java:745) 2015-08-20 08:37:00.735883500 Caused by: java.lang.NullPointerException 2015-08-20 08:37:00.735883500 at org.xhtmlrenderer.newtable.TableBox.calcPageClearance(TableBox.java:557) 2015-08-20 08:37:00.735884500 at org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:218) 2015-08-20 08:37:00.735887500 at org.xhtmlrenderer.layout.Layer.layoutAbsoluteChild(Layer.java:763) 2015-08-20 08:37:00.735887500 at org.xhtmlrenderer.layout.Layer.layoutAbsoluteChildren(Layer.java:716) 2015-08-20 08:37:00.735887500 at org.xhtmlrenderer.layout.Layer.finish(Layer.java:702) 2015-08-20 08:37:00.735888500 at org.xhtmlrenderer.layout.LayoutContext.popLayer(LayoutContext.java:231) 2015-08-20 08:37:00.735888500 at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:861) 2015-08-20 08:37:00.735889500 at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:749) 2015-08-20 08:37:00.735890500 at org.xhtmlrenderer.pdf.ITextRenderer.createLayoutContext(ITextRenderer.java:222) 2015-08-20 08:37:00.735890500 at org.xhtmlrenderer.pdf.ITextRenderer.layoutAndPaint(ITextRenderer.java:311) 2015-08-20 08:37:00.735891500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:89) 2015-08-20 08:37:00.735892500 ... 12 more {noformat} h5. Workaround Remove {{<td></td>}} html tags within the Global PDF Layout

    Atlassian JIRA | 2 years ago | Janice Alor [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150820-200815-0836-11/FLUT-200815-0836-12.pdf 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:73) 2015-08-20 08:37:00.735869500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:77) 2015-08-20 08:37:00.735870500 at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) 2015-08-20 08:37:00.735873500 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) 2015-08-20 08:37:00.735873500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask.runInternal(PdfExportLongRunningTask.java:57) 2015-08-20 08:37:00.735874500 at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:27) 2015-08-20 08:37:00.735875500 at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:58) 2015-08-20 08:37:00.735876500 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 2015-08-20 08:37:00.735876500 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 2015-08-20 08:37:00.735877500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2015-08-20 08:37:00.735882500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2015-08-20 08:37:00.735883500 at java.lang.Thread.run(Thread.java:745) 2015-08-20 08:37:00.735883500 Caused by: java.lang.NullPointerException 2015-08-20 08:37:00.735883500 at org.xhtmlrenderer.newtable.TableBox.calcPageClearance(TableBox.java:557) 2015-08-20 08:37:00.735884500 at org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:218)
  2. 0

    {{<tr></tr>}} tag causes PDF Export to fail h3. Steps to Reproduce # Customize Exports to PDF by adding the following codes in Global PDF Layout {code} <table style="position:absolute;bottom: 0"> <tr> <td style="color:white; width: 220px;" class="contact"> Street </td> <td style="color:white;" class="contact"> Tel: +27 21 529 4750 </td> </tr> {code} # Export Space to PDF # Getting the following errors: !export.png|thumbnail! {noformat} 2015-08-20 08:37:00.735856500 com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150820-200815-0836-11/FLUT-200815-0836-12.pdf 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:73) 2015-08-20 08:37:00.735869500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:77) 2015-08-20 08:37:00.735870500 at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) 2015-08-20 08:37:00.735873500 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) 2015-08-20 08:37:00.735873500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask.runInternal(PdfExportLongRunningTask.java:57) 2015-08-20 08:37:00.735874500 at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:27) 2015-08-20 08:37:00.735875500 at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:58) 2015-08-20 08:37:00.735876500 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 2015-08-20 08:37:00.735876500 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 2015-08-20 08:37:00.735877500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2015-08-20 08:37:00.735882500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2015-08-20 08:37:00.735883500 at java.lang.Thread.run(Thread.java:745) 2015-08-20 08:37:00.735883500 Caused by: java.lang.NullPointerException 2015-08-20 08:37:00.735883500 at org.xhtmlrenderer.newtable.TableBox.calcPageClearance(TableBox.java:557) 2015-08-20 08:37:00.735884500 at org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:218) 2015-08-20 08:37:00.735887500 at org.xhtmlrenderer.layout.Layer.layoutAbsoluteChild(Layer.java:763) 2015-08-20 08:37:00.735887500 at org.xhtmlrenderer.layout.Layer.layoutAbsoluteChildren(Layer.java:716) 2015-08-20 08:37:00.735887500 at org.xhtmlrenderer.layout.Layer.finish(Layer.java:702) 2015-08-20 08:37:00.735888500 at org.xhtmlrenderer.layout.LayoutContext.popLayer(LayoutContext.java:231) 2015-08-20 08:37:00.735888500 at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:861) 2015-08-20 08:37:00.735889500 at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:749) 2015-08-20 08:37:00.735890500 at org.xhtmlrenderer.pdf.ITextRenderer.createLayoutContext(ITextRenderer.java:222) 2015-08-20 08:37:00.735890500 at org.xhtmlrenderer.pdf.ITextRenderer.layoutAndPaint(ITextRenderer.java:311) 2015-08-20 08:37:00.735891500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:89) 2015-08-20 08:37:00.735892500 ... 12 more {noformat} h5. Workaround Remove {{<td></td>}} html tags within the Global PDF Layout

    Atlassian JIRA | 2 years ago | Janice Alor [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150820-200815-0836-11/FLUT-200815-0836-12.pdf 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:73) 2015-08-20 08:37:00.735869500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:77) 2015-08-20 08:37:00.735870500 at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) 2015-08-20 08:37:00.735873500 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) 2015-08-20 08:37:00.735873500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask.runInternal(PdfExportLongRunningTask.java:57) 2015-08-20 08:37:00.735874500 at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:27) 2015-08-20 08:37:00.735875500 at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:58) 2015-08-20 08:37:00.735876500 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 2015-08-20 08:37:00.735876500 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 2015-08-20 08:37:00.735877500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2015-08-20 08:37:00.735882500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2015-08-20 08:37:00.735883500 at java.lang.Thread.run(Thread.java:745) 2015-08-20 08:37:00.735883500 Caused by: java.lang.NullPointerException 2015-08-20 08:37:00.735883500 at org.xhtmlrenderer.newtable.TableBox.calcPageClearance(TableBox.java:557) 2015-08-20 08:37:00.735884500 at org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:218)

    Root Cause Analysis

    1. com.atlassian.confluence.importexport.ImportExportException

      Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150820-200815-0836-11/FLUT-200815-0836-12.pdf 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) 2015-08-20 08:37:00.735867500 at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:73) 2015-08-20 08:37:00.735869500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:77) 2015-08-20 08:37:00.735870500 at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) 2015-08-20 08:37:00.735873500 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) 2015-08-20 08:37:00.735873500 at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask.runInternal(PdfExportLongRunningTask.java:57) 2015-08-20 08:37:00.735874500 at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:27) 2015-08-20 08:37:00.735875500 at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:58) 2015-08-20 08:37:00.735876500 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 2015-08-20 08:37:00.735876500 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 2015-08-20 08:37:00.735877500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2015-08-20 08:37:00.735882500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2015-08-20 08:37:00.735883500 at java.lang.Thread.run(Thread.java:745) 2015-08-20 08:37:00.735883500 Caused by: java.lang.NullPointerException 2015-08-20 08:37:00.735883500 at org.xhtmlrenderer.newtable.TableBox.calcPageClearance(TableBox.java:557) 2015-08-20 08:37:00.735884500 at org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:218)

      at org.xhtmlrenderer.layout.Layer.layoutAbsoluteChild()
    2. Flying Saucer Core Renderer
      Layer.finish
      1. org.xhtmlrenderer.layout.Layer.layoutAbsoluteChild(Layer.java:763)
      2. org.xhtmlrenderer.layout.Layer.layoutAbsoluteChildren(Layer.java:716)
      3. org.xhtmlrenderer.layout.Layer.finish(Layer.java:702)
      3 frames