Hi,
Aspose cells returns an error saving workbooks if executed on Docker image with amazoncorretto-17.0.12-alpine3.20 and alpine in general even with Fontconfig, freetype and all fonts installed.
Is there a way
- to run java project
- or to configure aspose
- or to fix these containers
to avoid this problem?
Thanks
java.lang.InternalError: java.lang.reflect.InvocationTargetException
at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:87)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:75)
at java.desktop/sun.java2d.SunGraphicsEnvironment.getFontManagerForSGE(SunGraphicsEnvironment.java:137)
at java.desktop/sun.java2d.SunGraphicsEnvironment.getAllFonts(SunGraphicsEnvironment.java:156)
at java.desktop/sun.java2d.HeadlessGraphicsEnvironment.getAllFonts(HeadlessGraphicsEnvironment.java:76)
at com.aspose.cells.b.a.b.c.a.ab.<clinit>(Unknown Source)
at com.aspose.cells.b.a.b.q.<clinit>(Unknown Source)
at com.aspose.cells.b.a.b.y.<init>(Unknown Source)
at com.aspose.cells.b.a.b.y.<init>(Unknown Source)
at com.aspose.cells.cvj.<clinit>(Unknown Source)
at com.aspose.cells.cdw.<init>(Unknown Source)
at com.aspose.cells.cdw.<init>(Unknown Source)
at com.aspose.cells.cfh.a(Unknown Source)
at com.aspose.cells.Shape.ar(Unknown Source)
at com.aspose.cells.ane.a(Unknown Source)
at com.aspose.cells.ane.a(Unknown Source)
at com.aspose.cells.ane.<init>(Unknown Source)
at com.aspose.cells.amw.a(Unknown Source)
at com.aspose.cells.amr.a(Unknown Source)
at com.aspose.cells.amx.b(Unknown Source)
at com.aspose.cells.amx.a_(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
... 30 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:85)
... 65 common frames omitted
Caused by: java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts configuration
at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1271)
at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:224)
at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:106)
at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:706)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:358)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:315)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:315)
at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:56)
... 71 common frames omitted