Hi: I'm trying to use jasper report on Ademìpier 3.5.2. I create a jrxml file with iReport 5.0.0 and configure the report and menu in Adempiere. But when I try to process I get:
===========> ReportStarter.compileReport: JRException; e.getMessage()= Errors we
re encountered when compiling report expressions class file:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed,
calculator_test1_1356546507200_451516: 25: unexpected token: private @ line 25
, column 5.
Can anyone guide me in the solution?
You should use the same version of JasperReports to compile the report that you use to show it.
Trying to upgrade the jasper library inside adempiere may be a big mess (without osgi/idempiere or such to separate dependencies). And your statement of using 3.5.2 means for me you do not want to do a big upgrade of many libraries. My solution was to pack the *.jrxml file into my contribution and not the *.jasper file. So the Jasper Report engine inside adempiere will translate it with the embedded library and everything is ok.
If I remember right I had to be a bit careful not to use new features of JasperReports (not using groovy may be an idea).
I found my old notices about that at http://www.adempiere.com/JasperReports_Tips_und_Tricks#Vorbereiten_von_.2A.jasper-Dateien_mit_unterschiedlichen_JasperReports-Versionen
you can try to translate it with google translate or ask here… In short: You can tell iReport to create 3.7.3 versioned output files. And I wrote a short ant buildskript to translate jrxml files with the embedded library.
Log in to post a comment.