I am using the latest Aspose.Slides for Java (2.2.0). I have code that processes files in a multiple threads. This works great for .ppt (Presentation) files but fails for .pptx (PresentationEx) files. If I run the same code without multiple threads, .pptx (PresentationEx) files work fine. The failure appears to be that one cannot create/initialize the PresentationEx when multithreaded. The traceback looks like this:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
Caused by: java.lang.NullPointerException
… 4 more
I’m calling PresentationEx like this:
pptx = PresentationEx(new FileInputStream(new File( pptxPath)));
I call the Presentation constructor the same way and it works for .ppt files in the multithreaded context. I have also tried the version of the PresentationEx constructor that takes the pptxPath as a String, with the same result.
Thank you for any hints you can give for making PresentationEx work in a multithreaded context.