Jump to content
We've recently updated our Privacy Statement, available here ×

Compile error at report generation


beldon.dominello
Go to solution Solved by mgeise,

Recommended Posts

I'm testing Jaspersoft for use in some projects I'm doing which require mpore accurate output than SSRS and, so far so good.

However, I'm getting the following in iReport 4.8.0 on Windows 2008 R2, 64-bit, running against SQL Server 2008 R2 using sourceforge jTDS 1.3.0 with sql server authentication.

The query runs fine in the SQL editor, but when I attempt to preview, I get the following:

Compiling to file... C:Program FilesJavajtds-1.3.0-distInvoiceTest.jasper
Errors compiling C:Program FilesJavajtds-1.3.0-distInvoiceTest.jasper!
Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@250d42a5  net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: calculator_InvoiceTest_1352214732898_760835: 265: expecting ')', found 'for' @ line 265, column 30. 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:240)     at net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:156)     at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:439)     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_InvoiceTest_1352214732898_760835: 265: expecting ')', found 'for' @ line 265, column 30. 1 error      at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:296)     at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:143)     at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:113)     at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:125)     at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:337)     at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:104)     at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:71)     at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236)     at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:158)     at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:814)     at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:511)     at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:487)     at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:464)     at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:109)     ... 7 more
Compilation running time: 78!

 

Much thanks, in advance!

 


 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 6 years later...

@ beldon, Kindly check your source code. 

e.g <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="userrequest" language="groovy" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c3f8167e-4352-4bd2-9e03-b9280b289d35">

remove language = "groovy" and run it.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...