couetbis Posted March 31, 2009 Share Posted March 31, 2009 Hi,We have an infinite loop in subreport fill. Jasper engine fill report, cancel, fill, cancel, ...Our logs : [DEBUG - net.sf.jasperreports.engine.fill.JRFillSubreport - 30 mars 2009 17:37] Fill 17771338: creating subreport filler[DEBUG - net.sf.jasperreports.engine.fill.JRBaseFiller - 30 mars 2009 17:37] Fill 23630403: created for sous_rapport_transactions_accepteur[DEBUG - net.sf.jasperreports.engine.fill.JRFillSubreport - 30 mars 2009 17:37] Fill 17771338: starting 23630403[DEBUG - net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - 30 mars 2009 17:37] Fill 23630403: starting thread Thread[sous_rapport_transactions_accepteur subreport filler,5,main][DEBUG - net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - 30 mars 2009 17:37] Fill 23630403: waiting for fill result[DEBUG - net.sf.jasperreports.engine.fill.JRBaseFiller - 30 mars 2009 17:37] Fill 23630403: filling report[DEBUG - net.sf.jasperreports.engine.fill.JRVerticalFiller - 30 mars 2009 17:37] Fill 23630403: detail...[DEBUG - net.sf.jasperreports.engine.fill.JRVerticalFiller - 30 mars 2009 17:37] Fill 23630403: detail[DEBUG - net.sf.jasperreports.engine.fill.JRBaseFiller - 30 mars 2009 17:37] Fill 23630403: ended[DEBUG - net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - 30 mars 2009 17:37] Fill 23630403: notifying of completion[DEBUG - net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - 30 mars 2009 17:37] Fill 23630403: notified of fill result[DEBUG - net.sf.jasperreports.engine.fill.JRFillSubreport - 30 mars 2009 17:37] Fill 17771338: subreport 23630403 finished[DEBUG - net.sf.jasperreports.engine.fill.JRVerticalFiller - 30 mars 2009 17:37] Fill 17771338: page footer[DEBUG - net.sf.jasperreports.engine.fill.JRBaseFiller - 30 mars 2009 17:37] Fill 17771338: adding page 93[DEBUG - net.sf.jasperreports.engine.fill.JRVerticalFiller - 30 mars 2009 17:37] Fill 17771338: background[DEBUG - net.sf.jasperreports.engine.fill.JRVerticalFiller - 30 mars 2009 17:37] Fill 17771338: page header[DEBUG - net.sf.jasperreports.engine.fill.JRFillSubreport - 30 mars 2009 17:37] Fill 17771338: cancelling 23630403[DEBUG - net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - 30 mars 2009 17:37] Fill 23630403: notifying to continue on cancel[DEBUG - net.sf.jasperreports.engine.fill.JRFillSubreport - 30 mars 2009 17:37] Fill 17771338: creating subreport filler[DEBUG - net.sf.jasperreports.engine.fill.JRBaseFiller - 30 mars 2009 17:37] Fill 26194122: created for sous_rapport_transactions_accepteur[DEBUG - net.sf.jasperreports.engine.fill.JRFillSubreport - 30 mars 2009 17:37] Fill 17771338: starting 26194122[DEBUG - net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - 30 mars 2009 17:37] Fill 26194122: starting thread Thread[sous_rapport_transactions_accepteur subreport filler,5,main][DEBUG - net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - 30 mars 2009 17:37] Fill 26194122: waiting for fill result[DEBUG - net.sf.jasperreports.engine.fill.JRBaseFiller - 30 mars 2009 17:37] Fill 26194122: filling report[DEBUG - net.sf.jasperreports.engine.fill.JRVerticalFiller - 30 mars 2009 17:37] Fill 26194122: detail...[DEBUG - net.sf.jasperreports.engine.fill.JRVerticalFiller - 30 mars 2009 17:37] Fill 26194122: detail[DEBUG - net.sf.jasperreports.engine.fill.JRBaseFiller - 30 mars 2009 17:37] Fill 26194122: ended[DEBUG - net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - 30 mars 2009 17:37] Fill 26194122: notifying of completion[DEBUG - net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - 30 mars 2009 17:37] Fill 26194122: notified of fill result[DEBUG - net.sf.jasperreports.engine.fill.JRFillSubreport - 30 mars 2009 17:37] Fill 17771338: subreport 26194122 finished[DEBUG - net.sf.jasperreports.engine.fill.JRVerticalFiller - 30 mars 2009 17:37] Fill 17771338: page footer[DEBUG - net.sf.jasperreports.engine.fill.JRBaseFiller - 30 mars 2009 17:37] Fill 17771338: adding page 94[DEBUG - net.sf.jasperreports.engine.fill.JRVerticalFiller - 30 mars 2009 17:37] Fill 17771338: background[DEBUG - net.sf.jasperreports.engine.fill.JRVerticalFiller - 30 mars 2009 17:37] Fill 17771338: page header[DEBUG - net.sf.jasperreports.engine.fill.JRFillSubreport - 30 mars 2009 17:37] Fill 17771338: cancelling 26194122[DEBUG - net.sf.jasperreports.engine.fill.JRThreadSubreportRunner - 30 mars 2009 17:37] Fill 26194122: notifying to continue on cancel[DEBUG - net.sf.jasperreports.engine.fill.JRFillSubreport - 30 mars 2009 17:37] Fill 17771338: creating subreport filler[DEBUG - net.sf.jasperreports.engine.fill.JRBaseFiller - 30 mars 2009 17:37] Fill 154337: created for sous_rapport_transactions_accepteur[DEBUG - net.sf.jasperreports.engine.fill.JRFillSubreport - 30 mars 2009 17:37] Fill 17771338: starting 154337... When we delete totalFooter band, we haven't infinite loop. Any Idea ?Thanks in advance. Link to comment Share on other sites More sharing options...
lucianc Posted March 31, 2009 Share Posted March 31, 2009 The layout of your report generate an infinite loop when filling the report, you'll need to fix the report design to prevent this from happening.Regards,Lucian Link to comment Share on other sites More sharing options...
couetbis Posted April 1, 2009 Author Share Posted April 1, 2009 We have reproduced the problem with a simple example that you find attached. Just give a datasource that implements JRRewindableDataSource.Thanks Link to comment Share on other sites More sharing options...
lucianc Posted April 1, 2009 Share Posted April 1, 2009 What should I use as subreport?At first sight, setting isPrintWhenDetailOverflows="true" for the frame and subreport elements seems strange. You could try to reset these attributes and see whether the issue persists.Regards,Lucian Link to comment Share on other sites More sharing options...
couetbis Posted April 1, 2009 Author Share Posted April 1, 2009 Thanks, problem is resolved with isPrintWhenDetailOverflows="false". Link to comment Share on other sites More sharing options...
jackkilian Posted October 29, 2009 Share Posted October 29, 2009 Hi, can you give me an example when it make sense to implement isPrintWhenDetailOverflows="true" for Frames or SubReport. I think it's risky when you can not ensure or when you implement dynamic reports. regardsjk Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now