Details
-
Bug
-
Resolution: Fixed
-
High
-
7.0.2, 7.0.3, 7.0.4, 7.1.0
-
None
-
16
-
Severity 2 - Major
-
119
-
Description
Issue Summary
When users insert PDF macro on a page, the macro does not show the content of the PDF. Instead, the following error is returned:
There was a problem converting this attachment
Steps to Reproduce
- Head over to a Confluence page.
- Add a PDF attachment to the page.
- In the Edit mode of the page, head over to the toolbar > Insert > Other Macros > PDF and Insert the macro to the page.
Expected Results
The PDF macro will display the PDF on the page.
Actual Results
An infinite spinning wheel will be displayed and the following error is returned:
There was a problem converting this attachment
The following stack trace appears in the logs:
Caused by: java.lang.NullPointerException at com.benryan.conversion.SlidePageConversionData.<init>(SlidePageConversionData.java:23)
If you are not affected by the error message above but seeing a similar symptom, see also: CONFSERVER-59334 - PDF macro doesn't load PDF content and returns an NPE on readTrailer15 method
Example:
2019-10-29 16:21:17,801 ERROR [DefaultSlideCacheManager:thread-1] [com.benryan.conversion.AbstractSlideConversionTask] call problem while converting sample.pdf -- referer: http://localhost:8090/display/ZZ/eddd | url: /plugins/servlet/pptslide | traceId: ef1f71c974478e3b | 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.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) 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
or
2019-10-29 16:21:17,801 ERROR [DefaultSlideCacheManager:thread-1] [com.benryan.conversion.AbstractSlideConversionTask] call problem while converting sample.pdf -- referer: http://localhost:8090/display/ZZ/eddd | url: /plugins/servlet/pptslide | traceId: ef1f71c974478e3b | 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.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) 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
Note
This issue is seen and tested on various PDF files. However, some PDF files are not hit with this issue. At the moment, it is not clear why this is the case.
Workaround
At the moment there is no workaround to the issue.
Attachments
Issue Links
- is duplicated by
-
CONFSERVER-59143 Adding a .pdf file into Confluence fails with "There was a problem converting this attachment"
- Closed
- is related to
-
CONFSERVER-20223 viewfile not able to view pdf document
- Closed
- relates to
-
CONFSERVER-59334 PDF macro doesn't load PDF content and returns an NPE on readTrailer15 method
- Closed