Jasper reports iReport:getting";分配给参数“的java.math.BigDecimal值不兼容”;例外

Jasper reports iReport:getting";分配给参数“的java.math.BigDecimal值不兼容”;例外,jasper-reports,ireport,Jasper Reports,Ireport,我正在使用iReport开发包含子报表的报表,并在主报表中传递两个外部参数:CurrWeek和CurrYear参数。我正在将相同的参数传递给子报表 在这两个报告中,我都将参数声明为BigDecimal。当我运行报告时,它会显示如下所示的错误: Error filling print... net.sf.jasperreports.engine.JRException: Incompatible java.math.BigDecimal value assigned

我正在使用
iReport
开发包含子报表的报表,并在主报表中传递两个外部参数:
CurrWeek
CurrYear
参数。我正在将相同的参数传递给子报表

在这两个报告中,我都将参数声明为
BigDecimal
。当我运行报告时,它会显示如下所示的错误:

   Error filling print...
        net.sf.jasperreports.engine.JRException:
     Incompatible java.math.BigDecimal value assigned to parameter 
    CurrWeek in the WeeklyReportForOtherWeek dataset. 
     net.sf.jasperreports.engine.JRRuntimeException: 
     net.sf.jasperreports.engine.JRException: 
     Incompatible java.math.BigDecimal value assigned to parameter 
     CurrWeek in the WeeklyReportForOtherWeek dataset.

此错误意味着您将错误的类型从数据集传递到参数

查看您正在创建(填充)数据集的位置