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

Free Support Forum - aspose.com

IllegalStateException in MailMerge AsposeWords for Java

Hi,

when I execute a MailMerge for a particular document I am getting an IllegalStateException.
In Aspose Words Version 10.4 it works. In Version 15.9 it does not work.
Since the stack trace is obfuscated, I dont't have any idea, what part of the document is causing this problem.
Could you please give me a hint about the stack trace?
Below I have pasted the strack trace.

Thanks in Advance

StackTrace: java.lang.IllegalStateException
at com.aspose.words.zz3M.zzY(Unknown Source)
at com.aspose.words.zz3Z.getText(Unknown Source)
at com.aspose.words.zz3Z.zzL(Unknown Source)
at com.aspose.words.zz3Z.zzWT(Unknown Source)
at com.aspose.words.zz3Z.zzZRc(Unknown Source)
at com.aspose.words.zz3Z.zzZRa(Unknown Source)
at com.aspose.words.zz2F.zzZOh(Unknown Source)
at com.aspose.words.zz2F.perform(Unknown Source)
at com.aspose.words.zz23.zzD(Unknown Source)
at com.aspose.words.zz23.zzF(Unknown Source)
at com.aspose.words.zz23.zzM(Unknown Source)
at com.aspose.words.zz23.zzP(Unknown Source)
at com.aspose.words.zz23.zzS(Unknown Source)
at com.aspose.words.zz23.zzV(Unknown Source)
at com.aspose.words.zz23.zzYS(Unknown Source)
at com.aspose.words.zz23.zzs(Unknown Source)
at com.aspose.words.zzZM8.zzZ(Unknown Source)
at com.aspose.words.zzZM8.zzZvw(Unknown Source)
at com.aspose.words.zzZM8.zzZ(Unknown Source)
at com.aspose.words.zzZM8.zzZvu(Unknown Source)
at com.aspose.words.zzZM8.zzJG(Unknown Source)
at com.aspose.words.zz26.zzJG(Unknown Source)
at com.aspose.words.zz23.zzYS(Unknown Source)
at com.aspose.words.zz23.zzs(Unknown Source)
at com.aspose.words.zzZM8.zzZ(Unknown Source)
at com.aspose.words.zzZM8.zzZvw(Unknown Source)
at com.aspose.words.zzZM8.zzZ(Unknown Source)
at com.aspose.words.MailMerge.zzY(Unknown Source)
at com.aspose.words.MailMerge.executeWithRegions(Unknown Source)

Hi Stefanie,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.


  • Please attach your input Word document.
  • Please create a standalone/runnable simple Java application that demonstrates the code (Aspose.Words code) you used to generate your output document

Unfortunately, it is difficult to say what the problem is without the Document(s) and simplified application. We need your Document(s) and simple project to reproduce the problem. As soon as you get these pieces of information to us we’ll start our investigation into your issue.