Olá amigo, por favor tem como me ajudar estou com um relatorio e tenho um String e um BigDecimal na hora de eu convertes faco assim:
new Double( $P{PERCENTUAL}.doubleValue() * $V{VALORCOMPRAMOVIMENTACAO_SUM}.doubleValue() )
o primeiro campo que é o percentual é String e o outro é BigDecimal, o BigDecimal na boa é convertido mas da este erro:
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. The method doubleValue() is undefined for the type String value = (java.lang.Double)(new Double( ((java.lang.String)parameter_PERCENTUAL.getValue()).doubleValue() * ((java.math.BigDecimal)variable_VALORCOMPRAMOVIMENTACAO_SUM.getValue()).doubleValue() )); <---------> 2. The method doubleValue() is undefined for the type String value = (java.lang.Double)(new Double( ((java.lang.String)parameter_PERCENTUAL.getValue()).doubleValue() * ((java.math.BigDecimal)variable_VALORCOMPRAMOVIMENTACAO_SUM.getOldValue()).doubleValue() )); <--------->
como resolvo isso. Grato