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

Hello,

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();
  slides.setLicense(this.getClass().getResourceAsStream(ASPOSE_LIC_FILE));


[ERROR,AsposeLicense] License parsing error
com.aspose.slides.exceptions.InvalidOperationException: License parsing error
	at com.aspose.slides.internal.oh.final.do(Unknown 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 com.aspose.slides.internal.oh.return.do(Unknown 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.

Best,
Avery

@averyscottnorris,
Thank you for contacting support.

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

Here’s the expiry from the license:

<SubscriptionExpiry>20221102</SubscriptionExpiry>

@averyscottnorris,
Please send your license file according to the following instructions:

We will then check your license as soon as possible.

Message sent.

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

@averyscottnorris,
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