Unable to insert any macros through the macro browser due to JAVA errors

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

Problem

When inserting macros in the page editor from Menu -> Insert -> Other Macros, the available macros do not load.

The following appears in the atlassian-confluence.log just after Confluence startup:

2015-07-27 13:34:41,373 ERROR [localhost-startStop-1] [atlassian.confluence.security.DefaultCaptchaManager] afterPropertiesSet Could not initialise CAPTCHA service. The most likely reason for thisis that Java's graphics subsystem is not properly configured. Try startingConfluence's JVM with the -Djava.awt.headless=true option. /opt/jdk1.8.0_51/jre/lib/amd64/libfontmanager.so: ld.so.1: java: fatal: libXext.so.0: open failed: No such file or directory
java.lang.UnsatisfiedLinkError: /opt/jdk1.8.0_51/jre/lib/amd64/libfontmanager.so: ld.so.1: java: fatal: libXext.so.0: open failed: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)

Causes

  1. Confluence is running on OpenJDK which is unsupported
  2.  libfontmanager.so and libXext.so.0 from the JAVA lib could not be located

Resolution 1

  1. Install a supported JDK. OpenJDK is not supported by Confluence.  A number of problems can occur when using OpenJDK, as Confluence's internal code as well as third party plugins assume you are using a supported JDK.

Resolution 2

  1. Re-install Oracle JDK in the system, or import the JAVA lib into the location specified by the error log

 

 

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.