DocumentBuilder.insertHtml(html): java.lang.IllegalArgumentException: node

When I try calling DocumentBuilder.insertHtml(html) with the following simplified HTML, I get a java.lang.IllegalArgumentException thrown:





Here is the stacktrace of the exception:

Exception in thread “main” java.lang.IllegalArgumentException: node
at com.aspose.words.DocumentBuilder.moveTo(Unknown Source)
at com.aspose.words.zzZU5.zzZOt(Unknown Source)
at com.aspose.words.zzZU5.zzZ(Unknown Source)
at com.aspose.words.zzZU5.zzW(Unknown Source)
at com.aspose.words.zzZU5.zzZ(Unknown Source)
at com.aspose.words.zzZU5.zzP(Unknown Source)
at com.aspose.words.zzZU5.zzQ(Unknown Source)
at com.aspose.words.zzZU5.zzP(Unknown Source)
at com.aspose.words.zzZU5.zzQ(Unknown Source)
at com.aspose.words.zzZU5.zzP(Unknown Source)
at com.aspose.words.zzZU5.zzQ(Unknown Source)
at com.aspose.words.zzZU5.zzZ(Unknown Source)
at com.aspose.words.DocumentBuilder.zzZ(Unknown Source)
at com.aspose.words.DocumentBuilder.insertHtml(Unknown Source)
at Test2.main(Test2.java:40)
I’ve attached the test Java code also. The initial HTML had other named anchors and hyperlinks but I’ve pared it down to this simple example. Also, I upgraded to Aspose.Word for Java 14.9.0 and it still occurs.

Hi Scott,

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-11006. 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-11006) have been fixed in this .NET update and this Java update.


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