[oe][meta-java][thud] /usr/lib/jvm/openjre-8/lib/amd64/libfontmanager.so: undefined symbol: AWTFontTextExtents16


Bernard Gautier
 

Hi all,

I am trying to launch Jenkins on a yocto thud image running on Edison intel board. openjre-8 is part of the image.

It works fine with sumo version, but on thud version I am facing this error message (see below).

I did some investigation but did not find any culprits.

From what I understand libfontmanager.so is referencing AWTFontTextExtents16 which is defined nowhere (but it is the same on sumo apparently).

Normally I am running a headless server. X11 image is not appended.

Anyone may have some idea where I should look at?

Thanks for your help.

----------------------------------------------------------------

Jun 02, 2019 8:18:59 AM hudson.util.BootFailure publish
SEVERE: Failed to initialize Jenkins
hudson.util.AWTProblem: java.lang.UnsatisfiedLinkError: /usr/lib/jvm/openjre-8/lib/amd64/libfontmanager.so: /usr/lib/jvm/openjre-8/lib/amd64/libfontmanager.so: undefined symbol: AWTFontTextExtents16
        at hudson.WebAppMain.contextInitialized(WebAppMain.java:193)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:952)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:558)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:917)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:370)
        at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:847)
        at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:287)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
        at org.eclipse.jetty.server.Server.start(Server.java:416)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
        at org.eclipse.jetty.server.Server.doStart(Server.java:383)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at winstone.Launcher.<init>(Launcher.java:184)
        at winstone.Launcher.main(Launcher.java:354)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at Main._main(Main.java:375)
        at Main.main(Main.java:151)
Caused by: java.lang.UnsatisfiedLinkError: /usr/lib/jvm/openjre-8/lib/amd64/libfontmanager.so: /usr/lib/jvm/openjre-8/lib/amd64/libfontmanager.so: undefined symbol: AWTFontTextExtents16
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at sun.font.FontManagerNativeLibrary$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.font.FontManagerNativeLibrary.<clinit>(Unknown Source)
        at sun.font.SunFontManager$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.font.SunFontManager.<clinit>(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at sun.font.FontManagerFactory$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.font.FontManagerFactory.getInstance(Unknown Source)
        at java.awt.Font.getFont2D(Unknown Source)
        at java.awt.Font.getFamily(Unknown Source)
        at java.awt.Font.getFamily_NoClientCode(Unknown Source)
        at java.awt.Font.getFamily(Unknown Source)
        at java.awt.Font.toString(Unknown Source)
        at hudson.util.ChartUtil.<clinit>(ChartUtil.java:260)
        at hudson.WebAppMain.contextInitialized(WebAppMain.java:192)
        ... 24 more