BIRT 高手能帮忙解决个问题么??
最近开发个系统需要定时出报表,我用quartz结合BIRT 做的 但是程序运行第一次是正常的,第二次就报如下错误
信息: Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
2008-5-29 11:56:03 org.eclipse.birt.report.model.metadata.StructPropertyType validateValue
警告: The value of the structure is null
Finished
注:这是第一次 完成后正确结束 之后是第二次的错误
我的定时是10分钟生成一次报表.
2008-5-29 11:58:02 org.eclipse.birt.data.engine.odaconsumer.ConnectionManager openConnection
严重: Cannot open connection.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Missing properties in Connection.open(Properties).
at org.eclipse.birt.report.data.oda.jdbc.Connection.open(Connection.java:108)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:235)
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:140)
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:133)
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:121)
at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:206)
at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryExecutor.java:248)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:202)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:396)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:145)
at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:134)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:125)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:119)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:210)
at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1641)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:62)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:73)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:35)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layoutChildren(HTMLPageLM.java:123)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:81)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:85)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:205)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:142)
at org.eclipse.org.demo.de.ExecuteModifedReport.runReport(ExecuteModifedReport.java:107)
at org.eclipse.org.demo.de.ExecuteModifedReport.execute(ExecuteModifedReport.java:28)
at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
2008-5-29 11:58:02 org.eclipse.birt.report.engine.data.dte.DteDataEngine doExecuteQuery
严重: Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc
Missing properties in Connection.open(Properties).
好象是打开Connection时参数找不到,但是第一次却能够正常的输出.为什么第二次就找不到数据源参数呢??
BIRT 2.1.1
ECLIPSE3.2.2
JDK1.5
ORA 数据库 驱动安装正常
这个问题困惑我2天了,实在是自己搞不定了,BIRT 毕竟是初学乍练,还不是很熟悉.
希望能够有高手帮我解决下.