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

Free Support Forum - aspose.com

PPT fails to load with MetafilesException

When trying to construct a presentation from a file stream, I get the following error:
java.lang.LinkageError: com/aspose/metafiles/MetafilesException


The method being used to open the presentation is as follows:
source = new FileInputStream(f); // this is line 164 from the stacktrace below.

where f is of type File and has been checked for existence, readability, etc.

Does anyone have any idea what this could be? What can I change to fix the issue?

Thanks,
Chadwick
PS Here’s the full stack trace:

java.lang.LinkageError: com/aspose/metafiles/MetafilesException
at com.aspose.slides.obfuscated.aL.(SourceFile:23)
at com.aspose.slides.obfuscated.jh.do(SourceFile:237)
at com.aspose.slides.obfuscated.dy.do(SourceFile:54)
at com.aspose.slides.obfuscated.iX.do(SourceFile:25)
at com.aspose.slides.Presentation.if(SourceFile:379)
at com.aspose.slides.Presentation.(SourceFile:554)
at com.ournamespace.ourobject.CreatePresentation(ourobject.java:164)
at com.ournamespace.ourservlet.doPost(ourservlet.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

Hi Chadwick,

Thanks for your interest in Aspose.Slides.

I have observed the exception issue shared by you. Actually, you are missing reference to one of our other component Aspose.Metafiles for Java in your project. Please download the latest version of Aspose.Metafiles for Java, which is available here to resolve the problem. In order to see why Aspose.Metafiles for Java is used with Aspose.Slides for Java, please visit this documentation link.

Thanks and Regards,