rwolverton Posted June 8, 2010 Share Posted June 8, 2010 We have installed the JasperServer CE for testing without the bundled iReport because we have an extensive library of existing reports.After connecting our existing iReport installation to the JasperServer Repository and are able to upload and run most reports successfully with the exception of the reports that use the Groovy syntax. My guess is that JasperServer is not finding the Groovy-all-1.5.5.jar that exists in the scripts/lib directory.Is there a configuration parameter that needs to be set or specific location for the Groovy jar? All help is appreciated.RichCode:Example error message:com.jaspersoft.jasperserver.api.JSExceptionWrapper: Errors were encountered when compiling report expressions class file: 1. Cannot cast from int to Integer value = (java.lang.Integer)(4); //$JR_EXPR_ID=1$ <--------------------> 2. Cannot cast from boolean to Boolean value = (java.lang.Boolean)(!(((java.lang.String)field_PROJECTNAME.getValue()).equals( "IT PMO Services" ))); //$JR_EXPR_ID=18$ <--------------------------------------------------------------------------------------------------> 3. Cannot cast from int to Integer value = (java.lang.Integer)(4); //$JR_EXPR_ID=1$ <--------------------> 4. Cannot cast from boolean to Boolean value = (java.lang.Boolean)(!(((java.lang.String)field_PROJECTNAME.getOldValue()).equals( "IT PMO Services" ))); //$JR_EXPR_ID=18$ <-----------------------------------------------------------------------------------------------------> 5. Cannot cast from int to Integer value = (java.lang.Integer)(4); //$JR_EXPR_ID=1$ <--------------------> 6. Cannot cast from boolean to Boolean value = (java.lang.Boolean)(!(((java.lang.String)field_PROJECTNAME.getValue()).equals( "IT PMO Services" ))); //$JR_EXPR_ID=18$ <--------------------------------------------------------------------------------------------------> 6 errorscom.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:1. Cannot cast from int to Integer value = (java.lang.Integer)(4); //$JR_EXPR_ID=1$ <-------------------->2. Cannot cast from boolean to Boolean value = (java.lang.Boolean)(!(((java.lang.String)field_PROJECTNAME.getValue()).equals( "IT PMO Services" ))); //$JR_EXPR_ID=18$ <-------------------------------------------------------------------------------------------------->3. Cannot cast from int to Integer Link to comment Share on other sites More sharing options...
lucianc Posted June 16, 2010 Share Posted June 16, 2010 Are you sure that it's a Groovy report? Or is it a Java report that uses Java 5 expressions?If the latter, see http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/faq.html#FAQ23. In JasperServer, the file to edit is WEB-INF/classes/jasperreports.properties.Regards,Lucian 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