ClassCastException Occurred while Loading PowerPoint Presentation File in Java

Please browse the files in the following package.

2336.pptx.zip (536.6 KB)

When I run the code, PptxReadException is thrown.

Presentation presentation = new Presentation(filePath);

The following is the error stack information:

class com.aspose.slides.PptxReadException: class com.aspose.slides.MathematicalText cannot be cast to class com.aspose.slides.gin (com.aspose.slides.MathematicalText and com.aspose.slides.gin are in unnamed module of loader 'app') ---> java.lang.ClassCastException: class com.aspose.slides.MathematicalText cannot be cast to class com.aspose.slides.gin (com.aspose.slides.MathematicalText and com.aspose.slides.gin are in unnamed module of loader 'app')
--- End of inner exception stack trace ---
com.aspose.slides.tdk.w9(Unknown Source)
com.aspose.slides.Presentation.ky(Unknown Source)
com.aspose.slides.Presentation.w9(Unknown Source)
com.aspose.slides.Presentation.w9(Unknown Source)
com.aspose.slides.Presentation.<init>(Unknown Source)
com.aspose.slides.Presentation.<init>(Unknown Source)

If there is a way to avoid mistakes, please tell me.

OS: macOS 13.2.1
JVM: OpenJDK 64-Bit Server VM (17.0.1+12-39, mixed mode, emulated-client, sharing)
Java: version 17.0.1, vendor Oracle Corporation
sdk: aspose.slides-23.3

@oscarstar,
Thank you for reporting on the issue.

I reproduced the error when loading the PowerPoint presentation file with Aspose.Slides.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39163

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you found earlier (filed as SLIDESJAVA-39163) have been fixed in Aspose.Slides for Java 23.6 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.