ASPOSE.EMAIL (Failed to set license)

Hello, my organization bought the license for Aspose Total for Java some years ago, right now when i use the license for aspose (pdf or word or html) everything works fine but when i use aspose email i get the error below :

com.aspose.email.system.exceptions.InvalidOperationException: class com.aspose.email.system.exceptions.InvalidOperationException: Failed to set license. Details: Index 2 out of bounds for length 2
com.aspose.email.License.setLicense(SourceFile:338)

Use on servers (8 GB of RAM / Centos 7 / Jdk 1.7) (8 GB of RAM / ubuntu / Jdk 11)

The code is so simple, it’s just to see if the license works or not.
Plugins : Aspose.Email Java for Python

self.license = jpype.JClass(“com.aspose.email.License”)
license = self.license()
license.setLicense(“Aspose.Total.Java.lic”)

Thank you

@Akader

Please post your license file via private message. In order to send a private message with attachment, please click on my name and find “Message” button. Please check the attached image. send message.png (20.7 KB)

We will investigate the issue with your license file on our end and provide you more information.

P.S. Please do not share your license file publicly in forum threads.

Hello,
I found another way to read the input. thank you for your reply

@Akader

It is nice to hear from you that your problem has been solved. Please let us know if you have any queries related to Aspose.Email.