日期:2014-05-18  浏览次数:20584 次

jsp 调用jasper 报的错 是什么意思?
cannot assign instance of net.sf.jasperreports.engine.base.JRBaseStaticText to field net.sf.jasperreports.engine.base.JRBaseLineBox.boxContainer of type net.sf.jasperreports.engine.JRBoxContainer in instance of net.sf.jasperreports.engine.base.JRBaseLineBox


jsp调用jasper 报的错 是什么意思?

------解决方案--------------------
你手写的jrxml?还是ireport生成的?找下staticText里是不是有field表达式
------解决方案--------------------
net.sf.jasperreports.engine.base.JRBaseLineBox.boxContainer
是不是这个包下的属性用错了哦,用下面这个包里的替换试试
net.sf.jasperreports.engine.JRBoxContainer 



呵呵,没用过jasper