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

Adding a .pdf file into Confluence fails with "There was a problem converting this attachment"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 7.0.3, 7.1.0
    • Macros - Other Macros
    • None

    Description

      Issue Summary

      Adding a .pdf file into Confluence fails with "There was a problem converting this attachment".

      Changing .PDF to .pdf didn't solve the issue.

      Steps to Reproduce

      1. Install Confluence 7.0.3
      2. Create a page
      3. Add a .pdf attachment to the page
      4. Use PDF Macro to display .pdf file
      5. Save page

      Expected Results

      PDF Macro is able to display PDF file

      Screenshot taken from Confluence 6.14.3

      Actual Results

      PDF Macro is unable to display PDF file with the following error

      There was a problem converting this attachment.
      

      The below exception is thrown in the atlassian-confluence.log file:

      019-11-21 21:13:32,001 ERROR [DefaultSlideCacheManager:thread-1] [com.benryan.conversion.AbstractSlideConversionTask] call problem while converting 20191114135304.pdf
       -- referer: http://localhost:8090/display/703/PDF | url: /plugins/servlet/pptslide | traceId: 2e6f75b18d7f2373 | userName: admin
      java.io.IOException: java.lang.NullPointerException
      	at com.benryan.conversion.PdfSlideConversionBatchTask.convertFile(PdfSlideConversionBatchTask.java:56)
      	at com.benryan.conversion.PdfSlideConversionBatchTask.convertFile(PdfSlideConversionBatchTask.java:23)
      	at com.benryan.conversion.AbstractSlideConversionTask.call(AbstractSlideConversionTask.java:40)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at com.benryan.conversion.SlidePageConversionData.<init>(SlidePageConversionData.java:23)
      	at com.benryan.conversion.PdfSlideConversionBatchTask.convertFile(PdfSlideConversionBatchTask.java:52)
      	... 6 more
      

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ppragasam@atlassian.com Puventhira Pragasam (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: