【发布时间】:2012-04-10 14:00:29
【问题描述】:
目前我正在使用 iReport 设计我的第一份报告。在某些情况下,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调试吗? -
您可以尝试使用 Java 应用程序测试您的报告(例如,您可以使用 JasperReports API)。您可以下载JR API的源代码,以便您轻松调试此类应用程序
-
@Alex K #1:不,我想调试一个包含多个子报告的 jasper 报告。 #2:嗯,我已经在使用源代码和 eclipse 来逐步执行代码,但我想知道是否有更好的选择
-
您好,我正在使用 Jasper 和 Odoo 7(我没有安装它们,我只使用它们)我用 iReport 编辑我的 jasper 报告 jasper/iReport 怎么能更详细?我只收到一条不准确的消息:[1]错误填写报告你能帮我吗?
标签: debugging jasper-reports ireport