search cancel

FontConfiguration X11 error in db load ucybdbld.jar using Openjdk on Linux


Article ID: 239487


Updated On:


CA Automic Workload Automation - Automation Engine


On a newly installed AE Linux server where Openjdk 11.x was used, the DB Load tool (ucybdbld.jar)  does not start the X11 window in the remote desktop with the following error:

/opt/uc4/uc4act/Utility/bin> java -jar ucybdbld.jar
Exception in thread "main" java.lang.InternalError: java.lang.reflect.InvocationTargetException
at java.desktop/sun.font.FontManagerFactory$
at java.base/ Method)
at java.desktop/sun.font.FontManagerFactory.getInstance(
at java.desktop/sun.font.SunFontManager.getInstance(
at java.desktop/sun.font.FontDesignMetrics.getMetrics(
at com.ucutil.ucdbload.CUCYDBLoad.main(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.base/java.lang.reflect.Constructor.newInstance(
at java.desktop/sun.font.FontManagerFactory$
... 43 more
Caused by: java.lang.NullPointerException
at java.desktop/sun.awt.FontConfiguration.getVersion(
at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(
at java.desktop/sun.awt.FontConfiguration.init(
at java.desktop/sun.awt.X11FontManager.createFontConfiguration(
at java.desktop/sun.font.SunFontManager$
at java.base/ Method)
at java.desktop/sun.font.SunFontManager.<init>(
at java.desktop/sun.awt.FcFontManager.<init>(
at java.desktop/sun.awt.X11FontManager.<init>(
... 48 more


Release : 12.x and 21.x


Sub-Component: Any graphical tool that requires X11, such as dbload


By default, Openjdk does not include the necessary fonts and font configurations in Linux/Unix distributions.


The problem is related to the lack of fonts and font configuration within the Openjdk versions of Java.
in order to fix it, please install the necessary packages in the Server hosting the Automation Engine according to your distribution as mentioned here

For Linux:

Debian/Ubuntu/Mint: apt-get install libfreetype6 fontconfig fonts-dejavu
RHEL/CentOS/Fedora: yum install freetype fontconfig dejavu-sans-fonts
SLES/OpenSUSE: zypper install libfreetype6 fontconfig dejavu-fonts