Jump to content
Changes to the Jaspersoft community edition download ×


Recommended Posts

By: Alejandro Alliana - aalliana


2003-03-21 05:56

I'm sorry if this topic was previously posted:


I'm trying to print a report that has a column that is a calculated field using a jsp page, ie:


select descripcion, count(1) as cantidad from coincidencias inner join estados on (coincidencias.estado = estados.id_estado) group by descripcion


I get the following error: java.lang.ClassCastException

at ConsolidadoEstados.evaluate(ConsolidadoEstados.java:129)

at dori.jasper.engine.fill.JRCalculator.evaluate(JRCalculator.java:678)

at dori.jasper.engine.fill.JRCalculator.evaluate(JRCalculator.java:614)

at dori.jasper.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:342)

at dori.jasper.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:329)

at dori.jasper.engine.fill.JRFillBand.evaluate(JRFillBand.java:360)


java -version prints:

java -version

java version "1.4.1_02"

Java 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)

Java HotSpot Client VM (build 1.4.1_02-b06, mixed mode)










By: Alejandro Alliana - aalliana

RE: java.lang.ClassCastException

2003-03-21 07:08

Found a solution.


Aparently the calculated field is of type Long, not Integer. I was using postgresql.



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