我正在使用jasperrport netbeans插件v5.6.0
第一天,它运行良好,没有这样的错误,第二天突然,当我再次启动netbeans时,我根本无法编译我的ireports(jrxml)文件,即使在预览页面(甚至在文件由我的打印jbutton调用)。
到目前为止我尝试过的事情:
试图重新安装该插件,但还是没有运气,我正在使用相同版本的ireport库,就像它运行良好的那一天一样。
试图从头开始创建ireport文件,奇怪的是,即使从文件中删除了所有元素(静态文本和field),报表文件仍然无法编译,现在我可以编译一个从空白文档或模板重新创建的文件,只要添加字段和参数,就不会再以相同的错误进行编译。
我使用的插件列表:
我确信对数据库,报表和编码均未做任何更改,昨天发生错误时,我什至没有再开始工作。
Compiling to file... E:\Software.Coding\Java\ETC\NetBeansProjects\SimApotek\src\simapt\iReports\print_PO.jasper
Errors compiling E:\Software.Coding\Java\ETC\NetBeansProjects\SimApotek\src\simapt\iReports\print_PO.jasper!
Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@403c9358 net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: calculator_null_1538062458651_544076: 334: expecting ')', found 'Software' @ line 334, column 26. 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:354) at net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:270) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:563) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:528) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058) Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: calculator_null_1538062458651_544076: 334: expecting ')', found 'Software' @ line 334, column 26. 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) ... 9 more
Compilation running time: 146!