CMDBuild Forum

Error compiling report

Hello!

I'm experimenting with reports in CMDBuild and have created a simple report using iReport Designer and saved it as a jrxml file. When creating the new report in CMDBuild and importing the jrxml file I'm getting the error "Report Compilation Error"

If I have a look in /var/log/tomcat7/cbdbuild.log I can see the following relevant information

ERROR 2014-05-01 17:20:35 [report  ] Error compiling report

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

calculator_report3_1398928835587_804050: 244: unexpected token: Construction @ line 244, column 35.

1 error

ERROR 2014-05-01 17:20:35 [jsonrpc ] A org.cmdbuild.exception.ReportException occurred calling method class org.cmdbuild.servlets.json.schema.ModReport.importJasperReport: REPORT_COMPILE_ERROR

 
I thought the line and column information in the log might refer to the line and column in the jrxml file but this only goes up to line 196 so I'm not really sure what might be causing this error.
 
If I search my server I can find files relating to "groovy" here:
 
/var/lib/tomcat7/webapps/shark/WEB-INF/lib/groovy-1.8.1.jar
/var/lib/tomcat7/webapps/cmdbuild/WEB-INF/lib/groovy-all-2.0.1.jar
/usr/share/vim/vim73/syntax/groovy.vim
 
I'm not sure how to find more information about the error and was hoping someone can assist me please.
 
Thanks!

Previously Angus wrote:

Hello!

I'm experimenting with reports in CMDBuild and have created a simple report using iReport Designer and saved it as a jrxml file. When creating the new report in CMDBuild and importing the jrxml file I'm getting the error "Report Compilation Error"

If I have a look in /var/log/tomcat7/cbdbuild.log I can see the following relevant information

ERROR 2014-05-01 17:20:35 [report  ] Error compiling report

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

calculator_report3_1398928835587_804050: 244: unexpected token: Construction @ line 244, column 35.

1 error

ERROR 2014-05-01 17:20:35 [jsonrpc ] A org.cmdbuild.exception.ReportException occurred calling method class org.cmdbuild.servlets.json.schema.ModReport.importJasperReport: REPORT_COMPILE_ERROR

 
I thought the line and column information in the log might refer to the line and column in the jrxml file but this only goes up to line 196 so I'm not really sure what might be causing this error.
 
If I search my server I can find files relating to "groovy" here:
 
/var/lib/tomcat7/webapps/shark/WEB-INF/lib/groovy-1.8.1.jar
/var/lib/tomcat7/webapps/cmdbuild/WEB-INF/lib/groovy-all-2.0.1.jar
/usr/share/vim/vim73/syntax/groovy.vim
 
I'm not sure how to find more information about the error and was hoping someone can assist me please.
 
Thanks!

 

Looks like I've resolved this but not entirely sure why it wasn't working in the first place.
 
I had a Text Field in the title band of the report that read "This report is under construction". When I removed this the report compiled without error.
 
I replaced the Text Field with Static Text with the same wording and this worked as well.
 
I have no idea why it didn't like the original Text Field.
 
Cheers!