Evaluation Only Watermark Appears with Newly Procured License

Hi Team,

I have 3 issues for which we need some help

  1. We have procured a new license and still we are seeing the Evaluation only watermark.

Aspose slides version - 22.8
Order Id of license - 221019205854
Will the new license take some time to reflect in Aspose server ? Just trying to understand!

  1. And whenever the first time we download the ppt from the dockercontainer, we getting the below error

andler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)

  1. Also when we try to use the latest slides version- 22.11, we are getting the below error

KeyNotFoundException: The given key was not present in the dictionary

Could you please help us all the 3 issues mentioned above ?

Thanks,
Thilak Babu

Hello Team,

This is blocking our development, could you provide some feedback to resolve the issues ?

@Thilakbabu,
Thank you for contacting support.

Aspose.Slides for Java does not connect Aspose servers. Please carefully check if the new license is actually used in your project. If the issue persists, please follow the instructions to send us your new license file. We will then check it soon.

Please describe the issue in more detail and share the dockerfile, presentation file, and any additional data to reproduce the issue on our end.

Please share the following data and information:

  • presentation file
  • code example that reproduces the exception
  • OS version on which the code was executed
  • JDK version in your app

It would be great if you post different issues in different forum threads.

@Andrey_Potapov

*** Observation1**

For the first point 1. We are using recently procured license only. I have sent the license file privately to you. Could you check and let us know as soon as possible.

aspose.slides version used is 22.8.
Jdk: Java11
Os: CentOS Linux 7 (Core)

@Amjad_Sahi any insights on this?

*** Observation2**

For point2 : It happens only when we deploy the code to an environment. And the error depends upon the class it is trying to load in the execution.

Error 1:
“ERROR : Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,“status”:{“errorMessage”:“Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,“errorDetails”:“Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,“error”:true},“stackTrace”:{“messages”:[“org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,“java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”],“stackTrace”:[“java.base/java.lang.ClassLoader.defineClass1(Native Method)”,“java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)”,“java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)”,“java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:555)”,“java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458)”,“java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452)”,“java.base/java.security.AccessController.doPrivileged(Native Method)”,“java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451)”,“java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)”,“org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151)”,“java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)”,“com.aspose.slides.ari.do(Unknown Source)”,“com.aspose.slides.Slide.do(Unknown Source)”,“com.aspose.slides.alm.new(Unknown Source)”,“com.aspose.slides.alm.do(Unknown Source)”,“com.aspose.slides.Presentation.do(Unknown Source)”,“com.aspose.slides.Presentation.do(Unknown Source)”,“com.aspose.slides.Presentation.do(Unknown Source)”,“com.aspose.slides.Presentation.save(Unknown Source)”

Error 2:

“ERROR : Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,“status”:{“errorMessage”:“Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,“errorDetails”:“Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,“error”:true},“stackTrace”:{“messages”:[“org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,“java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”],“stackTrace”:[“java.base/java.lang.ClassLoader.defineClass1(Native Method)”,“java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)”,“java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)”,“java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:555)”,“java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458)”,“java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452)”,“java.base/java.security.AccessController.doPrivileged(Native Method)”,“java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451)”,“java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)”,“org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151)”,“java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)”,“com.aspose.slides.ShapeCollection.do(Unknown Source)”,“com.aspose.slides.ShapeCollection.do(Unknown Source)”,“com.aspose.slides.ShapeCollection.addOleObjectFrame(Unknown Source)”

We are using both aspose cell and aspose slides in the same project. Will that cause any issues?

*** Observation 3**

For point 3: we will add the details soon.

@Vishnu17,
I’ve received your private message, but it does not contain the license file.

As for the remaining issues, we need a reproducible scenario for the problems you encountered.

Hi @Andrey_Potapov,

the jdk version in our environment is as follows

openjdk version “11.0.17” 2022-10-18 LTS
OpenJDK Runtime Environment Corretto-11.0.17.8.1 (build 11.0.17+8-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.17.8.1 (build 11.0.17+8-LTS, mixed mode)

OS version is as below

Linux version 3.10.0-1160.80.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) )

