Error manulal tagging table for pdf export

    at java.util.Stack.peek(
    at net.sf.jasperreports.engine.export.JRPdfExporterTagHelper.startText(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(

manulay tagging table for pdf export for 508 compliance is giving the above error/reason

In Jasper studio I have added the Table start ,table row start and end rage, table header start and end tag and table details full

please advise what I am missing 


archana.bohini's picture
Joined: Dec 3 2018 - 6:20pm
Last seen: 2 years 3 months ago

I get this same exception with <tr> tags.

    at java.util.Stack.peek(
    at net.sf.jasperreports.engine.export.JRPdfExporterTagHelper.createTrStartTag(
    at net.sf.jasperreports.engine.export.JRPdfExporterTagHelper.createStartTags(
    at net.sf.jasperreports.engine.export.JRPdfExporterTagHelper.startElement(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(

Did you ever find a reason or solution for this?

reino.nikki - 2 years 9 months ago

1 Answer:

In my case, the problem was that I had the property net.sf.jasperreports.export.pdf.tag.table=end in an element (the last cell of  the last row) that repeated for every record in the data I was using to populate the template.

I needed to put the property in an element after the repeating portion of the table. 

I found the solution here: Stackoverflow: the-pdf-report-with-manual-tagging-throws-emptystackexception

reino.nikki's picture
Joined: Apr 2 2020 - 11:42pm
Last seen: 6 months 2 weeks ago