Ok here is my setup.
Main report containing a subreport. Subreport is a crosstab report. One of the fields in the crosstab has the possibility of being very long, but this needs to be this way. When the long field isn't long, the report renders fine. If it contains a lot of text, jasper bombs out complaining about infinite loop over 3 pages.
I feel like this is a bug, but am wondering if I should be going at this report in a different manner to avoid this issue. Is there perhaps another control I can use to display dynamic columns like a crosstab, with support for longer text as well?
Thanks, if any other info about my reports would help, feel free to ask and I'll give ya what I can.
The error message is:
ERROR JRFillSubreport - Fill 1: exception net.sf.jasperreports.engine.JRRuntimeException: Crosstab has not printed anything on 3 consecutive pages, likely infinite loop
I had the same issue when I was using crosstab repors as some of my cells were 1.5K+ characters... I outlined the way I did it here.
Basically I used a sub dataset rather then a sub report. Also the most important thing for me was the height and width values I set on the "crosstabCell" and "reportElement" elements.
I found I had to hack the XML a bit to get it going but in the end it's all working.
Hope it helps :)