带参数的 BIRT 报告:无法加载报告查询
我尝试使用参数在 Birt Web 查看器 (JBoss) 上运行报告,但出现以下错误:
- Grid (id = 1461):
+ Can not load the report query: 1461. Errors occurred when generating the report document for the report element with ID 1,461. (Element ID:1461)
没有参数的报告工作正常。带参数的报表在 Eclipse 报表设计器中运行良好。
有人可以给我建议吗?
I'm trying to run a report on Birt web viewer (JBoss) with a parameter and I get the following error:
- Grid (id = 1461):
+ Can not load the report query: 1461. Errors occurred when generating the report document for the report element with ID 1,461. (Element ID:1461)
Reports without parameters are working fine. Reports with parameters are running fine in Eclipse Report Designer.
Could someone give me advice please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我遇到了同样的问题(即尝试从 tomcat Web 容器获取时报告抛出错误)。为了解决此问题,我在
/WEB-INF/lib 文件夹
中添加了数据库驱动程序。请尝试一次并告诉我是否有效。
I had same kind a problem (ie. the report was throwing error while tried to fetch from the tomcat web container). To resolve this issue, I have added the database driver in the
/WEB-INF/lib folder
.Please try this once and let me know if it works.
我解决了用“预览”而不是“框架集”打开报告的问题。这显示了真正的异常。
I solved my problem opening my report with "preview" instead of "frameset". This shows the real exception.
可能您没有在报告参数或数据集参数中定义 id。
Might be you have not define id in your report parameter,either in report parameter or data set parameter.
就我而言,BIRT 的数据源配置不正确。我需要确保 JNDI 名称与容器配置中的名称相匹配。
In my case, the datasource for BIRT was not configured correctly. I needed to make sure the JNDI name matched what was in the config for my container.