简体   繁体   English

Grails插件:Jasper插件-没有此类报告规范错误

[英]Grails Plugin: Jasper plugin - No such report spec error

I am getting an error when trying to run any of the demo reports in the Grails Jasper Plugin demo page. 尝试运行Grails Jasper插件演示页面中的任何演示报告时出现错误。 I'm thinking I'm missing some configuration, but the plugin doc doesn't give any more detail. 我以为我缺少一些配置,但是插件文档没有给出更多详细信息。

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

It looks like the plugin doesn't provide a report at all, at least I can't find any. 看来该插件根本不提供报告,至少我找不到任何报告。 You will need to create a basic test report in Jasper and then place it within your /reports/ folder. 您将需要在Jasper中创建基本的测试报告,然后将其放置在/ reports /文件夹中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM