2017-05-19 35 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