Exception when setting license on Aspose.Words for Java

when setting up license for Aspose.Words 23.2 I get an exception.
for other Aspose products (we have a license for Aspose Total), with the same license, there’s no such problem.

here’s the backtrace

Exception in thread “main” java.lang.NoClassDefFoundError: com.aspose.words.internal.zzYFn (initialization failure)
at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:84)
at com.aspose.words.internal.zzZ3M.zzX6x(Unknown Source)
at com.aspose.words.internal.zzZ3M.zzZn5(Unknown Source)
at com.aspose.words.zzpP.zzZn5(Unknown Source)
at com.aspose.words.zzpP.zzX6x(Unknown Source)
at com.aspose.words.zzpP.zzYNP(Unknown Source)
at com.aspose.words.zzKH.zzYNP(Unknown Source)
at com.aspose.words.zzKH.zzYNP(Unknown Source)
at com.aspose.words.zzKH.zzZn5(Unknown Source)
at com.aspose.words.zzKH.zzYCA(Unknown Source)
at com.aspose.words.zzKH.zzYEV(Unknown Source)
at com.aspose.words.zzKH.zzYEV(Unknown Source)
at com.aspose.words.License.setLicense(Unknown Source)
at Main.main(Main.java:2)
Caused by: com.aspose.words.internal.zzO9: Failed self test on encryption: AES
at com.aspose.words.internal.zzWjT.zzYNP(Unknown Source)
at com.aspose.words.internal.zzY4p$zzZn5.zzVVS(Unknown Source)
at com.aspose.words.internal.zzY4p$zzZn5.zzZOb(Unknown Source)
at com.aspose.words.internal.zzY4p$1.zzZgg(Unknown Source)
at com.aspose.words.internal.zzY4p$1.zzZOb(Unknown Source)
at com.aspose.words.internal.zzXbo$zzZeP.zzY6Y(Unknown Source)
at com.aspose.words.internal.zzXbo.(Unknown Source)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:278)
at com.aspose.words.internal.zzX78.zzWSS(Unknown Source)
at com.aspose.words.internal.zzX78.zzWA8(Unknown Source)
at com.aspose.words.internal.zzX78$zzYNP.(Unknown Source)
at com.aspose.words.internal.zzX78.zzX91(Unknown Source)
at com.aspose.words.internal.zzYO6.zzYeY(Unknown Source)
at com.aspose.words.internal.zzYO6.zzZzA(Unknown Source)
at com.aspose.words.internal.zzWwU.zzYBG(Unknown Source)
at com.aspose.words.internal.zzWc5$zzXKX$1.zzYNP(Unknown Source)
at com.aspose.words.internal.zzWc5$zzXKX$1.zzWng(Unknown Source)
at com.aspose.words.internal.zzWjT.zzYNP(Unknown Source)
at com.aspose.words.internal.zzWc5$zzXKX.zzZ6X(Unknown Source)
at com.aspose.words.internal.zzWc5$zzXKX.zzZOb(Unknown Source)
at com.aspose.words.internal.zzWc5.(Unknown Source)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:278)
at com.aspose.words.internal.zzX78.zzWSS(Unknown Source)
at com.aspose.words.internal.zzX78.zzWA8(Unknown Source)
at com.aspose.words.internal.zzX78$zzYNP.(Unknown Source)
at com.aspose.words.internal.zzX78.zzX91(Unknown Source)
at com.aspose.words.internal.zzX2D$zzX6x.(Unknown Source)
at com.aspose.words.internal.zzX2D$zzYNP.zzYNP(Unknown Source)
at com.aspose.words.internal.zzYFn.(Unknown Source)
at com.aspose.words.internal.zzZ3M.zzX6x(Unknown Source)
at com.aspose.words.internal.zzZ3M.zzZn5(Unknown Source)
at com.aspose.words.zzpP.zzZn5(Unknown Source)
at com.aspose.words.zzpP.zzX6x(Unknown Source)
at com.aspose.words.zzpP.zzYNP(Unknown Source)
at com.aspose.words.zzKH.zzYNP(Unknown Source)
at com.aspose.words.zzKH.zzYNP(Unknown Source)
at com.aspose.words.zzKH.zzZn5(Unknown Source)
at com.aspose.words.zzKH.zzYCA(Unknown Source)
at com.aspose.words.zzKH.zzYEV(Unknown Source)
at com.aspose.words.zzKH.zzYEV(Unknown Source)
at com.aspose.words.License.setLicense(Unknown Source)

here’s the code:

public static void main(String[] args) {
    new com.aspose.words.License().setLicense("licensePath");
}

OS version is RHEL 7.6
JDK version is 1.8

@texben Could you please send us the problematic license via private message in the forum? We will check the issue and provide you more information.

https://forum.aspose.com/t/exception-when-setting-license-on-aspose-words-for-java/262670/2

I’ve sent the license on PM

@texben Thank you for additional information. I have checked the license on my side and it work fine. I will consult with our Java developers and provide you more information.

@texben We have rechecked the scenario on Windows and Linux and cannot reproduce the problem. According to the stack trace it looks like some resource was not loaded properly on your side. Have you tried rebooting your instance?