Working with Jaspersoft version 6.4.0. I'm using the following expression:
The Field Price1 is a java.math.BigDecimal. Fresh install of Jaspersoft 6.3.1.
I input the expression and the warning at the top states:
The current expression is not valid. Please verify it!
The part underlined as being incorrect is the 2 within the .setScale(2)
When hovering over the 2 the hover text displays: For input string: ""
Makes it difficult to determine why an expression is failing and whether or not the expression will work as there are incorrect error messages.