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

Free Support Forum - aspose.com

java.lang.IllegalArgumentException is thrown while re-saving DOCM using Java

Hi,

I am writing to you about a problem we encountered in working with MSO Word documents (docm format) using the Aspose Words v20.12 library (for Java).

Specifically, when we try to open and, right after that, save a document in same (docm) format, while saving the document, an exception is thrown with the message: “java.lang.IllegalArgumentException: duplicate”.

I am enclosing test code, test files and pictures thrown exception.

In the hope that together we will quickly overcome the problem!
Best regards!

Nenad

pics and test code.zip (49.4 KB)
source.zip (5.8 MB)
target.zip (5.8 MB)

@zpredojevic

We have tested the scenario and 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-22604. 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-22604) have been fixed in this Aspose.Words for Java 21.9 update.

@tahir.manzoor

I would like to inform you that the reported problem does not reproduce after the application of version 21.9. Thanks!

Nenad