使用iReport-0.3.2做了个静态报表测试,编译的时候出现以下错误:
Compiling to file... \test.jasper -> \test1.java
Errors compiling \test.jasper!
dori.jasper.engine.JRException: Report design not valid :
1. Field not found : Field
at dori.jasper.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:111)
at dori.jasper.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:137)
at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:138)
at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:126)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:321)
at java.lang.Thread.run(Unknown Source)
Compilation running time : 100 Filling report... Error filling print...java.io.FileNotFoundException: \test.jasper
at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:117)
at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:291)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:397)
at java.lang.Thread.run(Unknown Source) NESTED BY :java.io.FileNotFoundException: \test.jasper
at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:117)
at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:291)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:397)
at java.lang.Thread.run(Unknown Source) NESTED BY :dori.jasper.engine.JRException: \test.jasper
at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:117)
at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:291)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:397)
at java.lang.Thread.run(Unknown Source) Caused by: java.io.FileNotFoundException: \test.jasper
... 4 more Print not filled. Try to use an EmptyDataSource...!
没有生成.jasper文件? 哪里配置不对了?