我通过替换新查询sql从旧模板编辑查询。
错误消息如下:
Compiling to file... C:\ECLIPSE\workspace\EIS-HR\Web-inf\hradmin\HR_EIS1.jasper
Active top component: null C:\ECLIPSE\workspace\EIS-HR\Web-inf\hradmin\HR_EIS1.jrxml
net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :
1. Field not found : DM_DEPT_DESC 2. Field not found : SM_GENDER
at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:271)
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:153)
at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:512)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Compilation running time: 231
找不到字段,我的xml文件出错了。
答案 0 :(得分:0)
您的报告模板似乎正在查找在查询结果中找不到的两个字段(DM_DEPT_DESC和SM_GENDER)。