java 调用jasperreport生成Pdf报表,目前String类型的字段可以正常显示。
但是我只要加java.math.BigDecimal类型,就会抛出异常,说是系统找不到jrxml文件了。有没有高手遇到过这个问题,求解答!异常信息:net.sf.jasp...
但是我只要加java.math.BigDecimal类型,就会抛出异常,说是系统找不到jrxml文件了。有没有高手遇到过这个问题,求解答!
异常信息:
net.sf.jasperreports.engine.JRException: Error loading byte data : E:\yjf\myjasperreports\Simple_Report_1320030441819_889420.class
at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:376)
at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits(JRAbstractClassCompiler.java:69)
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:188)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:148)
at com.report.test.ReportTest.main(ReportTest.java:45)
Caused by: java.io.FileNotFoundException: E:\yjf\myjasperreports\Simple_Report_1320030441819_889420.class (系统找不到指定的文件。)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:362)
... 5 more 展开
异常信息:
net.sf.jasperreports.engine.JRException: Error loading byte data : E:\yjf\myjasperreports\Simple_Report_1320030441819_889420.class
at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:376)
at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits(JRAbstractClassCompiler.java:69)
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:188)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:148)
at com.report.test.ReportTest.main(ReportTest.java:45)
Caused by: java.io.FileNotFoundException: E:\yjf\myjasperreports\Simple_Report_1320030441819_889420.class (系统找不到指定的文件。)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:362)
... 5 more 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询