I'am noticing this StackOverflow Error once in a while. Unable to know the real cause. It is getting hard to replicate as well. I'am using JasperReports Javaflow 3.7.2, in a Java Service Wrapper, called from Tomcat.
Any help will be appreciated. Attached is the report template and its subreport. Also attached is a sample pdf report.
Exception is thrown at :
jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, session.connection()); // Hibernate Session is used.
I'am using 3 subreports, where one of it has an expression of the form
What would be relevant to see are stacktrace lines just before the HashMap loop starts, to see where the initial call to hashCode() is made from.
In any case, the problem is caused by the fact that JasperReports put the parameters map in itself, i.e. parametersMap.put(key, parametersMap). This causes the loop when parametersMap.hashCode() is called. Log this as a bug and we'll see what we can do about it.