Jump to content
We've recently updated our Privacy Statement, available here ×

Errors were encountered when compiling report expressions class file


alanm

Recommended Posts

 

 

Hi

I am using iReports 4.1.1 and JasperServer CE 4.1.0

I have a report which works fine in iReports, but when I upload it to the server and run the report I get:

    java.lang.Exception: 1 - Errors were encountered when compiling report expressions class file:
1. Cannot cast from Timestamp to String
value = (java.lang.String)(((java.sql.Timestamp)field_TRIPDATETIME.getValue())); //$JR_EXPR_ID=50$
<--------------------------------------------------------------------->
2. Cannot cast from Integer to String
value = (java.lang.String)(((java.lang.Integer)variable_TRIPDATETIME_1.getValue())); //$JR_EXPR_ID=51$
<------------------------------------------------------------------------->
3. Cannot cast from Integer to String
value = (java.lang.String)(((java.lang.Integer)variable_SumBefore8am.getValue())); //$JR_EXPR_ID=52$
<----------------------------------------------------------------------->
4. Cannot cast from Integer to String
value = (java.lang.String)(((java.lang.Integer)variable_Sum8am459am.getValue())); //$JR_EXPR_ID=53$
<---------------------------------------------------------------------->
5. Cannot cast from Integer to String
value = (java.lang.String)(((java.lang.Integer)variable_Sum9am4510am.getValue())); //$JR_EXPR_ID=54$
<----------------------------------------------------------------------->
6. Cannot cast from Integer to String
value = (java.lang.String)(((java.lang.Integer)variable_Sum10am4511am.getValue())); //$JR_EXPR_ID=55$
<------------------------------------------------------------------------>
7. Cannot cast from Integer to String
value = (java.lang.String)(((java.lang.Integer)variable_Sum11am4512pm.getValue())); //$JR_EXPR_ID=56$
<------------------------------------------------------------------------>
8. Cannot cast from Integer to String
value = (java.lang.String)(((java.lang.Integer)variable_Sum12pm451pm.getValue())); //$JR_EXPR_ID=57$
<----------------------------------------------------------------------->
9. Cannot cast from Integer to String
value = (java.lang.String)(((java.lang.Integer)variable_Sum1pm452pm.getValue())); //$JR_EXPR_ID=58$
<---------------------------------------------------------------------->
10. Cannot cast from Integer to String
value = (java.lang.String)(((java.lang.Integer)variable_Sum2pm453pm.getValue())); //$JR_EXPR_ID=59$
<---------------------------------------------------------------------->
11. Cannot cast from Integer to String
value = (java.lang.String)(((java.lang.Integer)variable_Sum3pm454pm.getValue())); //$JR_EXPR_ID=60$
<---------------------------------------------------------------------->

 

etc etc

I can't understand why iReports would run fine, but the server not.

I understand its a coversions problem, but not why when iReports runs without error.

Thanks

 

Al.

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