5
目前我正在使用iReport进行设计的第一次报告。在某些情况下,jasper会陷入某种无限循环/递归调用中。 Jasper的日志重复如下:如何调试jasper报告?
[...]
12-04-10 10:29:59,222 DEBUG s.engine.fill.JRVerticalFiller|Fill 1207280802: page footer
12-04-10 10:29:59,222 DEBUG ports.engine.fill.JRBaseFiller|Fill 1207280802: adding page 38849
12-04-10 10:29:59,222 DEBUG ts.engine.fill.JRFillSubreport|Fill 1207280802: resuming 849817670
12-04-10 10:29:59,222 DEBUG e.fill.JRThreadSubreportRunner|Fill 849817670: notifying to continue
12-04-10 10:29:59,222 DEBUG e.fill.JRThreadSubreportRunner|Fill 849817670: waiting for fill result
12-04-10 10:29:59,222 DEBUG e.fill.JRThreadSubreportRunner|Fill 849817670: notified to continue
12-04-10 10:29:59,222 DEBUG ports.engine.fill.JRBaseFiller|Fill 849817670: suspeding subreport runner
12-04-10 10:29:59,222 DEBUG e.fill.JRThreadSubreportRunner|Fill 849817670: notifying on suspend
12-04-10 10:29:59,222 DEBUG e.fill.JRThreadSubreportRunner|Fill 849817670: waiting to continue
12-04-10 10:29:59,222 DEBUG e.fill.JRThreadSubreportRunner|Fill 849817670: notified of fill result
12-04-10 10:29:59,222 DEBUG ts.engine.fill.JRFillSubreport|Fill 1207280802: subreport 849817670 to continue
[...]
该序列被重复记录相同的填充ID。我在解释这些调试日志时遇到困难。除了解决具体问题,我对调试Jasper报告的策略感兴趣。那么,你如何调试报告?
你说的是'iReport'调试吗? – 2012-04-10 14:30:48
您可以尝试使用Java应用程序测试您的报告(例如,您可以使用JasperReports API)。您可以下载JR API的源代码,以便您可以轻松地调试此类应用程序。 – 2012-04-10 14:32:36
@Alex K#1:不,我想用几个子报表调试jasper报告。 #2:那么,我已经在使用sources和eclipse来浏览代码,但我想知道是否有更好的选择 – GLA 2012-04-10 14:50:02