ReportDocument generation problem w/2.1RC4 [message #168940] |
Fri, 09 June 2006 19:54  |
Eclipse User |
|
|
|
Originally posted by: smacrt.sbcglobal.net
I seem to be running into a problem with generation of report documents
from a report design.
Here's my code snippet:
EngineConfig config = new EngineConfig();
config.setEngineHome("C:\\Program
Files\\birt-runtime-2_1_0\\ReportEngine");
ReportEngine engine = new ReportEngine(config);
String reportPath = "C:\\Program
Files\\birt-rcp-report-designer-2_1_0\\workspace\\myreport.r ptdesign ";
IReportRunnable design = engine.openReportDesign(reportPath);
IRunTask task = engine.createRunTask(design);
task.setPageHandler(new GenerationListener());
task.run("c:\\temp\\rptdoc");
engine.destroy();
I get the following exceptions:
Jun 9, 2006 3:29:44 PM org.eclipse.birt.report.engine.api.impl.RunTask
doRun
SEVERE: An error happened while running the report. Cause:
java.lang.NegativeArraySizeException
at
org.eclipse.birt.data.engine.executor.cache.ResultObjectUtil .readData(ResultObjectUtil.java:135)
at
org.eclipse.birt.data.engine.executor.cache.DataFileReader.r ead(DataFileReader.java:100)
at
org.eclipse.birt.data.engine.executor.cache.DiskBasedResultS et.nextRow(DiskBasedResultSet.java:102)
at
org.eclipse.birt.data.engine.executor.cache.DiskCache.next(D iskCache.java:139)
at
org.eclipse.birt.data.engine.executor.cache.SmartCache.next( SmartCache.java:378)
at
org.eclipse.birt.data.engine.executor.transform.CachedResult Set.next(CachedResultSet.java:270)
at
org.eclipse.birt.data.engine.impl.ResultIterator.next(Result Iterator.java:188)
at
org.eclipse.birt.report.engine.data.dte.DteResultSet.next(Dt eResultSet.java:200)
at
org.eclipse.birt.report.engine.executor.ListingElementExecut or.accessQuery(ListingElementExecutor.java:150)
at
org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemExecutor.java:159)
at
org.eclipse.birt.report.engine.executor.ReportExecutorVisito r.visitTableItem(ReportExecutorVisitor.java:205)
at
org.eclipse.birt.report.engine.ir.TableItemDesign.accept(Tab leItemDesign.java:69)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:129)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:89)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:202)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:111)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:96)
at
com.coremetrics.birt.ReportDocGenerator.generateReport(Repor tDocGenerator.java:43)
at
com.coremetrics.birt.ReportDocGenerator.main(ReportDocGenera tor.java:21)
Exception in thread "main"
org.eclipse.birt.report.engine.api.EngineException: Error happended while
running the report
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:212)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:111)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:96)
at
com.coremetrics.birt.ReportDocGenerator.generateReport(Repor tDocGenerator.java:43)
at
com.coremetrics.birt.ReportDocGenerator.main(ReportDocGenera tor.java:21)
Caused by: java.lang.NegativeArraySizeException
at
org.eclipse.birt.data.engine.executor.cache.ResultObjectUtil .readData(ResultObjectUtil.java:135)
at
org.eclipse.birt.data.engine.executor.cache.DataFileReader.r ead(DataFileReader.java:100)
at
org.eclipse.birt.data.engine.executor.cache.DiskBasedResultS et.nextRow(DiskBasedResultSet.java:102)
at
org.eclipse.birt.data.engine.executor.cache.DiskCache.next(D iskCache.java:139)
at
org.eclipse.birt.data.engine.executor.cache.SmartCache.next( SmartCache.java:378)
at
org.eclipse.birt.data.engine.executor.transform.CachedResult Set.next(CachedResultSet.java:270)
at
org.eclipse.birt.data.engine.impl.ResultIterator.next(Result Iterator.java:188)
at
org.eclipse.birt.report.engine.data.dte.DteResultSet.next(Dt eResultSet.java:200)
at
org.eclipse.birt.report.engine.executor.ListingElementExecut or.accessQuery(ListingElementExecutor.java:150)
at
org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemExecutor.java:159)
at
org.eclipse.birt.report.engine.executor.ReportExecutorVisito r.visitTableItem(ReportExecutorVisitor.java:205)
at
org.eclipse.birt.report.engine.ir.TableItemDesign.accept(Tab leItemDesign.java:69)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:129)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:89)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:202)
... 4 more
Any idea what might be wrong here?
I have been trying to get this working for several days now and it is
quite frustrating. Please help.
Thanks.
-- Shanon
|
|
|
|
|
|
|
|
|
Re: ReportDocument generation problem w/2.1RC4 [message #170020 is a reply to message #169990] |
Wed, 14 June 2006 02:01   |
Eclipse User |
|
|
|
Originally posted by: smacrt.whocares.net
> Has anybody tested generation of a large report?
> Has this been fixed in a more recent nightly release?
In addition, I see sluggish performance with execution of large queries.
Are there any suggestions on how I can get rptdesign => rptdocument
generation to run faster for a simple listing report with a 400,000 row
resultset containing one computed column in addition to four other columns
(text, double, integer, text)?
Interestingly, when attempting to preview the results via the data set
editor, I see the results really fast. However, when previewing the report
in the viewer, generation takes a much longer time.
Please let me know; thanks.
-- Shanon
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07002 seconds