Office macros (word, excel, powerpoint) fail to display, show broken links instead
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
The following appears in the atlassian-confluence.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
2015-03-02 22:25:15,471 WARN [http-bio-8090-exec-6] [com.benryan.conversion.FileBackedCache] get Failed to read file C:\Confluence-Home\viewfile\attachment-v1: com.benryan.conversion.HtmlConversionData; local class incompatible: stream classdesc serialVersionUID = -3789206518463332512, local class serialVersionUID = 8821999123545860133
-- referer: http://testinstance/pages/worddav/preview.action?fileName=TestFile.xlsx&pageId=41414141 | url: /plugins/servlet/benryanconversion | userName: raistlin
java.io.InvalidClassException: com.benryan.conversion.HtmlConversionData; local class incompatible: stream classdesc serialVersionUID = -3789206518463332512, local class serialVersionUID = 8821999123545860133
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at com.benryan.conversion.FileBackedCache.get(FileBackedCache.java:53)
at com.benryan.components.AbstractConversionCacheManager.getFromCache(AbstractConversionCacheManager.java:87)
at com.benryan.components.DefaultHtmlCacheManager.getHtmlConversionData(DefaultHtmlCacheManager.java:11)
at com.benryan.conversion.HtmlImageServlet.getHtmlConvertionData(HtmlImageServlet.java:79)
The office macro will appear with the following broken link graphic:

Cause
This is caused by a corruption in the Office Connector plugin's (which supplies the Office Word, Office Excel and Office Powerpoint macros) cache.
Resolution
Clear out the Office Connector's cache. To do so:
Shutdown Confluence
Ensure the user running Confluence has full read/write privileges to the confluence-home directory.
Remove the following directory:
<confluence-home>/viewfile
Start Confluence
Was this helpful?