Hello,
when trying to open the attached ODT document I get the following error:
com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
at com.aspose.words.FileFormatUtil.zzWhh(Unknown Source)
at com.aspose.words.Document.zzYQ9(Unknown Source)
at com.aspose.words.Document.zzZy(Unknown Source)
at com.aspose.words.Document.<init>(Unknown Source)
at com.aspose.words.Document.<init>(Unknown Source)
...
Caused by: java.lang.IllegalArgumentException: Specified argument was out of the range of valid values.
Parameter name: firstColumn
at com.aspose.words.zzPK.zzYb7(Unknown Source)
at com.aspose.words.zzPK.zzSb(Unknown Source)
at com.aspose.words.zzXGF.zzZi9(Unknown Source)
at com.aspose.words.zzXGF.zzWZx(Unknown Source)
at com.aspose.words.zzVS0.zzXqY(Unknown Source)
at com.aspose.words.zzVS0.zzYQ9(Unknown Source)
at com.aspose.words.zzXl8.zzZy(Unknown Source)
at com.aspose.words.zzXl8.visitTableEnd(Unknown Source)
at com.aspose.words.Table.acceptEnd(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Table.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Body.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Section.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Document.accept(Unknown Source)
at com.aspose.words.zzXl8.zzZy(Unknown Source)
at com.aspose.words.Document.zzYQ9(Unknown Source)
at com.aspose.words.Document.zzYQ9(Unknown Source)
The code to reproduce the case is as follows:
Document srcDoc = new Document("appears_to_be_corrupted.odt");
The document:
appears_to_be_corrupted.zip (42.2 KB)
The problem has been reproduced with version 24.9 of Aspose.Word for Java.
NOTE: this problem appeared in version 23.7; with previous versions of the library the document is parsed without problems.
The document opens without problems in LibreOffice.
Thanks,
Fabio Parise