grails 2.4.3 上的 JasperReport 插件错误

JasperReport Plugin error on grails 2.4.3

我有:

def reportDef = new JasperReportDef(name:'myreport.jasper', fileFormat:JasperExportFormat.PDF_FORMAT)
response.outputStream << jasperService.generateReport(reportDef).toByteArray()

和 jasperService.generateReport(reportDef) 总是给我:

Error | 2015-01-06 14:06:53,449 [http-bio-8080-exec-7] ERROR errors.GrailsExceptionResolver  - NoSuchMethodError occurred when processing request: [POST] /CRM/contratoDesvincular/gerarRelatorio
com.lowagie.text.pdf.PdfWriter.setTabs(Lcom/lowagie/text/pdf/PdfName;)V. Stacktrace follows:
Message: Executing action [gerarRelatorio] of controller [org.catelani.crm.ContratoDesvincularController]  caused exception: Runtime error executing action
Line | Method
->>  198 | doFilter  in grails.plugin.cache.web.filter.PageFragmentCachingFilter

我已经在 BuildConfig 上编译了“:jasper:1.10.0”。

有人知道这是怎么回事吗?

问题出在 grails 2.4.3 附带的 iText 上:

build "com.lowagie:itext:2.1.7"

这会覆盖 grails 使用的插件并解决问题。