Jump to content
Changes to the Jaspersoft community edition download ×

type error! Who can help me?


2006 IR Open Dicussion

Recommended Posts

By: Mr.Chen - cq1982

type error! Who can help me?

2006-06-08 03:58

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. Cannot cast from BigDecimal to String value = (java.lang.String)(((java.math.BigDecimal)field_ID.getValue())); <-------------------------------------------------------------> 2. Cannot cast from BigDecimal to String value = (java.lang.String)(((java.math.BigDecimal)field_ID.getOldValue())); <----------------------------------------------------------------> 3. Cannot cast from BigDecimal to String value = (java.lang.String)(((java.math.BigDecimal)field_ID.getValue())); <-------------------------------------------------------------> 3 errors at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:104) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:477) at java.lang.Thread.run(Unknown Source)

 

i just want to set up a pie chart and i set those three value like this:

1. key expression: $F{ID} ,id is BigDecimal

2. value expression: $V{number} ,also is BigDecimal and test right without the chart.

3. label expression: $F{ID}

 

and also ask how can i make a chart correctly?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...