Confluence Images Break after Resizing
Symptoms
When an image is resized in Confluence edit mode, the image breaks:
The following appears in the atlassian-confluence.log
:
2014-04-24 10:29:43,084 ERROR [main] [atlassian.confluence.security.DefaultCaptchaManager] afterPropertiesSet Could not initialise CAPTCHA service. The most likely reason for this is that Java's graphics subsystem is not properly configured. Try starting Confluence's JVM with the -Djava.awt.headless=true option. no awt in java.library.path
java.lang.UnsatisfiedLinkError: no awt in java.library.path
Cause
The Java graphical library is corrupted, which breaks the image resize feature in Confluence.
Resolution
- Shutdown Confluence.
- Upgrade Java to the latest supported version.
Set your environment variable to the new version of Java, as documented in Installing Java for Confluence.
- After you set the new version of Java as your environmental variable, follow the Configuring System Properties guide in case you're starting Confluence as a Windows service.
- In step 5, after you click on the Java tab, tick the check box "Use default":
- Click OK.
Start Confluence.
Be sure to confirm that your Confluence instance is using the new Java version, at Confluence Admin > System Information
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.