And the exception we get on the first time of saving a presentation is as follows

“message”:“ERROR : Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,
“status”:{“errorMessage”:“Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,
“errorDetails”:“Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,
“error”:true},“stackTrace”:{“messages”:[“org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”,
“java.lang.LinkageError: loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61 attempted duplicate class definition for com.aspose.slides.internal.fu.this. (com.aspose.slides.internal.fu.this is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @32130e61, parent loader ‘app’)”],“stackTrace”:[“java.base/java.lang.ClassLoader.defineClass1(Native Method)”,
“java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)”,
“java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)”,
“java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:555)”,
“java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458)”,
“java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452)”,
“java.base/java.security.AccessController.doPrivileged(Native Method)”,
“java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451)”,
“java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)”,
“org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151)”,
“java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)”,
“com.aspose.slides.asw.do(Unknown Source)”,
“com.aspose.slides.asw.do(Unknown Source)”,
“com.aspose.slides.Slide.do(Unknown Source)”,
“com.aspose.slides.amj.new(Unknown Source)”,
“com.aspose.slides.amj.do(Unknown Source)”,
“com.aspose.slides.Presentation.do(Unknown Source)”,
“com.aspose.slides.Presentation.do(Unknown Source)”,
“com.aspose.slides.Presentation.do(Unknown Source)”,
“com.aspose.slides.Presentation.save(Unknown Source)”,

The presentation file we got back is in bytes and unable to open. Attaching here FYR. - test-save.zip (375 Bytes)

the code what we are trying to do is just to save the presentation

Presentation presentation;
presentation.save(documentStream, “pptx”);

documentStream is java.io.OutputStream type

This is happening only for the very first saving of a file from the docker created.On the subsequent tries, it works perfectly fine.

Please help us resolving this issue.

@Thilakbabu,
Thank you for the additional information. I will get back to you as soon as possible.

Hi @Andrey_Potapov,

This issue is impacting us. Were you able to get some insights on this ? Please provide us an update! Thanks.

-Thilak

@Thilakbabu,
Unfortunately, this information is not enough to reproduce the error on our side. Please share a sample project to get the same result.

Hi @Andrey_Potapov

Please find the controller and service interface and implementation files which we used to reproduce the issue. Aspose-StandAlone-code-files.zip (2.1 KB)

And as already shared the the jdk version in our environment is as follows

openjdk version “11.0.17” 2022-10-18 LTS
OpenJDK Runtime Environment Corretto-11.0.17.8.1 (build 11.0.17+8-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.17.8.1 (build 11.0.17+8-LTS, mixed mode)

OS version is as below

Linux version 3.10.0-1160.80.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) )

Aspose slides version we use is 22.11

Please let me know for any more information. Also help us to resolve this issue ASAP.

Thanks,
Thilak Babu

@Thilakbabu,
Thank you for the code examples. I’ve added a ticket with ID SLIDESJAVA-39069 to our issue-tracking system. Our developers will look into the issue. We will inform you of any progress.

1 Like

@Thilakbabu,
Our developers have investigated the case.

It’s usually an indication that different versions of the same dependency are getting loaded into the JVM. Could you check for double imports in your environment?

Hi @Andrey_Potapov,

If it is due to the different versions of dependency in JVM, how come its working fine from the second invocation of ppt ?

Also, we dont have more than 1 version of dependency in our JVM.

Could you please help us resolve this ?

Thanks,
Thilak

@Thilakbabu,
I’ve forwarded your questions to our developers. We will get back to you ASAP.

1 Like

@Thilakbabu,
Unfortunately, we can’t answer your question, because we don’t have access to your environment. Please check whether you are using two class loaders or this.

@Andrey_Potapov , let us know if we can connect via meeting , so that we can share the screen and show the issue.

@mrajgopal.22,
We provide free support only on this forum. You can try to record a video and share it here.