I try to create a Jasper Print with an ResultSet to build an PDF Report with the print. The Problem is, that the creation of the Jasper Print is very slow. The ResultSet is a Table with about 5000 Rows. It takes more than 2 Minutes to create the Print.
I found this Solution: JasperReports fillReport too slow and resource consuming
But it does not work for me. The different is, that i use a dynamic report.
JasperPrint jasperPrint = DynamicJasperHelper.generateJasperPrint(dynamicReport, new ClassicLayoutManager(), resultSet);
EDIT: The critical Part is in the fillReport Method in the JRVerticalFiller class.
if (this.next()) {
this.fillReportStart();
while(this.next()) {
this.fillReportContent();
}
this.fillReportEnd();
}
the fillReportContent Method gets called again and again for almost two minutes.