Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Reports are erroring out when run in parallel(Reports are erroring out when run in parallel)
Reports are erroring out when run in parallel [message #841116] Tue, 10 April 2012 19:20 Go to next message
harip kaligo is currently offline 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 19: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 11:18 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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 #841775 is a reply to message #841638] Wed, 11 April 2012 14:10 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligo
Messages: 74
Registered: July 2011
Member
Jason,

We are using custom tld to view the reports.
Re: Reports are erroring out when run in parallel [message #841783 is a reply to message #841638] Wed, 11 April 2012 14:10 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligo
Messages: 74
Registered: July 2011
Member
Jason,

We are using custom tld to view the reports.
Re: Reports are erroring out when run in parallel [message #841799 is a reply to message #841783] Wed, 11 April 2012 14:38 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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 #841815 is a reply to message #841799] Wed, 11 April 2012 14:59 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligo
Messages: 74
Registered: July 2011
Member
Jason,
Yes we creating only one engine and wrapping it in a
singleton.
We are also closing the task, rptdcoument and also we are giving a unique name to every rptdocument thts generated.
Re: Reports are erroring out when run in parallel [message #841913 is a reply to message #841815] Wed, 11 April 2012 17:17 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligo
Messages: 74
Registered: July 2011
Member
Jason,

Any other thoughts on what could be wrong?
Re: Reports are erroring out when run in parallel [message #841925 is a reply to message #841913] Wed, 11 April 2012 17:30 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligo
Messages: 74
Registered: July 2011
Member
Jason,

We are getting below error when running a report with 25k

error generating report org.eclipse.birt.report.engine.api.EngineException: There is an error in saving files of data set cache.
/apps/GTS/tmp/u_wtydm/ccerrep/cache/DataEngine_337975205_13/DataSetCacheObject_342286590_5/data.data (No such file or directory)


Any idea on the DataCache configurations we need to set.
Re: Reports are erroring out when run in parallel [message #842697 is a reply to message #841116] Thu, 12 April 2012 10:41 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligo
Messages: 74
Registered: July 2011
Member
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 #842727 is a reply to message #842697] Thu, 12 April 2012 11:10 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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 #842850 is a reply to message #842727] Thu, 12 April 2012 13:11 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligo
Messages: 74
Registered: July 2011
Member
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
Re: Reports are erroring out when run in parallel [message #842899 is a reply to message #842850] Thu, 12 April 2012 14:14 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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
Previous Topic:Dynamic adaptable image
Next Topic:passing a parameter to a jdbc driver
Goto Forum:
  


Current Time: Sat Jul 26 15:27:45 EDT 2014

Powered by FUDForum. Page generated in 0.02980 seconds