mkhan523 Posted March 8, 2011 Share Posted March 8, 2011 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 intvalue = (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 intvalue = (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 intvalue = (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 intvalue = (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 intvalue = (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 intvalue = (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 intvalue = (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 intvalue = (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 intvalue = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getEstimatedValue()):0)==0); //$JR_EXPR_ID=25$ Link to comment Share on other sites More sharing options...
rohit_chawla36 Posted August 12, 2014 Share Posted August 12, 2014 I am also facing the above error. Did you get the solution of the problem? Link to comment Share on other sites More sharing options...
sct999.1 Posted May 28, 2015 Share Posted May 28, 2015 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now