0

Task list Export to pdf is not working, it creates blank file

jpos netmagic 2 months ago 0

Hi All,

We are using mycollab 6.0.0 community version and found that we are unable to generate the report in pdf, csv and excel format. File is getting created with zero output.

Below is the exception received while exporting the task list:

12:50:37,846 INFO c.m.r.SimpleReportTemplateExecutor:37 - Export document: PDF
12:50:37,944 INFO c.m.r.SimpleReportTemplateExecutor:61 - Fill report 1 items and criteria com.mycollab.module.project.domain.criteria.ProjectTicketSearchCriteria@417b4b59
12:50:45,140 ERROR c.m.r.ReportTemplateExecutor:121 - Error report
net.sf.dynamicreports.report.exception.DRException: net.sf.jasperreports.engine.JRException: java.lang.IllegalStateException: PropertyUtils.getProperty(currentItem, fieldName) must not be null
at net.sf.dynamicreports.jasper.builder.JasperReportBuilder.toJasperPrint(JasperReportBuilder.java:331)
at net.sf.dynamicreports.jasper.builder.JasperReportBuilder.export(JasperReportBuilder.java:599)
at net.sf.dynamicreports.jasper.builder.JasperReportBuilder.toPdf(JasperReportBuilder.java:536)
at net.sf.dynamicreports.jasper.builder.JasperReportBuilder.toPdf(JasperReportBuilder.java:532)
at com.mycollab.reporting.PdfReportBuilder.toStream(PdfReportBuilder.kt:47)
at com.mycollab.reporting.SimpleReportTemplateExecutor.outputReport(SimpleReportTemplateExecutor.kt:48)
at com.mycollab.reporting.ReportTemplateExecutor$exportStream$1.run(ReportTemplateExecutor.kt:119)
at java.lang.Thread.run(Unknown Source)
Caused by: net.sf.jasperreports.engine.JRException: java.lang.IllegalStateException: PropertyUtils.getProperty(currentItem, fieldName) must not be null
at com.mycollab.reporting.GroupIteratorDataSource.getFieldValue(GroupIteratorDataSource.kt:72)
at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:1489)
at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1390)
at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1366)
at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1173)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:97)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:609)

Awaiting for your input.