Project: talenddataquality
Issue TDQ-10754: run Column Content Comparison analysis successfully, but run report failed, show exceptions
- create a Column Content Comparison analysis - select a PK as the column - select the same column in ColumnSetA and ColumnSetB - run analysis successfully - run report failed, got the following exception {code} java.lang.NullPointerException net.sf.jasperreports.engine.JRAbstractExporter.setJasperPrint(JRAbstractExporter.java:862) net.sf.jasperreports.engine.JRAbstractExporter.setInput(JRAbstractExporter.java:930) net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:293) org.talend.dataquality.reporting.JasperReportBuilder.run(JasperReportBuilder.java:300) org.talend.dataquality.reporting.engine.ReportDocGenerator.generateReport(ReportDocGenerator.java:672) org.talend.dataquality.reporting.engine.ReportDocGenerator.generateDoc(ReportDocGenerator.java:406) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator.generateDocInternal(LocalReportDocGenerator.java:172) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator.access$1(LocalReportDocGenerator.java:171) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator$2.run(LocalReportDocGenerator.java:160) org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:93) org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:256) org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3210) org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:1977) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator.generateDoc(LocalReportDocGenerator.java:165) org.talend.dataquality.reporting.engine.ReportDocGenerator.generate(ReportDocGenerator.java:287) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator.generate(LocalReportDocGenerator.java:130) org.talend.dataprofiler.core.tdq.ui.action.GenerateReportFileAction$2.run(GenerateReportFileAction.java:336) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :	Source text : $V{tableNameList}.get($V{COLUMN_COUNT}-1) net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:203) net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:591) net.sf.jasperreports.charts.fill.JRFillCategorySeries.evaluate(JRFillCategorySeries.java:149) net.sf.jasperreports.charts.fill.JRFillCategoryDataset.customEvaluate(JRFillCategoryDataset.java:115) net.sf.jasperreports.engine.fill.JRFillElementDataset.evaluate(JRFillElementDataset.java:148) net.sf.jasperreports.engine.fill.JRCalculator.calculateVariables(JRCalculator.java:160) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:765) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:308) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:155) net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:909) net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:822) net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:61) net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:446) net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:849) org.talend.dataquality.reporting.JasperReportBuilder.createSubReport(JasperReportBuilder.java:433) org.talend.dataquality.reporting.JasperReportBuilder.run(JasperReportBuilder.java:242) org.talend.dataquality.reporting.engine.ReportDocGenerator.generateReport(ReportDocGenerator.java:672) org.talend.dataquality.reporting.engine.ReportDocGenerator.generateDoc(ReportDocGenerator.java:406) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator.generateDocInternal(LocalReportDocGenerator.java:172) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator.access$1(LocalReportDocGenerator.java:171) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator$2.run(LocalReportDocGenerator.java:160) org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:93) org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:256) org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3210) org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:1977) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator.generateDoc(LocalReportDocGenerator.java:165) org.talend.dataquality.reporting.engine.ReportDocGenerator.generate(ReportDocGenerator.java:287) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator.generate(LocalReportDocGenerator.java:130) org.talend.dataprofiler.core.tdq.ui.action.GenerateReportFileAction$2.run(GenerateReportFileAction.java:336) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 java.util.ArrayList.rangeCheck(ArrayList.java:653) java.util.ArrayList.get(ArrayList.java:429) b07_match_basic_1438248718130_500771.evaluate(b07_match_basic_1438248718130_500771:414) net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:190)	... 29 more {code}
Story points: 2