staind85 Posted November 10, 2009 Share Posted November 10, 2009 i get this error at compiling a report: Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@ee9963 net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, calculator_autorizacion_1257876720246_983793: 41: unexpected token: field_T @ line 41, column 25. 1 error at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:88) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:188) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:131) at com.jaspersoft.ireport.designer.compiler.IReportCompiler. this happends in certain cases, i mean, with few tables (temporaries), some of them work, others not, an that error is the same with every table i test, what can it be? unexpected token: field_T @ line 41, column 25 (It always tells me this, i don`t understand this message).thanks for the help...Code:Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@ee9963 net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, calculator_autorizacion_1257876720246_983793: 41: unexpected token: field_T @ line 41, column 25. 1 error     at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:88)     at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:188)     at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215)     at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:131)     at com.jaspersoft.ireport.designer.compiler.IReportCompiler. Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted November 11, 2009 Share Posted November 11, 2009 Change the report language from groovy to java.I suppose names having a $ character have problems with groovy, or there is some expression that groovy does not like... Giulio Link to comment Share on other sites More sharing options...
staind85 Posted November 11, 2009 Author Share Posted November 11, 2009 it´s worked so far... thanks a lot! Link to comment Share on other sites More sharing options...
manusurya9139 Posted February 11, 2010 Share Posted February 11, 2010 How to change report language? Link to comment Share on other sites More sharing options...
acostache Posted April 8, 2010 Share Posted April 8, 2010 Hi,I get a very similar error:"Errors were encountered when compiling report expressions class file:org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, calculator_customersReport_1270739251038_146945: 18: unable to resolve class JREvaluator @ line 18, column 1.calculator_customersReport_1270739251038_146945: 25: unable to resolve class JRFillParameter ..."And the stack trace goes on saying that neither the JRFillField, JRFillParameter, JRFillVariable class are found (they are located in the jasperreports engine library).I have the groovy and the jasper enginer libraries where they should be.Indeed changing the scripting language to Java or JavaScript does help, but is there any other way? Best regards,Andrei Link to comment Share on other sites More sharing options...
woskuen Posted January 22, 2013 Share Posted January 22, 2013 This error sometimes might be happen due to something wrong when iReport load the Jar file dynamically. can try to reopen the iReport. if it happen when run the report on the Jasper Server. look into the directory, make sure the path the Jar file be added is correct. Link to comment Share on other sites More sharing options...
sirsachinborkar Posted July 1, 2013 Share Posted July 1, 2013 http://www.gravatar.com/avatar/daf9325c17a6197ee25ecd431211591c.jpg?d=identicon&s=32&r=Gmanusurya913913This is for all those who don't know how to change report language.CAUTION: I use Netbeans IDE so the following applies to Netbeans only. In Netbeans ide, Open up the 'Projects' tab on your left hand side.Look for the file with .jrxml ending in your project.Double click it to open it up in the right hand pane.Take a look at the screen shot here:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Click on XML tab to open the xml code of the report.On the very second line from the top look for <jasperReport> tag and scroll horizontally to locate the 'lang' attribute.Change it to suit you. (I changed it to java as suggested http://community.jaspersoft.com/sites/default/files/pictures/picture-8303-1348214550.pnggiulio)Save project and 'clean build' it! This should do the trick. Link to comment Share on other sites More sharing options...
andresmonaste11 Posted October 16, 2013 Share Posted October 16, 2013 This tip was useful for me. I was having the same error and I fixed with this :)<<<<<< This comment was blocked and unpublished because Project Honeypot indicates it came from a suspicious IP address. 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