error sum Double

By: Dejan - dnikolov
error sum Double
2002-10-01 04:34

How to solve this

<field name="PLATA" class="java.lang.Double" />
<field name="OTEZ_IZNOS" class="java.lang.Double" />
<field name="FUNKC" class="java.lang.Double" />
 .
 .
 .
 .
<textField isBlankWhenNull="true" pattern="###,###,##0.00" >
<reportElement x="370" y="70" width="50" height="15"/>
<textElement textAlignment="Right">
<font reportFont="kirilica" size="8" />
</textElement>
<textFieldExpression class="java.lang.Double">
new Double($F{PLATA}.doubleValue()+$F{OTEZ_IZNOS}.doubleValue()+$F{FUNKC}.doubleValue())
</textFieldExpression>
</textField>


dori.jasper.engine.JRException: Errors were encountered when compiling report de
sign:
IsplatnaLista.java:379: Invalid cast from java.lang.Double to java.lang.String.
value = (java.lang.String)(((java.lang.Double)field_FUNKC.getVal
ue()));
^
IsplatnaLista.java:837: Invalid cast from java.lang.Double to java.lang.String.
value = (java.lang.String)(((java.lang.Double)field_FUNKC.getOld
Value()));
^
IsplatnaLista.java:1295: Invalid cast from java.lang.Double to java.lang.String.

value = (java.lang.String)(((java.lang.Double)field_FUNKC.getVal
ue()));
^
Note: IsplatnaLista.java uses or overrides a deprecated API. Recompile with "-d
eprecation" for details.
3 errors, 1 warning



By: Teodor Danciu - teodord
RE: error sum Double
2002-10-15 14:33

Hi,

There seems to be no problem with your text field.

Make sure you are really compiling the file that you
edit and not another.

I hope this helps.
Teodor
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet
Feedback
randomness