Report with complex subreport structure: data not always showing


I have a report (Jasper Report 4.0.2 but tried with 4.7.1 too) with some subreport inside of it, and another subreport inside each of these ones too. The report ran quite good but recently we saw a problem:

the problem I encounter is that sometimes the FIRST data object in the page rendered by a subreport is blank, it doesn't show any data even if the data is there.

The fact that it was the first element in the band made me thought that it was a problem related to splitting, but I tried every possible combination of split type without success.

I thought it was a problem related to the way subreport deal with threads suspending each other when I saw several fill exception in my stack trace like this one


at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(
at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.suspend(
at net.sf.jasperreports.engine.fill.JRBaseFiller.suspendSubreportRunner(
at net.sf.jasperreports.engine.fill.JRVerticalFiller.addPage(
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBreak(
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBreak(
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(
at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(
2012-10-24 15:55:18,645 [subOrariOdg.jrxml subreport filler] ERROR net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - Fill 28204380: exception


So I tried to switch from JRThreadSubreportRunner to JRThreadContinuationSubreportRunner (using javaflow then) to see if this could solve my problem:

the result was that no more errors where catched by the app but the rendering error was still there! Randomly (for example in the page 4, 16, 22) the first data object being rendered in the band was showing no data

So it seems the stack trace errors are unrelated from the event that I see occurring in the report. 

I tried to read almost every web page regarding the argumnent....without help.

francesco.giusto's picture
Joined: Oct 24 2012 - 2:08am
Last seen: 10 years 1 month ago

0 Answers:

No answers yet