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

Jason Michaud
Contributor
October 28, 2019

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

 

9 answers

1 accepted

0 votes
Answer accepted
Daniel Ponzio
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 16, 2019

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.

1 vote
Mark Hitt January 25, 2024

For me, option 2 found here resolved the issue in Confluence 8.5.3

CONFSERVER-91712 

  1. Shut down Confluence
  2. Include the below system property:
    -Ddocument.conversion.sandbox.disable=true
0 votes
Marko Isola September 3, 2024

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 .

 

0 votes
Rolf Lader January 23, 2020

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

Andrey Kabakov March 20, 2020

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.

Rolf Eckardt August 11, 2020

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

0 votes
Rolf Lader January 23, 2020

Unfortunately we have the same problem with confluence 7.1.1.

0 votes
F_Z_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2020

Same problem here since upgrade to confluence 7.1.1 and 7.1.2

0 votes
Rene Schröder
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 1, 2019

same problem since few weeks, with confluence 7.1.0

0 votes
Stephan_Schoen November 21, 2019

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.

0 votes
Chris Murray
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 4, 2019

I am having the same issue. Happened after a recent security driven update.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events