0

尝试运行 Grails Jasper 插件演示页面中的任何演示报告时出现错误。我想我缺少一些配置,但插件文档没有提供更多细节。

Error 500: Internal Server Error
URI
/testGrailsProject01/jasper/
Class
java.lang.Exception
Message
No such report spec: /reports\sample-jasper-plugin (jasper or .jrxml)
Around line 195 of PageFragmentCachingFilter.java
192:            if (CollectionUtils.isEmpty(cacheOperations)) {
193:                log.debug("No cacheable annotation found for {}:{} {}",
194:                        new Object[] { request.getMethod(), request.getRequestURI(), getContext() });
195:                chain.doFilter(request, response);
196:                return;
197:            }
198:
Around line 63 of AbstractFilter.java
60:     try {
61:         // NO_FILTER set for RequestDispatcher forwards to avoid double gzipping
62:         if (filterNotDisabled(request)) {
63:             doFilter(request, response, chain);
64:         }
65:         else {
66:             chain.doFilter(req, res);
Trace
   Line | Method
->> 195 | doFilter in PageFragmentCachingFilter.java
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    63 | doFilter in AbstractFilter.java
|   886 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
|   908 | run      in     ''
^   662 | run . .  in java.lang.Thread
4

1 回答 1

0

看起来插件根本没有提供报告,至少我找不到任何报告。你需要在 Jasper 中创建一个基本的测试报告,然后将它放在你的 /reports/ 文件夹中。

于 2013-03-22T18:37:53.900 回答