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

Free Support Forum - aspose.com

Error while loading RTF file with Aspose Words Java

Hi Aspose support,

I get an error when loading the attached RTF file using Aspose Java version 18.6. files.zip (688.8 KB)
I also joined the test program.

The stack trace is:
java.lang.ClassCastException: com.aspose.words.Shape cannot be cast to com.aspose.words.Table
at com.aspose.words.Row.getParentTable(Unknown Source)
at com.aspose.words.zzZ2O.zzZpp(Unknown Source)
at com.aspose.words.zzZ1R.zzX(Unknown Source)
at com.aspose.words.zzZ3V.zzU(Unknown Source)
at com.aspose.words.zzZ3K.zzU(Unknown Source)
at com.aspose.words.zzZ2B.read(Unknown Source)
at com.aspose.words.Document.zzY(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at BugRtfTestCase.main(BugRtfTestCase.java:11)

Is there a workaround to this problem?

Thank you,


Thanks for your inquiry. We have tested the scenario and have 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 WORDSNET-17094. 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 WORDSNET-17094) have been fixed in this Aspose.Words for .NET 18.12 update and this Aspose.Words for Java 18.12 update.