Bug 66663 - org.springframework.web.util.NestedServletException handler dispatch failed Could not initialize class sun.awt.X11FontManager
Summary: org.springframework.web.util.NestedServletException handler dispatch failed C...
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 5.2.2-FINAL
Hardware: Other Linux
: P2 blocker (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-21 19:13 UTC by Shubham patil
Modified: 2023-06-21 19:44 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shubham patil 2023-06-21 19:13:17 UTC
I am using jdk 11 and Apache poi 5.2.0 lib.
I am getting org.springframework.web.util.NestedServletException handler dispatch failed Could not initialize class sun.awt.X11FontManager exception when I am running my Excel utility application in docker environment.
Kindly help me on this.
Thanks
Comment 1 sfisque 2023-06-21 19:18:38 UTC
you might need to pass -Djava.awt.headless=true to the jvm launched inside the docker image
Comment 2 PJ Fanning 2023-06-21 19:27:45 UTC
This is a bug tracker. If you have usage problems, stackoverflow.com is a better solution. There are plenty of questions on there already about X11 setup.
Comment 3 Shubham patil 2023-06-21 19:44:56 UTC
Appreciated,
Thanks for the quick response.

I have added Djava.awt.headless=true line and rerun my application but facing other issue.

..
Now I am getting java.lang.UnsatisfiedLink Error usr/pkg/java/openjdk7/jre/lib/amd64   libfontmanager.so Shared object libfreetype.so.7" not found.

Kindly help