Grails插件:Jasper插件 - 没有这样的报告规范错误

时间:2013-03-18 15:51:06

标签: grails jasper-reports jasper-plugin

尝试在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

1 个答案:

答案 0 :(得分:0)

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