Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some java/beans/* test failed with error message: Caused by: java.lang.NullPointerException: ...because "sun.awt.FontConfiguration.head" is nullon arm containers. #2318

Closed
sophia-guo opened this issue Sep 16, 2021 · 6 comments

Comments

@sophia-guo
Copy link

sophia-guo commented Sep 16, 2021

Following jdk_bean tests got error message: Caused by: java.lang.NullPointerException: Cannot load from *** because "sun.awt.FontConfiguration.head" is null.
https://ci.adoptopenjdk.net/job/Test_openjdk17_hs_extended.openjdk_arm_linux_testList_0/12/
java/beans/PropertyChangeSupport/Test4682386.java.Test4682386
java/beans/PropertyEditor/TestFontClassJava.java.TestFontClassJava
java/beans/PropertyEditor/TestFontClassValue.java.TestFontClassValue
java/beans/XMLEncoder/Test4631471.java.Test4631471
java/beans/XMLEncoder/Test4903007.java.Test4903007
java/beans/XMLEncoder/javax_swing_DefaultCellEditor.java.javax_swing_DefaultCellEditor
java/beans/XMLEncoder/javax_swing_JTree.java.javax_swing_JTree

Tests passed on non-docker containers. Reran on test-sxa-armv7l-ubuntu1804-odroid-1. reran passed.:
https://ci.adoptopenjdk.net/view/work-in-progress/job/grinder_sandbox_new/322/console

adoptium/aqa-tests#2854

@sxa
Copy link
Member

sxa commented Sep 23, 2021

Do you know what's needed for this to pass?

@sophia-guo
Copy link
Author

@smlambert
Copy link
Contributor

smlambert commented Jan 21, 2022

some related discussion that describes a workaround: AdoptOpenJDK/openjdk-docker#75 (and adoptium/temurin-build#693)

@sophia-guo
Copy link
Author

@sxa sxa added this to the 2022-05 (May) milestone May 23, 2022
@sxa
Copy link
Member

sxa commented May 23, 2022

Based on the other issues this will need the fontconfig package (which pulls in fonts-dejavu-core, fontconfig-config libfontconfig1` on Ubuntu) added to the DockerStatic containers.

@sxa sxa self-assigned this May 23, 2022
@sxa
Copy link
Member

sxa commented May 23, 2022

fontconfig should now be available on all active docker static containers other than the Alpine ones (which are headless).
Please reopen if you see this anywhere again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants