We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

getThumbnail failing with alpine JDK in Docker container

Hello Team,

I am facing following below issue while working with creating thumbnail from ppt from Aspose.Slide.19.02.jar in a Docker Container with image “openjdk:8-jdk-alpine”. Although I am able to run the getThumbnail method on my mac machine with OpenJDK.

java.lang.ExceptionInInitializerError

at com.aspose.slides.internal.e3.int.<init>(Unknown Source)

at com.aspose.slides.internal.ey.long.<clinit>(Unknown Source)

at com.aspose.slides.internal.lw.this.do(Unknown Source)

at com.aspose.slides.internal.lw.this.do(Unknown Source)

at com.aspose.slides.internal.lw.public.do(Unknown Source)

at com.aspose.slides.ns.do(Unknown Source)

at com.aspose.slides.ns.do(Unknown Source)

at com.aspose.slides.ns.do(Unknown Source)

at com.aspose.slides.nb.do(Unknown Source)

at com.aspose.slides.ai6.do(Unknown Source)

at com.aspose.slides.nb.do(Unknown Source)

at com.aspose.slides.ko.do(Unknown Source)

at com.aspose.slides.ny.do(Unknown Source)

at com.aspose.slides.aks.for(Unknown Source)

at com.aspose.slides.aks.default(Unknown Source)

at com.aspose.slides.akp.do(Unknown Source)

at com.aspose.slides.akp.<init>(Unknown Source)

at com.aspose.slides.TextFrame.do(Unknown Source)

at com.aspose.slides.TextFrame.do(Unknown Source)

at com.aspose.slides.TextFrame.do(Unknown Source)

at com.aspose.slides.AutoShape.do(Unknown Source)

at com.aspose.slides.GroupShape.do(Unknown Source)

at com.aspose.slides.Slide.for(Unknown Source)

at com.aspose.slides.Slide.do(Unknown Source)

at com.aspose.slides.Slide.do(Unknown Source)

at com.aspose.slides.Slide.for(Unknown Source)

at com.aspose.slides.Slide.getThumbnail(Unknown Source)

at xyz.convertPPT2Images(StorageService.java:512)

at xyz.PPTImageAsync(StorageService.java:320)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.NullPointerException

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

at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)

at sun.awt.FontConfiguration.init(FontConfiguration.java:107)

at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)

at sun.font.SunFontManager$2.run(SunFontManager.java:431)

at java.security.AccessController.doPrivileged(Native Method)

at sun.font.SunFontManager.<init>(SunFontManager.java:376)

at sun.awt.FcFontManager.<init>(FcFontManager.java:35)

at sun.awt.X11FontManager.<init>(X11FontManager.java:57)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at java.lang.Class.newInstance(Class.java:442)

at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)

at java.security.AccessController.doPrivileged(Native Method)

at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)

at sun.java2d.SunGraphicsEnvironment.getFontManagerForSGE(SunGraphicsEnvironment.java:201)

at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:235)

at sun.java2d.HeadlessGraphicsEnvironment.getAvailableFontFamilyNames(HeadlessGraphicsEnvironment.java:97)

at com.aspose.slides.internal.j8.if.<clinit>(Unknown Source)

… 31 more

Please suggest the fix asap.

Regards,
Amit

@mobilist,

Can you please share complete environment details along with source file and sample code that you used on your end so that we may further investigate to help you out.