com.aspose.words.UnsupportedFileFormatException: Aspose.Words for Java

Hello,
Noticing this error with Aspose words for Java 17.10 version. - using word 2013

Caused by: com.aspose.words.UnsupportedFileFormatException: Unknown file format: Unknown
at com.aspose.words.Document.zzY(Unknown Source) ~[aspose - words - 17.10.trial - jdk16.jar: 17.10]
at com.aspose.words.Document.zzZ(Unknown Source) ~[aspose - words - 17.10.trial - jdk16.jar: 17.10]
at com.aspose.words.Document.(Unknown Source) ~[aspose-words-17.10.trial-jdk16.jar:17.10]
at com.aspose.words.Document.(Unknown Source) ~[aspose-words-17.10.trial-jdk16.jar:17.10]
at com.aspose.words.Document.(Unknown Source) ~[aspose-words-17.10.trial-jdk16.jar:17.10]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na: 1.7 .0_55]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java: 57) ~[na: 1.7 .0_55]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java: 45) ~[na: 1.7 .0_55]
at java.lang.reflect.Constructor.newInstance(Constructor.java: 526) ~[na: 1.7 .0_55]

Please advice.
Thanks
Nitin

@ngujaran,

Please ZIP and attach your input Word document you are getting this problem with here for testing. Please also tell us what JDK version are you using on your end? We will investigate the issue on our end and provide you more information.

Hello… Apologies for the delay. Please find it attachedBadImageTest.zip (2.1 MB)
Using java 7 (1.7.0_55)

@ngujaran,

After an initial test with Aspose.Words for Java 17.11, we were unable to reproduce this issue on our end over Windows 10. Please upgrade to the latest version.

However, when converting your DOCX to PDF, we observed the following exception on our end.

Exception in thread "main" java.lang.IllegalStateException: Unknown markup level.
	at com.aspose.words.zzX.zzZ(Unknown Source)
	at com.aspose.words.zzZ0G.zzZnp(Unknown Source)
        ....

We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-16197. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

@ngujaran,

The issues you have found earlier (filed as WORDSNET-16197) have been fixed in this Aspose.Words for .NET 18.1 update and this Aspose.Words for Java 18.1 update.
Please also check the following articles: