yun.zhi.lin Posted April 9, 2014 Share Posted April 9, 2014 I'm using Jasper Studio 5.5.1 trying to open my .JRXML files which were created using iReport 5.5.0. The reports are working correctly in iReport, in Jasper Studio I create a brand new Jasper project and copy the JRXML files in. However I come across the following error when trying to compile: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: calculator_Receipt_1397035857101_637810: 18: unable to resolve class net.sf.jasperreports.compilers.GroovyEvaluator @ line 18, column 1. calculator_Receipt_Receipt_1397035857101_637810: 18: unable to resolve class net.sf.jasperreports.compilers.GroovyEvaluator @ line 18, column 1. calculator_Receipt_dataset1_1397035857101_637810: 18: unable to resolve class net.sf.jasperreports.compilers.GroovyEvaluator @ line 18, column 1. 3 errors at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:113) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:201) at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:172) at com.jaspersoft.studio.editor.preview.view.control.ReportControler.compileJasperDesign(ReportControler.java:398) at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$14(ReportControler.java:386) at com.jaspersoft.studio.editor.preview.view.control.ReportControler$4.run(ReportControler.java:319) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) I check my class path and Jasper Libraries is included. I suspect the Groovy evaluator is needed for expressions such as: <variable name="isRent" class="java.lang.Boolean"> <variableExpression><![CDATA[$F{allocation_charge_category}.equals("Rent") ? Boolean.TRUE : $V{isRent}]]></variableExpression> <initialValueExpression><![CDATA[boolean.FALSE]]></initialValueExpression> </variable>[/code] Please advice if there is a work around or did I miss anything in my setup. Link to comment Share on other sites More sharing options...
Solution yun.zhi.lin Posted April 9, 2014 Author Solution Share Posted April 9, 2014 I was able to resolve this by removing:language="groovy"[/code]in my JRXML file Link to comment Share on other sites More sharing options...
hermy991 Posted April 17, 2014 Share Posted April 17, 2014 groovy as you're using language validation. The library JASPER REPORT used a class that is not in the jars, to solve this problem switch to java, in the report properties Link to comment Share on other sites More sharing options...
hermy991 Posted April 17, 2014 Share Posted April 17, 2014 groovy as you're using language validation. The library JASPER REPORT used a class that is not in the jars, to solve this problem switch to java, in the report properties Link to comment Share on other sites More sharing options...
yun.zhi.lin Posted May 19, 2014 Author Share Posted May 19, 2014 Switching to Java when Groovy is a supported feature isn't really a correct fix. The issue is caused by Jasper Studio 5.5.1 which didn't have the correct jars. Groovy is working correctly which I upgraded to Jasper Studio 5.5.2 Link to comment Share on other sites More sharing options...
cameron_1 Posted January 6, 2015 Share Posted January 6, 2015 Did you ever find a solution to this? I'm having the same problem with 6.0, I can't get rid of the language="groovy" parameter as I'm actually using expressions written in Groovy (if I get rid of it, it seems to default back to Java, causing expression compilation errors). Link to comment Share on other sites More sharing options...
atilacamurca Posted November 21, 2017 Share Posted November 21, 2017 According to this (https://stackoverflow.com/a/43354536/1152679) answer from StackOverflow, you have toreplace groovy for a more recent version.Delete TIBCOJaspersoftStudio-x.x.x.final/plugins/groovy-all_2.4.5.jarand replace for groovy-2.4.12/embeddable/groovy-all-2.4.12.jarThis works for me. 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