开发者

iReport: getting "Incompatible java.math.BigDecimal value assigned to parameter" exception

开发者 https://www.devze.com 2023-01-11 22:36 出处:网络
I am developing report containing sub report using iReport and i am passing two external parameters in master report: the CurrWeek and CurrYear parameters. I\'m passing the same parameters to the subr

I am developing report containing sub report using iReport and i am passing two external parameters in master report: the CurrWeek and CurrYear parameters. I'm passing the same parameters to the subreport.

In both reports I declared parameters as BigDecimal. When i run the report it shows the error shown bellow:

   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:开发者_如何学JAVA 
     Incompatible java.math.BigDecimal value assigned to parameter 
     CurrWeek in the WeeklyReportForOtherWeek dataset.


This error mean that you pass wrong type from dataset to parameter.

Look at the place where you are creating (filling) dataset.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号