com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'Export PDF later' to the PDF document C:\Program Files\Atlassian\Application Data\Confluence_5.1.3\temp\pdfexport-20131209-091213-2114-23\TEST-091213-2114-24.pdf

Atlassian JIRA | Samuel Patrice Rompas [Atlassian] | 3 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

    Space/Page PDF Export fail when having large image attached in a page with this error: {code} 2013-12-09 21:14:17,650 ERROR [Long running task: PDF Space Export] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during PDF export -- url: /spaces/flyingpdf/doflyingpdf.action | userName: admin | referer: http://localhost:8022/spaces/flyingpdf/flyingpdf.action?key=TEST | action: doflyingpdf com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'Export PDF later' to the PDF document C:\Program Files\Atlassian\Application Data\Confluence_5.1.3\temp\pdfexport-20131209-091213-2114-23\TEST-091213-2114-24.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:111) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:60) at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:72) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask.runInternal(PdfExportLongRunningTask.java:52) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:26) at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:35) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: Failed to read image at com.atlassian.confluence.extra.flyingpdf.LightITextFSImage.getImage(LightITextFSImage.java:128) at org.xhtmlrenderer.pdf.ITextOutputDevice.drawImage(ITextOutputDevice.java:768) at org.xhtmlrenderer.pdf.ITextImageElement.paint(ITextImageElement.java:72) at org.xhtmlrenderer.pdf.ITextOutputDevice.paintReplacedElement(ITextOutputDevice.java:183) at org.xhtmlrenderer.layout.Layer.paintReplacedElement(Layer.java:554) at org.xhtmlrenderer.layout.Layer.paintReplacedElements(Layer.java:511) at org.xhtmlrenderer.layout.Layer.paintAsLayer(Layer.java:485) at org.xhtmlrenderer.render.BlockBox.paintInline(BlockBox.java:265) at org.xhtmlrenderer.layout.Layer.paintInlineContent(Layer.java:274) at org.xhtmlrenderer.layout.Layer.paint(Layer.java:346) at org.xhtmlrenderer.pdf.ITextRenderer.paintPage(ITextRenderer.java:384) at org.xhtmlrenderer.pdf.ITextRenderer.writePDF(ITextRenderer.java:348) at org.xhtmlrenderer.pdf.ITextRenderer.createPDF(ITextRenderer.java:315) at org.xhtmlrenderer.pdf.ITextRenderer.createPDF(ITextRenderer.java:246) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:94) ... 13 more Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at com.lowagie.text.Jpeg.processParameters(Unknown Source) at com.lowagie.text.Jpeg.<init>(Unknown Source) at com.lowagie.text.Image.getInstance(Unknown Source) at com.atlassian.confluence.extra.flyingpdf.LightITextFSImage.getImage(LightITextFSImage.java:122) ... 27 more {code} The sample image is on the attachment.

    Atlassian JIRA | 3 years ago | Samuel Patrice Rompas [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'Export PDF later' to the PDF document C:\Program Files\Atlassian\Application Data\Confluence_5.1.3\temp\pdfexport-20131209-091213-2114-23\TEST-091213-2114-24.pdf
  2. 0

    Space/Page PDF Export fail when having large image attached in a page with this error: {code} 2013-12-09 21:14:17,650 ERROR [Long running task: PDF Space Export] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during PDF export -- url: /spaces/flyingpdf/doflyingpdf.action | userName: admin | referer: http://localhost:8022/spaces/flyingpdf/flyingpdf.action?key=TEST | action: doflyingpdf com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'Export PDF later' to the PDF document C:\Program Files\Atlassian\Application Data\Confluence_5.1.3\temp\pdfexport-20131209-091213-2114-23\TEST-091213-2114-24.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:111) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:60) at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:72) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask.runInternal(PdfExportLongRunningTask.java:52) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:26) at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:35) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: Failed to read image at com.atlassian.confluence.extra.flyingpdf.LightITextFSImage.getImage(LightITextFSImage.java:128) at org.xhtmlrenderer.pdf.ITextOutputDevice.drawImage(ITextOutputDevice.java:768) at org.xhtmlrenderer.pdf.ITextImageElement.paint(ITextImageElement.java:72) at org.xhtmlrenderer.pdf.ITextOutputDevice.paintReplacedElement(ITextOutputDevice.java:183) at org.xhtmlrenderer.layout.Layer.paintReplacedElement(Layer.java:554) at org.xhtmlrenderer.layout.Layer.paintReplacedElements(Layer.java:511) at org.xhtmlrenderer.layout.Layer.paintAsLayer(Layer.java:485) at org.xhtmlrenderer.render.BlockBox.paintInline(BlockBox.java:265) at org.xhtmlrenderer.layout.Layer.paintInlineContent(Layer.java:274) at org.xhtmlrenderer.layout.Layer.paint(Layer.java:346) at org.xhtmlrenderer.pdf.ITextRenderer.paintPage(ITextRenderer.java:384) at org.xhtmlrenderer.pdf.ITextRenderer.writePDF(ITextRenderer.java:348) at org.xhtmlrenderer.pdf.ITextRenderer.createPDF(ITextRenderer.java:315) at org.xhtmlrenderer.pdf.ITextRenderer.createPDF(ITextRenderer.java:246) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:94) ... 13 more Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at com.lowagie.text.Jpeg.processParameters(Unknown Source) at com.lowagie.text.Jpeg.<init>(Unknown Source) at com.lowagie.text.Image.getInstance(Unknown Source) at com.atlassian.confluence.extra.flyingpdf.LightITextFSImage.getImage(LightITextFSImage.java:122) ... 27 more {code} The sample image is on the attachment.

    Atlassian JIRA | 3 years ago | Samuel Patrice Rompas [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'Export PDF later' to the PDF document C:\Program Files\Atlassian\Application Data\Confluence_5.1.3\temp\pdfexport-20131209-091213-2114-23\TEST-091213-2114-24.pdf

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      -1

      at com.lowagie.text.Jpeg.processParameters()
    2. iText-4.2.1
      Image.getInstance
      1. com.lowagie.text.Jpeg.processParameters(Unknown Source)
      2. com.lowagie.text.Jpeg.<init>(Unknown Source)
      3. com.lowagie.text.Image.getInstance(Unknown Source)
      3 frames
    3. com.atlassian.confluence
      LightITextFSImage.getImage
      1. com.atlassian.confluence.extra.flyingpdf.LightITextFSImage.getImage(LightITextFSImage.java:122)
      1 frame
    4. FlyingSaucer XHTML Renderer
      ITextOutputDevice.paintReplacedElement
      1. org.xhtmlrenderer.pdf.ITextOutputDevice.drawImage(ITextOutputDevice.java:768)
      2. org.xhtmlrenderer.pdf.ITextImageElement.paint(ITextImageElement.java:72)
      3. org.xhtmlrenderer.pdf.ITextOutputDevice.paintReplacedElement(ITextOutputDevice.java:183)
      3 frames
    5. Flying Saucer Core Renderer
      Layer.paint
      1. org.xhtmlrenderer.layout.Layer.paintReplacedElement(Layer.java:554)
      2. org.xhtmlrenderer.layout.Layer.paintReplacedElements(Layer.java:511)
      3. org.xhtmlrenderer.layout.Layer.paintAsLayer(Layer.java:485)
      4. org.xhtmlrenderer.render.BlockBox.paintInline(BlockBox.java:265)
      5. org.xhtmlrenderer.layout.Layer.paintInlineContent(Layer.java:274)
      6. org.xhtmlrenderer.layout.Layer.paint(Layer.java:346)
      6 frames
    6. FlyingSaucer XHTML Renderer
      ITextRenderer.createPDF
      1. org.xhtmlrenderer.pdf.ITextRenderer.paintPage(ITextRenderer.java:384)
      2. org.xhtmlrenderer.pdf.ITextRenderer.writePDF(ITextRenderer.java:348)
      3. org.xhtmlrenderer.pdf.ITextRenderer.createPDF(ITextRenderer.java:315)
      4. org.xhtmlrenderer.pdf.ITextRenderer.createPDF(ITextRenderer.java:246)
      4 frames
    7. com.atlassian.confluence
      PdfExportLongRunningTask$1.doInTransactionWithoutResult
      1. com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:94)
      2. com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:60)
      3. com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:72)
      3 frames
    8. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
      2. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
      2 frames
    9. com.atlassian.confluence
      ManagedTask.run
      1. com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask.runInternal(PdfExportLongRunningTask.java:52)
      2. com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:26)
      3. com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:35)
      3 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      3. java.util.concurrent.FutureTask.run(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      6. java.lang.Thread.run(Unknown Source)
      6 frames