2010-08-13 158 views
1

我正在开发包含使用iReport的子报告的报告,我在主报告中传递两个外部参数:CurrWeekCurrYear参数。我将相同的参数传递给子报表。iReport:获取“不兼容的java.math.BigDecimal值分配给参数”例外

在这两份报告中,我声明参数为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. 

回答

0

此错误表示您将错误类型从数据集传递给参数。

看看你正在创建(填充)数据集的地方。