Free Support Forum - aspose.com

Aspose Words for Java 10.0 Beta - updateFields() - StackOverflowError

Hi,

at the moment i am testing the new beta release of Aspose Words for Java 10.0.
Using Document#updateFields() causes sometimes a StackOverFlowError. Is this problem known?

See stacktrace in attachement…

Best regards
Matthias Schlosser

Hi Matthias,

Thanks for your request. Could you please attach your document and provide simple code that will allow us to reproduce the problem? We will check the issue and provide you more information.

Best regards,

Hi Alexey,

i am sending code and document file for reproducing the problem.

  • TestUpdateFields.doc - Document to be modified
  • TestAspose10UpdateFields.java.txt (remove .txt)
    Update fields of given document
Thanks a lot
Matthias

Hi Alexey,

i am not sure sure but i think i found the reason for the error.
It seems that the field engine has still problems with IF-type fields that contains REF fields

for example (see previous attachement)
{ <span style=“font-size: 11pt; font-family: “Calibri”,“sans-serif”;”>IF ZUSATZ2 <> “” “1” “2” }

Best regards
Matthias

<!–[if supportFields]>IF REF ZUSATZ2 <>
“” "<o:p></o:p>

"

Hi Matthias,

Thank you for reporting this problem to us. I managed to reproduce it on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

The issues you have found earlier (filed as WORDSNET-4618) have been fixed in this .NET update and this Java update.


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