We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

java.lang.ExceptionInInitializerError is thrown after update to Aspose Words 21.6

We also encountered the same problem.

@zpredojevic

Aspose.Words for Java throws exception while creating document with Java 7. We logged this issue as WORDSJAVA-2604 in our issue tracking system. We apologize for your inconvenience.

Could you please ZIP and attach sample Java application along with Java version that you are using? We will investigate the issue and provide you more information on it.

We encountered this problem using Java 11 and Words 21.6 (version JDK17, not JDK16 Only).

I would like to draw your attention to the exception stack trace shared by @phe, which is the same as ours. In addition to the exception that says there was a problem creating the Document instance (Caused by: java.lang.ExceptionInInitializerError), there is another important one that can be crucial, and that is an exception that is generated because the Words API does not recognize the license (Caused by: java.lang.IllegalStateException: Invalid license signature. Please make sure the license file was not modified.), and the license is certainly valid.

Nenad

@zpredojevic

We have tested the scenario at Windows 10 using Java 11 and only faced following warnings. Could you please ZIP and attach the application that you are using along with external JAR file that are included in your application? Please also share the operating system that you are using. We will investigate this issue further and provide you more information on it.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.aspose.words.internal.zz3L (file:/c:/%20releases/21.6/aspose-words-21.6.0-java/lib/aspose-words-21.6.0-jdk17.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.aspose.words.internal.zz3L
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

@zpredojevic

We have tested the scenario and managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSJAVA-2608 . You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSJAVA-2604) have been fixed in this Aspose.Words for Java 21.9 update.

@tahir.manzoor

I would like to inform you that the reported problem does not reproduce after the application of version 21.9. Thanks!

Nenad

The issues you have found earlier (filed as WORDSJAVA-2608) have been fixed in this Aspose.Words for Java 21.10 update.