当我使用jasper report运行项目时,它显示以下提到的异常。
谁能知道为什么?
我添加的依赖项是jasperreport 5.6.0,请提及是我尝试了其新版本6.x.x所需的任何其他依赖项,它也不能解决我的问题。任何帮助将是可贵的...
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.view.XmlViewResolver#0' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PrintCashBookPdf' defined in ServletContext resource [/WEB-INF/JasperReport-View.xml]: Initialization of bean failed; nested exception is org.springframework.context.ApplicationContextException: Could not parse JasperReports report from ServletContext resource [/reports/CashBook1.jrxml]; nested exception is net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. Incompatible conditional operand types double and String
value = (((java.lang.Double)variable_granddebitsum.getValue())>((java.lang.Double)variable_grandcreditsum.getValue())?(((java.lang.Double)variable_granddebitsum.getValue())-((java.lang.Double)variable_grandcreditsum.getValue())):""); //$JR_EXPR_ID=25$
<------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------>
2. Incompatible conditional operand types double and String
value = (((java.lang.Double)variable_granddebitsum.getValue())<((java.lang.Double)variable_grandcreditsum.getValue())?(((java.lang.Double)variable_grandcreditsum.getValue())-((java.lang.Double)variable_granddebitsum.getValue())):""); //$JR_EXPR_ID=26$
<------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------>
3. Incompatible conditional operand types double and String
value = (((java.lang.Double)variable_grandreceiptsum.getValue())>((java.lang.Double)variable_grandpaymentsum.getValue())?(((java.lang.Double)variable_grandreceiptsum.getValue())-((java.lang.Double)variable_grandpaymentsum.getValue())):""); //$JR_EXPR_ID=27$
<------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------>