Unable to preview Office files on a Confluence page

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

Summary

Unable to preview the Office files added as an attachment on a Confluence page due to sandbox crashed error message.

Environment

Confluence Data Center 8.5.6.

Diagnosis

  • While previewing the Office files added as an attachment on the Confluence page, a Sandbox crashed error message is observed in the application logs(atlassian-confluence.log):

1 2 2024-03-11 10:26:01,785 ERROR [http-nio-8090-exec-2 url: /rest/office/1.0/view; user: *****] [com.benryan.rest.ConverterMacroResource] getContent Sandbox has crashed while serving the request -- url: /rest/office/1.0/view | userName: ***** | referer: https://CONFLUENCE_BASE_URL/display/Page_Title | traceId: f6adf8eb17c46715
  • With enhanced logging for the Sandbox, an error message similar to the one below can be observed in the application logs (atlassian-confluence.log) despite the locale settings (-Duser.language=en -Duser.country=US) added to the JVM parameters in the System properties

1 "com.aspose.slides.exceptions.ArgumentException: Culture Name: en-DK is not a supported culture"
  • Traces similar to the following can be found in the logs atlassian-confluence.log.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2024-03-12 07:56:38,045 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: Exception in thread \"main\" java.lang.ExceptionInInitializerError 2024-03-12 07:56:38,045 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: \tat com.aspose.slides.FontsLoader.do(Unknown Source) 2024-03-12 07:56:38,045 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: \tat com.aspose.slides.FontsLoader.loadExternalFonts(Unknown Source) 2024-03-12 07:56:38,046 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: \tat com.atlassian.plugins.conversion.AsposeUtils.configureFonts(AsposeUtils.java:142) 2024-03-12 07:56:38,046 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: \tat com.atlassian.plugins.conversion.AsposeAware.<clinit>(AsposeAware.java:13) 2024-03-12 07:56:38,046 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: \tat com.atlassian.plugins.conversion.sandbox.html.SandboxHtmlConversionTask.apply(SandboxHtmlConversionTask.java:30) 2024-03-12 07:56:38,046 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: \tat com.atlassian.plugins.conversion.sandbox.html.SandboxHtmlConversionTask.apply(SandboxHtmlConversionTask.java:19) 2024-03-12 07:56:38,046 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: \tat com.atlassian.confluence.impl.util.sandbox.SandboxServerWorker.processNextMessage(SandboxServerWorker.java:53) 2024-03-12 07:56:38,046 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: \tat com.atlassian.confluence.impl.util.sandbox.SandboxServer.run(SandboxServer.java:36) 2024-03-12 07:56:38,046 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: \tat com.atlassian.confluence.impl.util.sandbox.SandboxServer.main(SandboxServer.java:56) 2024-03-12 07:56:38,046 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: Caused by: class com.aspose.slides.exceptions.ArgumentException: Culture Name: en-DK is not a supported culture 2024-03-12 07:56:38,046 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: com.aspose.slides.internal.fw.if.for(Unknown Source) 2024-03-12 07:56:38,047 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: com.aspose.slides.internal.fw.if.<init>(Unknown Source) 2024-03-12 07:56:38,047 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: com.aspose.slides.internal.fw.if.do(Unknown Source) 2024-03-12 07:56:38,047 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: com.aspose.slides.internal.gj.char.try(Unknown Source)

Cause

  • The issue can be due to a corrupted plugin cache.

Solution

Updated on March 24, 2025

Still need help?

The Atlassian Community is here for you.