2001 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 By: Yong Wang - wymz ClassCastException: java.math.BigDecimal 2002-11-19 14:45Hi 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now