Jasper erro com.lowagie.text.pdf.PdfWriter.setTabs(Lcom/lowagie/text/pdf/PdfName;)V
11/02/2015 14:15
Fala galera,
estou iniciando em uma empresa agora e estou tendo a oportunidade de trabalhar Grails, estou com um problema para imprimir relatórios, utilizo o ireport, seguinte se eu rodo a aplicação e modo de depuração ela roda de boa e gera o relatório, mas, se eu fizer um run-app, bicho ela roda preenche tudo e depois da um erro e não gera os relatório!
Utilizo os plugins:
build ":tomcat:7.0.54"
compile ":scaffolding:2.1.2"
compile ':cache:1.1.7'
compile ":asset-pipeline:1.8.11"
compile ":hibernate-filter:0.3.2"
compile ":quick-search:0.2.6"
compile ":jasper:1.11.0"
runtime ":hibernate:3.6.10.16" // or ":hibernate4:4.3.5.4"
runtime ":database-migration:1.4.0"
runtime ":jquery:1.11.1"
e os repositorios:
repositories {
inherits true // Whether to inherit repository definitions from plugins
grailsPlugins()
grailsHome()
mavenLocal()
grailsCentral()
mavenCentral()
// uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
}
Olha o erro gerado:
Error 500: Internal Server Error
URI
/buffet/jasper/index
Class
java.lang.NoSuchMethodError
Message
com.lowagie.text.pdf.PdfWriter.setTabs(Lcom/lowagie/text/pdf/PdfName;)V
Around line 198 of PageFragmentCachingFilter.java
195: if (CollectionUtils.isEmpty(cacheOperations)) {196: log.debug("No cacheable annotation found for {}:{} {}",197: new Object[] { request.getMethod(), request.getRequestURI(), getContext() });198: chain.doFilter(request, response);199: return;200: }201:
Around line 63 of AbstractFilter.java
60: try {61: // NO_FILTER set for RequestDispatcher forwards to avoid double gzipping62: if (filterNotDisabled(request)) {63: doFilter(request, response, chain);64: }65: else {66: chain.doFilter(req, res);
Trace
Line | Method
->> 198 | doFilter in PageFragmentCachingFilter.java
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 63 | doFilter in AbstractFilter.java
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . in java.lang.Thread
Caused by ControllerExecutionException: Runtime error executing action
->> 198 | doFilter in PageFragmentCachingFilter.java
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 63 | doFilter in AbstractFilter.java
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . in java.lang.Thread
Caused by InvocationTargetException: null
->> 198 | doFilter in PageFragmentCachingFilter.java
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 63 | doFilter in AbstractFilter.java
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . in java.lang.Thread
Caused by NoSuchMethodError: com.lowagie.text.pdf.PdfWriter.setTabs(Lcom/lowagie/text/pdf/PdfName;)V
->> 664 | exportReportToStream in net.sf.jasperreports.engine.export.JRPdfExporter
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 514 | exportReport in ''
| 198 | doFilter in PageFragmentCachingFilter.java
| 63 | doFilter in AbstractFilter.java
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . in java.lang.Thread
Tags:
jasper, relatório, pdf