Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-31911

Unable to do Space/Page PDF Export with Large Dimension Image Attached in a Page

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Space/Page PDF Export fail when having large image attached in a page with this error:

      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
      

      The sample image is on the attachment.

            [CONFSERVER-31911] Unable to do Space/Page PDF Export with Large Dimension Image Attached in a Page

            6.6.11 is also affected. Can we have a fix if this issue in Confluence 6.6 Enterprise Release ?

            Do you mean 6.13.0 is an Enterprise Release ?

            Sébastien Lucchini added a comment - 6.6.11 is also affected. Can we have a fix if this issue in Confluence 6.6 Enterprise Release ? Do you mean 6.13.0 is an Enterprise Release ?

            Minh Tran added a comment - - edited

            A fix for this issue is available to Server and Data Center customers in Confluence 6.13.0
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Minh Tran added a comment - - edited A fix for this issue is available to Server and Data Center customers in Confluence 6.13.0 Upgrade now or check out the Release Notes to see what other issues are resolved.

            skorenets added a comment -

             6.7.2 is also affected

            skorenets added a comment -  6.7.2 is also affected

            Seeing what appears to be the same error in 6.6.2

            Dallas Morrow added a comment - Seeing what appears to be the same error in 6.6.2

              mbereznitsky Mark Bereznitsky
              prompas Patrice Rompas (Inactive)
              Affected customers:
              16 This affects my team
              Watchers:
              18 Start watching this issue

                Created:
                Updated:
                Resolved: