|
Re: Report API is caching results [message #261057 is a reply to message #261003] |
Fri, 09 November 2007 17:42 |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Andrew,
Caching should be disabled by default. Can you post the code and the
report?
Thanks
Jason
Andrew wrote:
> I have done multiple searches on this and nothing seems to really have a
> definitive answer on how to get rid of caching. I am using version
> 2.2.1 of BIRT. When I run multiple reports in succession using the API,
> the first report's data exists in the remaining reports. The only thing
> I have found is from Jason which says: "Are you rewriting the
> rptdocument? Dataset results get cached in the rptdocument. Try
> deleting the report document or using a different name."
> I have no idea what it means to delete the report document. What report
> document? I'm not creating anything. The pertaining lines of my code
> to open and run the report are below:
>
> runnable = engine.openReportDesign(resource.getInputStream());
> IRunAndRenderTask runAndRenderTask =
> engine.createRunAndRenderTask(runnable);
> runAndRenderTask.run(); runAndRenderTask.close();
>
> Does anyone know how to get rid of this caching? Thank you for any help
> you can provide!
>
> Andrew
>
|
|
|
|
|
|
|
|
|
Re: Report API is caching results [message #261196 is a reply to message #261096] |
Mon, 12 November 2007 14:54 |
Eclipse User |
|
|
|
Originally posted by: msjackson1019.gmail.com
Gary,
I tried your suggestions to delete the temporary files and folders created
by BIRT after running my report the first time, but I ran into some errors
when I tried to run the second time.
Here is the information it logs when I try to run the second time (after
clearing my temp folder):
Nov 12, 2007 8:38:04 AM org.eclipse.birt.data.engine.impl.DataEngineImpl
<init>
INFO: Data Engine starts up
Nov 12, 2007 8:38:04 AM
org.eclipse.birt.data.engine.odaconsumer.ConnectionManager
addProfileProviderService( Map )
INFO: Added default property service:
org.eclipse.datatools.connectivity.oda.profile.connectionPro pertyService
Nov 12, 2007 8:38:05 AM
org.eclipse.birt.report.engine.data.dte.DteDataEngine doPrepareQuery
SEVERE: There is an error in saving files of data set cache.
C:\Documents and Settings\myuserid\Local
Settings\Temp\BirtDataTemp11948772926810\session_11948772926 960\data.data
(The system cannot find the path specified)
There is an error in saving files of data set cache.
C:\Documents and Settings\myuserid\Local
Settings\Temp\BirtDataTemp11948772926810\session_11948772926 960\data.data
(The system cannot find the path specified)
org.eclipse.birt.report.data.adapter.api.AdapterException: There is an
error in saving files of data set cache.
C:\Documents and Settings\myuserid\Local
Settings\Temp\BirtDataTemp11948772926810\session_11948772926 960\data.data
(The system cannot find the path specified)
There is an error in saving files of data set cache.
C:\Documents and Settings\myuserid\Local
Settings\Temp\BirtDataTemp11948772926810\session_11948772926 960\data.data
(The system cannot find the path specified)
at
org.eclipse.birt.report.data.adapter.impl.DataRequestSession Impl.prepare(DataRequestSessionImpl.java:476)
at
org.eclipse.birt.report.engine.data.dte.DteDataEngine.doPrep areQuery(DteDataEngine.java:100)
at
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.p repare(AbstractDataEngine.java:138)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:94)
at
org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.execute(WrappedReportExecutor.java:59)
at
org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplciateReportExecutor.execute(SuppressDuplciateReportExec utor.java:51)
at
org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.execute(WrappedReportExecutor.java:59)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:138)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:68)
at com.boeing.engine.ReportRunner.runReport(ReportRunner.java:1 80)
at
com.boeing.rmi.ReportEngineImpl.executeReport(ReportEngineIm pl.java:149)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.ja va:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspo rt.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCP Transport.java:701)
at java.lang.Thread.run(Thread.java:534)
Nov 12, 2007 8:38:05 AM
org.eclipse.birt.data.engine.odaconsumer.ConnectionManager
addProfileProviderService( Map )
INFO: Added default property service:
org.eclipse.datatools.connectivity.oda.profile.connectionPro pertyService
Nov 12, 2007 8:38:05 AM
org.eclipse.birt.report.engine.data.dte.DteDataEngine doExecuteQuery
SEVERE: There is an error in saving files of data set cache.
C:\Documents and Settings\myuserid\Local
Settings\Temp\BirtDataTemp11948772926810\session_11948772926 960\data.data
(The system cannot find the path specified)
Nov 12, 2007 8:38:05 AM
org.eclipse.birt.report.engine.data.dte.DteDataEngine doExecuteCube
SEVERE: There is an error in saving files of data set cache.
C:\Documents and Settings\myuserid\Local
Settings\Temp\BirtDataTemp11948772926810\session_11948772926 960\data.data
(The system cannot find the path specified)
There is an error in saving files of data set cache.
C:\Documents and Settings\myuserid\Local
Settings\Temp\BirtDataTemp11948772926810\session_11948772926 960\data.data
(The system cannot find the path specified)
Nov 12, 2007 8:38:05 AM
org.eclipse.birt.report.item.crosstab.core.re.executor.Cross tabReportItemExecutor
execute
SEVERE: The cube result for crosstab is invalid(=null).
Nov 12, 2007 8:38:05 AM org.eclipse.birt.data.engine.impl.DataEngineImpl
shutdown
INFO: Data engine shuts down
I then restarted my report server and ran the report. This time I just
deleted the files inside of the BirtDataTemp...\session... folders and
re-ran the report. This seemed to work and the data from the second run
was correct. This definitely seems like a bug to me.
Thanks,
Erica Jackson
|
|
|
Re: Report API is caching results [message #261228 is a reply to message #261196] |
Mon, 12 November 2007 15:53 |
Eclipse User |
|
|
|
Originally posted by: msjackson1019.gmail.com
I did some further checking and it seems that the problem is not with
cubes, but with multiple data sets. I have a report with a cube that only
has one data set, so I tested it and it seems to be working fine. I also
have a report without any cubes with multiple datasets and I am noticing
the same problem of the data not refreshing with this report.
I did notice there is a method that deletes the temporary files in the
DataEngineImpl class. It looks like it only deletes one folder, even
though when you have multiple data sets, it creates a temporary folder for
each dataset.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04267 seconds