License Parsing Error with Aspose.Slides for Java 22.7 and 22.8


We’ve been using aspose-slides for java, and when we recently updated to the most recent version we started getting license parsing errors. Version 22.6 works normally with no issues, but 22.7 and 22.8 both have this error when trying to set the license. We are also using words, cells, diagram, and imaging, all on the newest versions with the same license, with no issue. Below is a snippet of the code we’re using to set the license and the resulting stack trace.

  com.aspose.slides.License slides = new com.aspose.slides.License();

[ERROR,AsposeLicense] License parsing error
com.aspose.slides.exceptions.InvalidOperationException: License parsing error
	at Source) ~[aspose-slides-22.8-jdk16.jar:22.8]
	at com.aspose.slides.internal.oh.return.if(Unknown Source) ~[aspose-slides-22.8-jdk16.jar:22.8]
	at Source) ~[aspose-slides-22.8-jdk16.jar:22.8]
	at com.aspose.slides.License.setLicense(Unknown Source) ~[aspose-slides-22.8-jdk16.jar:22.8]

Any assistance you can provide on this matter would be appreciated.


Thank you for contacting support.

Please check and share the expiration date from your license file.

Here’s the expiry from the license:


Please send your license file according to the following instructions:

We will then check your license as soon as possible.

Message sent.

Thank you for the license file. We will reply to you soon.

Unfortunately, I have not managed to reproduce the error you are experiencing. The license works fine on my end with the versions you mentioned. Please check carefully what exactly is used in ASPOSE_LIC_FILE. It looks like the issue is related to your app.

If the issue persists, please share the following data and information:

  • sample project that reproduces the error
  • OS version where the code was executed

A post was split to a new topic: License.setLicense Throws InvalidOperationException: License Parsing Error