In the .jrxml file, I have a textField with an expression : <textField> <reportElement x="580" y="40" width="222" height="20" uuid="d17eb83e-cdea-42e4-9ed2-dab90731866d"/> <textFieldExpression><![CDATA[iF($F{total_items} != 0,$F{total_items_detected} / $F{total_items},0)]]></textFieldExpression> </textField> When I run the report in JasperStudio it previews but when I run the same report in my web app, I get this error: Error evaluating expression : Source text : IF($F{total_items} != 0,$F{total_items_detected} / $F{total_items},0)