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

Groovy syntax failing in JasperServer CE


rwolverton

Recommended Posts

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.

Rich

Code:
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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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