Recommand · November 24, 2021 0

jasper evaluating expression brings an error

I wrote a jasper file. While compiling

<textFieldExpression><![CDATA[new DecimalFormat("#0.00").format($F{Leistung_Wert})+" " +$P{Currency}]]></textFieldExpression>

there is an error which I cannot declare. The funny thing is that I saved the original jasper-file as really working. If I just recompile the jrxml-file to jasper (without any changes) it suddenly does not work anymore. There i te following error:

net.sf.jasperreports.engine.JRException:
net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error
evaluating expression for source text: new
DecimalFormat("#0.00").format($F{Leistung_Wert})+" " +$P{Currency}