Error

I am using print when expression in my report.............

the static text should not be shown.. when that condition occurs.........

<printWhenExpression><![CDATA[(($F{participantName}!=null)?$V{CommitteeGroup_COUNT}:0)!=0]]></printWhenExpression>

where particpant name is a field

<field name="participantName" class="java.lang.String">

<fieldDescription><![CDATA[participantName]]></fieldDescription>

</field>

 

its working fine in ireports.............. but not when i am manually compiling the .jrxml file......... i am getting the following exceptionnet.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:

 

 

1. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getValue()):0)!=0); //$JR_EXPR_ID=13$

<---------------------------------------------------------------------------------------------------------------------------->

2. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getValue()):0)!=0); //$JR_EXPR_ID=14$

<---------------------------------------------------------------------------------------------------------------------------->

3. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getValue()):0)==0); //$JR_EXPR_ID=25$

<---------------------------------------------------------------------------------------------------------------------------->

4. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getOldValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getOldValue()):0)!=0); //$JR_EXPR_ID=13$

<---------------------------------------------------------------------------------------------------------------------------------->

5. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getOldValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getOldValue()):0)!=0); //$JR_EXPR_ID=14$

<---------------------------------------------------------------------------------------------------------------------------------->

6. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getOldValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getOldValue()):0)==0); //$JR_EXPR_ID=25$

<---------------------------------------------------------------------------------------------------------------------------------->

7. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getEstimatedValue()):0)!=0); //$JR_EXPR_ID=13$

<------------------------------------------------------------------------------------------------------------------------------------->

8. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getEstimatedValue()):0)!=0); //$JR_EXPR_ID=14$

<------------------------------------------------------------------------------------------------------------------------------------->

9. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getEstimatedValue()):0)==0); //$JR_EXPR_ID=25$

 

mkhan523's picture
209
Joined: Feb 1 2011 - 4:08am
Last seen: 12 years 7 months ago

I am also facing the above error. Did you get the solution of the problem?

rohit_chawla36 - 9 years 1 month ago

Facing the same error too.
The error is raised only when I deploy the report into a grails application running on tomcat server, in development environment works fine.

sct999.1 - 8 years 3 months ago

0 Answers:

No answers yet
Feedback
randomness