java.lang.StackOverflowError on saving as pdf

Posted by: srinivas.varma on 23 July 2019, 4:50 am EST

    • Post Options:
    • Link

    Posted 23 July 2019, 4:50 am EST

    Hi .

    i have excel file where i am trying to save it as PDF , but during the process i am getting below error

    java.lang.StackOverflowError: null
    	at java.lang.String.equals(Unknown Source)
    	at com.grapecity.documents.excel.drawing.y.a(Unknown Source)
    

    i am also attaching the excel file for your reference .

  • Posted 23 July 2019, 5:04 am EST

    Sorry not able to attach the excel file, as its not allowing me.

  • Posted 23 July 2019, 5:12 am EST

    this is My Code :

    Workbook finalOut = null;
    		String tempFile ="E:\\ExcelFile.xlsx";
    		String outFile ="excelPdf.pdf";
    		try {
    			finalOut = getWorkbook(new FileInputStream((tempFile)));
    			if (finalOut != null) {
    				finalOut.save(new FileOutputStream(outFile), SaveFileFormat.Pdf);
    			}
    		} catch (Exception e) {
    			System.err.println("Error  => {} "+ e.toString());
    		}
    

    FYI :

    Excel file has conditional formats , cell styles …

  • Posted 31 July 2019, 2:07 am EST

    Hello,

    Apologies for the delayed response first of all. We missed out on this thread.

    However, with the help of Excel file shared in this https://www.grapecity.com/forums/documents-excel-java/javalangstackoverflowerror_1, we could replicate the issue and hence we have escalated the same to the concerned team for the fix.

    We will update you as soon as we hear anything from our concerned team.

    Tracking id for your issue is #DOCXLS-1315

    Thanks,

    Reeva

  • Posted 6 August 2019, 6:28 am EST

    Hello,

    Your issue has been fixed by our developers and it will be out in the next hotfix build.

    Thanks,

    Reeva

  • Posted 8 August 2019, 11:43 pm EST

    Hello,

    Please test your case against the latest build v2.2.3 and let us know if it solves your issue. Latest build can be downloaded from this link:-

    https://search.maven.org/remotecontent?filepath=com/grapecity/documents/gcexcel/2.2.3/gcexcel-2.2.3.jar

    Hope it helps.

    Thanks,

    Reeva

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels