BIRT2.5执行DataSet的javascript脚本的时候报错如下:
java.lang.NullPointerException
at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(ReportExecutor.java:123)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportExecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciateReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportExecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:168)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:75)
at de.itrn.svp.printing.PrintingEngine.generateOutput(PrintingEngine.java:298)
at de.itrn.svp.printing.PrintingEngine.<init>(PrintingEngine.java:114)
at de.itrn.sv.finance.views.InvoiceView$4.widgetSelected(InvoiceView.java:165)
原因:
写道
After some debugging i found, that on executing task.run() the
DataEngine is NULL. ExecutionContext.openDataEngine() catchs a
BirtException 'no such extension: javascript'.
I've installed BIRT with the Eclipse Package-Manager.
Is there anything else to install?
解决方式:引入插件org.eclipse.birt.report.engine.script.javascript
写道
I continued the problem analysis and I got a more precise result:
1) If I explicitly download BIRT 2.5.1 with the eclipse update manager then
the report creation works fine.
2) If I download the plugins of our software with the eclipse update manager
then the report creation fails with a NullPointerException:
java.lang.NullPointerException
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:123)
at
org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.execute(WrappedReportExecutor.java:60)
at
org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplciateReportExecutor.execute(SuppressDuplciateReportExec utor.java:42)
at
org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.execute(WrappedReportExecutor.java:60)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:168)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:75)
(The DataEngine seems to be null. "ExecutionContext.openDataEngine()"
catches an exception)
3) The only dependency of our report creation plugin to a BIRT plugin is:
"org.eclipse.birt.report.engine". In the past this was enough to get the
necessary BIRT plugins to create the report successfully (with BIRT 2.1.x,
2.2.x, 2.3.x).
4) Now I detected that, if I add the plugin
"org.eclipse.birt.report.engine.script.javascript" (seems to be new in BIRT
2.5.1) manually to the plugins downloaded via eclipse update manager, the
report generation works fine.
Is it really necessary to add a new explicit plugin dependency to this new
plugin? We would have a problem in this case because our report generator
plugin have to work with eclipse 3.2 (BIRT 2.1.x), eclipse 3.2 (BIRT 2.2.x)
and eclipse 3.4 (BIRT 2.3.x), too.
And then I assume that we get a problem because in elder BIRT versions this
plugin doesn't exist...
Or is it a missing dependency bug within BIRT 2.5.1?
参考:http://www.eclipse.org/forums/index.php?t=msg&goto=491071&
分享到:
相关推荐
eclieps birt2.5最新版本中文包,汉化包 官方chart图运行出现以下的错误,其他都行,不能有chart图。此bug已经修改
birt2.5汉化包 下载后将其解压就能看到中文帮助,这对于中文学习者应该是福音啊,哈哈
有史以来最全面的birt2.5教程,目录 1. 简介 4 2. 功能介绍 4 2.1 支持的报表 4 2.2 体系组成 4 2.3 J2EE应用中的BIRT 5 3. 软件下载 5 4. 报表制作 6 4.1 简单的例子 6 4.2 设计细节 20 4.3 子报表设计 24 4.4 图表...
birt报表模版
1.所需文件为build20090715.xml、birtUpgrade.properties、birt2.5; 2.请将上述三份文件放置于项目目录下; 3.请修改birtUpgrade.properties中的old_driver_dir、backup_driver_dir连个属性,修改为对应的org.eclipse...
BIRT2.5和Pentaho 3.5配置指南以及BIRTReportComponent.java和BirtSystemListener.java类的必要修复
主要是自己在做银行方面的报表开发时中遇到的问题清单
birt的web使用示例.使用birt构建自己的解决方案,个人mark
在birt和ext整合中遇到的问题及解决方案 与大家分享 1.如何将birt放到web项目中 2.Birt中如何使用mdx语言 3.Mdx语言的参数传递 4.Extjs pannel中显示birt报表 5.Birt report viewer 汉化 6.去掉标题栏和...
birt脚本调试代码,只需要将代码放进文档中说明的位置,所有javascript调试打印结果都可以看到,提供了两种方式javascript的调试打印,网上也有很多例子说需要放到tomcat里才能打印,其实在报表开发工具中也可以打印...
如果你用想引入birt报表工具,值得学习一下。
成功解决birt套打问题,解决思想:自动补充空行 使用脚本实现,比较变态
记录了birt开始报表常见的问题及解决方案,包括与tomcat的整合、各种报表开始方面,这是我个人工作中遇到的问题记录,相信你也遇到过同样的问题吧!
birt分组导出Excel表格空行解决方案
BIRT(Business Intelligence and Reporting Tools), 是为 Web 应用程序开发的基于 Eclipse 的开源报表系统,特别之处在于它是以 Java 和 JavaEE 为基础。BIRT 有两个主要组件:基于 Eclipse 的报表设计器,以及部署...
Birt4.5.0 的源码,全部为JAR格式,导入Eclipse请参考文章 http://blog.csdn.net/supercooly/article/details/49357709
Birt报表注意Birt报表注意Birt报表注意Birt报表注意Birt报表注意Birt报表注意Birt报表注意Birt报表注意Birt报表注意
birt-runtime 2.5 网址:http://download.eclipse.org/birt/downloads/ 下载后解压,将birt-runtime-2_5_1\WebViewerExample\WEB-INF中的lib,platform两个文件夹copy到eclipse中的相应的两个文件夹中..能过eclipse发布...
birt开发环境的中文汉化,菜单命令以中国汉字显示出来
这是我在学习开发Birt时遇到的问题及解决方案的积累