iReport 5.5.0 Compilation exceptions

0

Hi,

In the iReport 5.5.0 I've created a report tried to view the preview I got the Compilation exceptions. May I know how can solve this ....

Below I've paste the error.

Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@d2b7d8
 
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
calculator_Agent324532Pending32Renewals_1389179907643_174204: 226: unexpected token: : @ line 226, column 37.
1 error
 
    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.engine.JasperCompileManager.compile(JasperCompileManager.java:241)
    at net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:157)
    at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:450)
    at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:528)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
calculator_Agent324532Pending32Renewals_1389179907643_174204: 226: unexpected token: : @ line 226, column 37.
1 error
 
    at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302)
    at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:149)
    at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:119)
    at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:131)
    at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:359)
    at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:141)
    at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:107)
    at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236)
    at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:161)
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:900)
    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:564)
    at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:540)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:517)
    at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:109)
    ... 7 more
 
Compilation running time:
    138
Venkatachalam P's picture
Joined: Jan 3 2014 - 1:33am
Last seen: 5 years 10 months ago

1 Answer:

1

Click on the XML tab and look at line 226, column 37 to see what the error might be.

Another tip is to change the language from the default Groovy to Java, which sometimes gives a more detailed error giving you a better clue as to what's wrong. To change the language click on the main report node in the Report Inspector and click on the Language menu in the properties (near the bottom) and change the language to Java.

rmiller's picture
11795
Joined: Nov 17 2011 - 2:07pm
Last seen: 4 years 6 months ago

Thanks Miller...

I've changed the language as "Java". It shows the exact error...

Venkatachalam P - 5 years 10 months ago
Feedback
randomness