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.
@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: