Confluence - Preview of PDF file attachment "There was a problem converting this attachment"
Asked by Jason Michaud:

Confluence - Preview of PDF file attachment "There was a problem converting this attachment"

Anyone know what would cause this. I am able to download it - it just will not appear via the PDF macro.

We are on the very latest version of Conflunece.

![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/70885iECBA6733CF8D2D27/image-size/large?v=v2&px=999 "Capture.JPG")


Answers:
author: Daniel Ponzio
body: Hey y'all! I expect we're running into this Confluence bug: <https://jira.atlassian.com/browse/CONFSERVER-59038>.

This bug affects versions of Confluence 7, prior to 7.2.0 and 7.1.1. To fix this, you can upgrade Confluence to 7.1.1 or 7.2.0. Or to workaround the issue, you can make use of the file previewer macro (Go to **Insert** \> **Files** on the editor toolbar and select your file).

If this information does not make sense or you're on a fixed version and are still seeing the issue, please reach out to our support teams.


author: Mark Hitt
body: For me, option 2 found here resolved the issue in Confluence 8.5.3

[CONFSERVER-91712](https://jira.atlassian.com/browse/CONFSERVER-91712)

1. Shut down Confluence
2. Include the below [system property](https://confluence.atlassian.com/doc/configuring-system-properties-168002854.html#ConfiguringSystemProperties-SettingpropertiesforWindowsservicesviacommandline):  

   ```
   -Ddocument.conversion.sandbox.disable=true
   ```


author: Marko Isola
body: We have 8.5.12 version in use and after updating Operating System packages, including java-11-openjdk the same preview problem started to happen.

From logs I found

-- url: /plugins/servlet/pptslide \| userName: argan \| referer: https://\<hostname\>/display/\<spacekey\>/\<page\>?src=contextnavpagetreemode \| traceId: dc10d88b6a46ee8e  
com.atlassian.confluence.util.sandbox.SandboxException: /usr/lib/jvm/java-11-openjdk-**11.0.23.0.9-3.el8.x86_64**/bin/java is not an executable

That is from previous java package and doesn't exist anymore. Current Java version on host is **11.0.24.0.8-3.el8.x86_64**.

Quick workaround was to create a symlink to path it tried to use java from. Not good solution but works until root cause if found.

```
cd /usr/lib/jvm/java-11-openjdk-11.0.23.0.9-3.el8.x86_64/
mkdir bin
cd bin
ln -s ../../java-11-openjdk-11.0.24.0.8-3.el8.x86_64/bin/java .
```


author: Rolf Lader
body: With Confluence 7.3.0 this issue will be resolved. Please have a look at <https://jira.atlassian.com/browse/CONFSERVER-59323>

comments: author: Andrey Kabakov
body: We didn't have such issues with 7.1.1 but we've got it with 7.3.3. Any suggestions?

2020-03-20 13:32:11,904 ERROR \[DefaultSlideCacheManager:thread-1\] \[com.benryan.components.AbstractConversionCacheManager\] finish Error converting page, could not create slide  
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: com.atlassian.plugins.conversion.convert.image.AbstractConverter  
Caused by: java.lang.NoClassDesfFoundError: com.atlassian.plugins.conversion.convert.image.AbstractConverter

**Update:**

<https://community.atlassian.com/t5/Confluence-questions/Could-not-initialize-class-ImagingConverter/qaq-p/1313687>

Solution for this issue.


author: Rolf Eckardt
body: We are on 7.4.1 and usually this macro is working. Now I created a PDF with a Chrome add-on (FireShot) of a report page in Jira Upraise in order to show it in Confluence and run in the error as described above

![Pdf.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106288i1A94045D0ABE2120/image-size/large?v=v2&px=999 "Pdf.JPG")


author: Rolf Lader
body: Unfortunately we have the same problem with confluence 7.1.1.


author: F_Z_
body: Same problem here since upgrade to confluence 7.1.1 and 7.1.2


author: Rene Schr?der
body: same problem since few weeks, with confluence 7.1.0


author: Stephan_Schoen
body: Same problem here. Has been a confluence expert at our company trying to solve it but did not succeed. Advice was to copy the page, but it worked in the beginning but later when loading the pages the problem came back.


author: Chris Murray
body: I am having the same issue. Happened after a recent security driven update.


Tags: confluence-server

server