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(
at dori.jasper.engine.fill.JRCalculator.evaluate(
at dori.jasper.engine.fill.JRCalculator.evaluate(
at dori.jasper.engine.fill.JRFillTextField.evaluateText(
at dori.jasper.engine.fill.JRFillTextField.evaluate(
at dori.jasper.engine.fill.JRFillBand.evaluate(

java -version prints:
java -version
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) 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.

2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet