Reports are erroring out when run in parallel [message #841116] |
Tue, 10 April 2012 23:20 |
harip kaligo Messages: 74 Registered: July 2011 |
Member |
|
|
hi,
We are getting reports erroring out when running reports in parallel with same parameters with run then render task below is the error stack:
An error happened while running the report. Cause:java.lang.NullPoi
nterException
at org.eclipse.birt.data.engine.executor.cache.disk.DataFileReader.close(DataFileReader.java:119)
at org.eclipse.birt.data.engine.executor.cache.disk.RowFile.closeReader(RowFile.java:284)
at org.eclipse.birt.data.engine.executor.cache.disk.RowFile.close(RowFile.java:270)
at org.eclipse.birt.data.engine.api.CloseListenerManager.closeAll(CloseListenerManager.java:38)
at org.eclipse.birt.data.engine.impl.DataEngineImpl.shutdown(DataEngineImpl.java:584)
at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.shutdown(DataRequestSessionImpl.java:509)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.shutdown(AbstractDataEngine.java:348)
at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.shutdown(DataGenerationEngine.java:151)
at org.eclipse.birt.report.engine.executor.ExecutionContext.closeDataEngine(ExecutionContext.java:900)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:263)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:85)
Some times we also get below error:
Caused by: java.io.FileNotFoundException: /apps/GTS/tmp/u_wtydm/ccerrep/cache/DataEngine_328196403_392/DataSetCacheObject_361788900_86/meta.data (No such fil
e or directory)
We are using eclipse 3.7 and deploying the reports in BEA WL10.0.2 with JDK 1.5.
We tried running three reports in parallel with same parameters with run then render task and all the reports failed. After this we get the error with a single report as well.
Any idea on what can be wrong?
Thanks,
KHP
[Updated on: Tue, 10 April 2012 23:23] Report message to a moderator
|
|
|
Re: Reports are erroring out when run in parallel [message #841638 is a reply to message #841116] |
Wed, 11 April 2012 15:18 |
|
Did you write a custom servlet or are you using the viewer?
Jason
On 4/10/2012 7:20 PM, harip kaligo wrote:
> hi,
>
> We are getting reports erroring out when running reports in parallel
> below is the error stack:
>
> An error happened while running the report. Cause:java.lang.NullPoi
> nterException
> at
> org.eclipse.birt.data.engine.executor.cache.disk.DataFileReader.close(DataFileReader.java:119)
>
> at
> org.eclipse.birt.data.engine.executor.cache.disk.RowFile.closeReader(RowFile.java:284)
>
> at
> org.eclipse.birt.data.engine.executor.cache.disk.RowFile.close(RowFile.java:270)
>
> at
> org.eclipse.birt.data.engine.api.CloseListenerManager.closeAll(CloseListenerManager.java:38)
>
> at
> org.eclipse.birt.data.engine.impl.DataEngineImpl.shutdown(DataEngineImpl.java:584)
>
> at
> org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.shutdown(DataRequestSessionImpl.java:509)
>
> at
> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.shutdown(AbstractDataEngine.java:348)
>
> at
> org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.shutdown(DataGenerationEngine.java:151)
>
> at
> org.eclipse.birt.report.engine.executor.ExecutionContext.closeDataEngine(ExecutionContext.java:900)
>
> at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:263)
> at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:85)
>
>
>
>
> We are using eclipse 3.7 and deploying the reports in BEA WL10.0.2 with
> JDK 1.5.
> We tried running three reports in parallel and all the reports failed.
> After this we get the error with a single report as well.
> Any idea on what can be wrong?
>
> Thanks,
> KHP
|
|
|
|
|
Re: Reports are erroring out when run in parallel [message #841799 is a reply to message #841783] |
Wed, 11 April 2012 18:38 |
|
So in your code are you creating only one engine and wrapping it in a
singleton? Use the engine to create a new task per operation (run,
render, runandrender). Make sure to close the task when it is done,
Make sure you also close the report document if you are opening it for a
task using using openReportDocument. Also verify that you are using a
unique rpt document name.
Jason
On 4/11/2012 2:10 PM, harip kaligo wrote:
> Jason,
>
> We are using custom tld to view the reports.
|
|
|
|
|
|
|
Re: Reports are erroring out when run in parallel [message #842727 is a reply to message #842697] |
Thu, 12 April 2012 15:10 |
|
I have not seen this error before. Any chance the tmp folder is being
cleared while the report is running?
It may be a good idea to log a bugzilla entry with your code.
Jason
On 4/12/2012 10:41 AM, harip kaligo wrote:
> Jason,
>
> Any idea? why reports are failing with below exceptions:
>
> SEVERE [org.eclipse.birt.data.engine.cache.BasicCachedList.loadFromDisk]
> : Exception happened when load data from disk in CachedList
> Exception message: java.io.FileNotFoundException:
> /apps/GTS/tmp/u_wtydm/ccerrep/cache/DataEngine_298736505_71/CachedList_11700619639000_589_12722fab/5.tmp
> (
> No such file or directory)
>
>
> SEVERE
> [com.wellsfargo.reporting.manager.ReportGenerator.printTaskErrors] :
> error generating report org.eclipse.birt.report.engine.a
> pi.EngineException: There is an error in saving files of data set cache.
> /apps/GTS/tmp/u_wtydm/ccerrep/cache/DataEngine_308168675_69/DataSetCacheObject_324720112_41/meta.data
> (No such file or directory) (Element ID:2634)
|
|
|
|
Re: Reports are erroring out when run in parallel [message #842899 is a reply to message #842850] |
Thu, 12 April 2012 18:14 |
|
I believe the results of cache get written to the tmp folder. I was
wondering if something was clearing them. There is a setting for
determining how much data is cached in memory before writting to disk.
It is:
DataEngine.MEMORY_BUFFER_SIZE
And it defaults to 10mb and you can set it on the app context like:
config.getAppContext().put(DataEngine.MEMORY_BUFFER_SIZE, 20 /*inMB*/);
I still think it is a good idea to open a bugzilla entry submitting your
code. If we can reproduce your issue we can help fix it.
Jason
On 4/12/2012 1:11 PM, harip kaligo wrote:
> Jason,
>
> I didn't get you when you say tmp folder? could you please be more clear
> on tmp folder.
>
> Are there any parameters that can be set wrt caching while report is
> being generated.?
>
> This has become very critical and we need to find a fix forit.
>
> Any help regarding this is highly appreciated.
>
> Thanks,
> Hari Priya
|
|
|
Powered by
FUDForum. Page generated in 0.04552 seconds