AdoptOpenJDK / AdoptOpenJDK/openjdk-docker

java.lang.NullPointerException at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)

Đang mở
#560 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Waiting on OP
Ngôn ngữ chính
Slim
Star
423
Fork
220
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hello All,
We have a Java (with JBOSS as app server) based application with GUI. While generating jasper letters from the application, we are getting exceptions in log. we dont use docker.

**Env Details:-**
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.282-b08, mixed mode)

# cat /etc/**redhat-release**
Red Hat Enterprise Linux Server release 7.6 (Maipo)

There is a file fontconfig.properties available at $JAVA_HOME/lib, with below two lines in it.
version=1
sequence.allfonts=default

exception
--------------
javax.ejb.EJBException: net.sf.jasperreports.engine.JRRuntimeException: Error initializing graphic environment.
...
Caused by: net.sf.jasperreports.engine.JRRuntimeException: Error initializing graphic environment.
...
Caused by: java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264) [rt.jar:1.8.0_282]

ERROR [net.sf.jasperreports.engine.util.JRStyledTextParser] (default task-19) Error while loading available fonts: java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264) [rt.jar:1.8.0_282]

Reading other threads on github, i found a suggestion to install the fontconfig (sudo yum install fontconfig dejavu-sans-fonts dejavu-serif-fonts ), however this hasn't worked for all.
Could you please suggest what can i do as workaround to get passed this issue.

Regards,
Alok

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.