Free Support Forum -

java.lang.StackOverflowError in Pdf.Save


I am having a xml file and I am converting it to a pdf. Currently I am using 2.7.0 jar and getting the following exception :

However if I am using java 2.9.0 jar its working fine. Now I cant change the jar because product is in production. How can I fix it ? I cant provide the xml .

C:\SmallJavaPrograms\src>java -Xmx1024m ReadFromFile
Successfully read the file.
Number of lines in Xml :290967
Successfully bind the xml.
Time taken to Bind XML :126.65 Sec
Exception in thread "main" java.lang.StackOverflowError
at java.lang.Character.toUpperCaseEx(Unknown Source)
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.Table.setDefaultCellTextInfo(SourceFile:989)
at aspose.pdf.Table.clone(SourceFile:1344)
at aspose.pdf.xml.Acf.a(SourceFile:3066)
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)

Hello Sriman,

Thanks for using our products.

As you have stated that the problem seems to be occurring with Aspose.Pdf for Java 2.7.0 whereas it does not seem to be occurring when using Aspose.Pdf for Java 2.9.0. I am afraid we might not be able to fix this issue in older release versions. Can you please try using Aspose.Pdf for Java 2.9.0 and in case you encounter any problem, please feel free to contact. We apologize for your inconvenience.