Jump to content
We've recently updated our Privacy Statement, available here ×

ClassCastException: java.math.BigDecimal


Recommended Posts

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.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...