ClassCastException: java.math.BigDecimal

By: Yong Wang - wymz
ClassCastException: java.math.BigDecimal
2002-11-19 14:45
Hi I am getting this cast exception at runtime:

Caught exception: Error evaluating expression estimated value : variable_StatusGroup_TOTAL
java.lang.ClassCastException: java.math.BigDecimal at jsinventory2grp.evaluateEstimated(jsinventory2grp.java:552) at dori.jasper.engine.fill.JRCalculator.evaluateEstimated(JRCalculator.java:633) at dori.jasper.engine.fill.JRCalculator.estimateVariables(JRCalculator.java
...
here is the related portion of my jasper XML:
...
<field name="wholesale_price" class="java.lang.Double"/>
...
<variable name="StatusGroup_TOTAL" resetType="Group" resetGroup="StatusGroup" c
lass="java.lang.Double" calculation="Sum">
<variableExpression>$F{wholesale_price}</variableExpression>
</variable>
...

I would appreciate if someone can tell me what I am doing wrong. thanks.
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