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

Free Support Forum - aspose.com

AppClassLoader: Attempted Duplicate Class Definition for Name: “com/aspose/slides/internal/mv/s”

Hi Team,

we are getting below exception while using “com.aspose.slides.Presentation presentationDoc = new com.aspose.slides.Presentation(iStream);”
in aws-linux server.

jdk-version = 11
aspose-slide version = 20.5

Exception in thread “com.sun.proxy.$Proxy173.convertPresentation” java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: “com/aspose/slides/internal/mv/s”
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: “com/aspose/slides/internal/mv/s”
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at com.aspose.slides.ms.core.resources.if.do(Unknown Source)
at com.aspose.slides.internal.mu.int.new(Unknown Source)
at com.aspose.slides.internal.mu.int.if(Unknown Source)
at com.aspose.slides.internal.e5.if.do(Unknown Source)
at com.aspose.slides.internal.e5.if.(Unknown Source)
at com.aspose.slides.internal.e5.if.(Unknown Source)
at com.aspose.slides.ou.do(Unknown Source)
at com.aspose.slides.ou.do(Unknown Source)
at com.aspose.slides.ou.do(Unknown Source)
at com.aspose.slides.ou.if(Unknown Source)
at com.aspose.slides.FontData.(Unknown Source)
at com.aspose.slides.ou.(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)

@maheshaBoraiah,
Welcome to our community! Thank you for the issue description.

There were many updates after version 20.5. Please check your results using the latest version of Aspose.Slides.

If the issue persists, please share the following:

  • simple project example that reproduces the error
  • input presentation file