By: Alejandro Alliana - aalliana
java.lang.ClassCastException
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(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)
TIA
aa
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.
aa
java.lang.ClassCastException
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(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)
TIA
aa
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.
aa
0 Answers:
No answers yet