2017-05-19 32 views
1

我们发现在将tomcat从8.0.30升级到8.0.43时,JasperReports会引发以下错误。为什么报告生成器在升级到tomcat 8.0.43时发生异常

JasperCompileManager.compileReport(jrxmlFilePathname); 
---------------------^^^^^^^^^^^^^ 

Errors were encountered when compiling report expressions class file: 
1. java.lang.Double cannot be resolved to a type 
      value = ((java.lang.Double)field_amount.getValue()); //$JR_EXPR_ID=15$ 
         <--------------> 

此错误降级后的tomcat去8.0.30

回答

1

升级到6.3.1 JasperReports的,老版本有相关与ECJ 4.6.0或更新报告汇编的错误。

Tomcat 8.0.43附带ECJ 4.6.1,而Tomcat 8.0.30附带ECJ 4.4.2。

或者(如果您不想升级JasperReports),请在您的Web应用程序的WEB-INF/lib下包含ecj-4.3.1.jar