Shape - ClassCastExceptions

Hello there,
Seeing ClassCastException with attached document. There are other documents as well failing for us.

Code:
String docx = “checkHF12FieldCode.docx”;
doc1 = new Document(dir + docx);
for (Shape shape: (Iterable)doc1.getChildNodes(NodeType.SHAPE, true)) {
System.out.println(shape.getFill().getColor());
}

Exception trace:
Caused by: java.lang.ClassCastException: com.aspose.words.zzII cannot be cast to com.aspose.words.zzCM
at com.aspose.words.Fill.zzZRN(Unknown Source)
at com.aspose.words.Fill.(Unknown Source)
at com.aspose.words.Shape.getFill(Unknown Source)

Any way to avoid this without waiting for newer version?

Any help would be appreciated.

Thanks,
Prakhar

                                <br><br>

Hi Prakhar,

Thanks for your inquiry. I
have tested the scenario and have managed to reproduce the same issue at
my side. For the sake of correction, I have logged this problem in our
issue tracking system as WORDSNET-11921. I have linked this forum thread
to the same issue and 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-11921) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.