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

Free Support Forum - aspose.com

StackOverflowError when we try generating a PDF

Hi,

We are getting StackOverflowError when we try generating a PDF document with too many numbers of rows in a table. We are using isKeptTogether = true for this table. I also tried to remove this tag to generate the PDF, even then we get the same issue. But in case we reduce the font in the table in such a way that the complete table fits in one page we don’t get this error. I am attaching the XML that has this issue.

Exception in thread "main" java.lang.StackOverflowError<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

at java.lang.String.toUpperCase(Unknown Source)

at java.lang.String.toUpperCase(Unknown Source)

at aspose.pdf.e.Aac.a(SourceFile:215)

at aspose.pdf.Color.(SourceFile:140)

at aspose.pdf.TextInfo.(SourceFile:1967)

at aspose.pdf.Row.(SourceFile:373)

at aspose.pdf.Row.clone(SourceFile:537)

at aspose.pdf.xml.Acf.a(SourceFile:2791)

at aspose.pdf.xml.Acf.a(SourceFile:1432)

at aspose.pdf.xml.Acg.a(SourceFile:481)

at aspose.pdf.xml.Acf.a(SourceFile:1477)

at aspose.pdf.xml.Acg.a(SourceFile:481)

at aspose.pdf.xml.Acf.a(SourceFile:1477)

at aspose.pdf.xml.Acg.a(SourceFile:481)

at aspose.pdf.xml.Acf.a(SourceFile:1477)…

We are using Java Aspose 2.7.0

Hello Sriman,

Thanks for using our products.

I am afraid the source XML file is missing in earlier post. Can you please again try attaching the source document so that we can test the scenario at our end. We apologize for your inconvenience.

Attaching the file.

Hello Sriman,

Thanks for sharing the resource file.

I have tried converting the XML file into PDF format using Aspose.Pdf for Java 2.9.0 and I am unable to notice any problem. The PDF document is properly being generated. Please take a look over the resultant PDF that I have generated.