Aspose license errors

We notice recently after using the latest Aspose jar that when we set the license we get the below errors.

java.lang.NullPointerException: null
at com.aspose.slides.internal.oh.return.for(Unknown Source) ~[aspose-slides-22.9-jdk16.jar:22.9]
at Source) ~[aspose-slides-22.9-jdk16.jar:22.9]
at com.aspose.slides.License.setLicense(Unknown Source) ~[aspose-slides-22.9-jdk16.jar:22.9]

another example

java.lang.NullPointerException: null
at com.aspose.diagram.vs.f(Unknown Source) ~[aspose-diagram-22.9.jar:]
at com.aspose.diagram.vs.a(Unknown Source) ~[aspose-diagram-22.9.jar:]
at com.aspose.diagram.License.setLicense(Unknown Source) ~[aspose-diagram-22.9.jar:]

can you please advise?


Thank you for contacting support.

Please check the expiration date in your license file. If your license is outdated, please follow the instructions below:

The expiration date is 20221129.

Please follow the instructions below to send us your license file. We will check the problem soon.

Thank you for the license file. Your license works fine on my end. Please check the problem using a new empty project. It looks like the error is related to your app. If the issue persists, please share more information to help us reproduce the exception (OS version, JDK version, etc.).

this issue duplicated in Linux OS Java Vendor [ Inc.]

and Java Version [1.8.0_332 ]

Please specify the full version and distribution of the operating system where the error appears.


About Aspose.Diagram, can you please make sure that you are defining the dependency in pom.xml correctly? You do not have to include <classifier>jdk16</classifier> in pom.xml while declaring dependency.

Below from the pom file, an thing else should be added?



The settings seems fine. We further need to investigate the issue.

Can you please provide above requested information. We will log an investigation task and share the ticket ID with you.

Linux version 4.14.291-218.527.amzn2.x86_64 (mockbuild@ip-10-0-39-162) (gcc version 7.3.1 20180712 (Red Hat 7.3.1-13) (GCC))


We have logged an investigation ticket as DIAGRAMJAVA-51045 in our issue tracking system for further analysis. We will look into its details and let you know as soon as we resolve the ticket. Please be patient and spare us some time.

We apologize for the inconvenience.

Thank you for the additional information. I’ve added a ticket with ID SLIDESJAVA-38935 to our issue tracking system. Our development team will investigate the case. We will inform you of any progress.

Unfortunately, our developers were unable to reproduce the error you are experiencing. Please share the following additional data and information:

  • sample project that reproduces the exception
  • full stack trace of the exception


We were unable to reproduce the issue for Aspose.Diagram for Java as well. Can you please provide your license file in a private message? image.png (10.8 KB)

Also, is it happening in multi-threading environment? Can you please isolate the license settings code and test again. Please give a try with 22.10 version of the API and let us know about the results you have.