Unable to upload doc / pdf files
Asked by Shai:

Hi,

I am using Confluence server

when i am trying to upload doc / pdf file i am getting the following error:

![1.PNG](/t5/image/serverpage/image-id/53600i6FB1406FF1ED93D5/image-dimensions/456x303?v=v2 "1.PNG")

and in the Log file:

--------------------------  
Parameters  
--------------------------  
pageId : 6586369  
filename : myFile.docx  
size : 11821  
minorEdit : true  
spaceKey : NN  
mimeType : application/vnd.openxmlformats-officedocument.wordprocessingml.document  
atl_token : 21a1d0c5cb8d6a43c67a3946b53860d7c26e5080  
contentType : page  
isVFMSupported : true  
name : myFile.docx  
caused by: javax.servlet.ServletException: Servlet execution threw an exception  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:238)  
caused by: java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.plugins.conversion.convert.image.ImagingConverter  
at com.atlassian.confluence.plugins.conversion.impl.DefaultConversionManager.getConverters(DefaultConversionManager.java:156)

My attachment settings are:

![2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/53602iF27946B3C324C1DF/image-dimensions/758x153?v=v2 "2.PNG")


Answers:
author: Shannon S
body: Hello Shai,

Welcome to Community! It's nice to meet you. I have just a few questions for you in order to help understand the situation.

Please let me know which method exactly you're attaching the document to the page. See [Upload Files](https://confluence.atlassian.com/doc/upload-files-139513.html) for details on the various methods, and let me know which one you're using. If you can test the other methods, please let me know if the same occurs no matter which method.
> * In the editor you can:
> * Drag the file directly onto the page.
> * Go to **Insert** \> **Files and images** and upload a file.
> * When viewing a page you can:
> * Drag the file directly onto the page.
> * Go to ![](https://confluence.atlassian.com/doc/files/704577869/704577870/2/1517274795952/ellipsis.png) \> **Attachments** and upload a file.

1. Does this occur with all Word documents and PDF files, or only specific ones?
2. What version of Confluence server are you running?

Looking forward to hearing from you soon!

Regards,

Shannon

comments: author: Shai
body: Hi Shannon,

I am using drag and drop option, i noticed after the fail message the file succeeded to upload and appears in the attachments

![3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/54247i0AF69D64062360B4/image-dimensions/230x265?v=v2 "3.PNG")

but the page is remain empty

![4.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/54248i5D55737BBB4F5AFD/image-dimensions/867x362?v=v2 "4.PNG")

1. Its occurs with all doc / pdf files.

2. Confluence version 6.15.2

Thanks,

Shai


author: Shannon S
body: Shai,

Thank you for confirming that. Can you please try with Go to **Insert** \> **Files and images** and upload a file. Let me know if you have the same issue from this menu.

Regards,

Shannon


author: Shai
body: The file uploaded successfully, but can not be viewed.

The following error appear:

Error formatting macro: viewfile: java.lang.NoClassDefFoundError: com.atlassian.plugins.conversion.AsposeAware


author: Shannon S
body: Shai,

Thank you very much for sharing that error. I've done some research and found that later error might be related to the fonts installed on your server.

One example:

* [CONFSERVER-55321](https://jira.atlassian.com/browse/CONFSERVER-55321) *Adding attachments to Confluence pages fails and 'Error while generating placeholder. Is the server available?' message is displayed*

Can you have a look at that and see that you don't have any errors in your logs about missing fonts? If it does, it should let you know the name of the font that is missing. You will also want to make sure that the user you are running Confluence under on your server has permissions to access to the system fonts.

Looking forward to hearing the results!

Regards,

Shannon


author: Shai
body: Hi Shannon,

Thanks for your help, but i still didn't find how to fix this issue

Attached another log after failing upload file using drag and drop

There is no mention about fonts, do you have any other suggestion?

[LogFile](https://drive.google.com/open?id=1uFIkQ-qVfA2VnajRBRQ_a29p8lU52G92)

Thanks


author: Shannon S
body: Shai,

Thank you for your patience. I would like to see more of your log files, so I have created a support ticket for this case.

You can check your email now and you will see an email from Atlassian with your ticket number.

If you could kindly reply to that ticket with a copy of your [Support Zip](https://confluence.atlassian.com/support/create-a-support-zip-790796819.html) so we can have a deeper look.

Thank you for your help!

Regards,

Shannon


Tags: confluence-server

server