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

Free Support Forum - aspose.com

Aspose Words: JavaFX - Invalid License Signature Error

I’ve created two projects to use Aspose.Words 21.6 for Java.
One is a normal Java application and the other is a JavaFX project.
In the JavaFX project, I am receiving the following exception:

    Caused by: java.lang.ExceptionInInitializerError
	at com.aspose.words/com.aspose.words.zzXjl.zzWXs(Unknown Source)
	at com.aspose.words/com.aspose.words.zzXjl.zzXHL(Unknown Source)
	at com.aspose.words/com.aspose.words.zzWh8.zzpw(Unknown Source)
	at com.aspose.words/com.aspose.words.Document.zzYl6(Unknown Source)
	at com.aspose.words/com.aspose.words.Document.zzWXs(Unknown Source)
	at com.aspose.words/com.aspose.words.Document.<init>(Unknown Source)
	at com.aspose.words/com.aspose.words.Document.<init>(Unknown Source)
	at com.aspose.words/com.aspose.words.Document.<init>(Unknown Source)
	at AsposeOffice/sample.Controller.loadDocument(Controller.java:178)
	at AsposeOffice/sample.Controller.updateWordFiles(Controller.java:131)
	at AsposeOffice/sample.Controller.processUpdate(Controller.java:118)
	... 42 more
     Caused by: java.lang.IllegalStateException: Invalid license signature. Please make sure the license 
     file was not modified.
	at com.aspose.words/com.aspose.words.zzWS3.<init>(Unknown Source)
	at com.aspose.words/com.aspose.words.zzWS3.<clinit>(Unknown Source)
	... 53 more

The normal Java application does not receive this error and I’ve implemented the license the same way in both applications:

public static void main(String[] args) throws Exception {
   License license = new License();
   license.setLicense("src/main/resources/Aspose.Words.Java.lic");

To confirm that this error only occurs when using Aspose with JavaFX, I tested this with a new temporary license and created another JavaFX application and the error still persisted (it still does not occur in the normal Java application).

Any help on this would be greatly appreciated,
Thank you!

@bartholemeu

We have logged this problem in our issue tracking system as WORDSJAVA-2617. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

1 Like

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