[OpenVPMS Developers] [JIRA] (REP-18) NullPointerException thrown if a Jasperreport doesn't have a summary band
NullPointerException thrown if a Jasperreport doesn't have a summary band -------------------------------------------------------------------------
Key: REP-18 URL: https://openvpms.atlassian.net/browse/REP-18 Project: Reporting Framework Issue Type: Bug Affects Versions: 1.5 Reporter: Tim Anderson Assignee: Tim Anderson Priority: Minor Fix For: 1.5
From a 1.6-beta-1 error report: {noformat} java.lang.NullPointerException at org.openvpms.report.jasper.JasperTemplateLoader.compileSubReports(JasperTemplateLoader.java:171) at org.openvpms.report.jasper.JasperTemplateLoader.init(JasperTemplateLoader.java:152) at org.openvpms.report.jasper.JasperTemplateLoader.(JasperTemplateLoader.java:89) at org.openvpms.report.jasper.AbstractTemplatedJasperIMReport.(AbstractTemplatedJasperIMReport.java:64) at org.openvpms.report.jasper.TemplatedJasperIMObjectReport.(TemplatedJasperIMObjectReport.java:53) at org.openvpms.report.ReportFactory.createReport(ReportFactory.java:58) at org.openvpms.web.app.reporting.SQLReportPrinter.(SQLReportPrinter.java:89) {noformat}
This is occurring as the report doesn't contain a Summary band. The workaround is to add a Summary band with 0 height.
-- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://openvpms.atlassian.net/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf