Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Download report as file (PPT or PDF) not working(download popup appears, but "opened so far" endlessly )
Download report as file (PPT or PDF) not working [message #518490] Thu, 04 March 2010 09:51 Go to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Birt Version: 2.5.1.v20090624
Eclipse Version: 3.5.0.v20090611a
Windows XP

Hello,

I am working on a big report, but experienced this also with smal reports, and also on another PC:

I open the report with the WebViewer, which runs as expected and I can see every page, but when I try to download the report as a file (I tested it with PPT (the required format) and PDF) the "saving pop up" window appears and starts displaying the "transfer rate" (around 200 KB/Sec) and the "Opened so far", which is counting and counting with apparently no end (I wait until 200MB and cancelled, the report should be around 3 MB as PPT).

I also tried producing directly a PPT file from the Report Designer in Eclipse, which has the same result.

The aim of this project is to have the report as a file, which I was able to do so far. But suddenly now (after days and days of development) this is not possible anymore.

Any idea is very welcome.

Thanks.
Re: Download report as file (PPT or PDF) not working [message #518657 is a reply to message #518490] Thu, 04 March 2010 12:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

Are you getting anything in the log file?

Jason

tero wrote:
> Birt Version: 2.5.1.v20090624
> Eclipse Version: 3.5.0.v20090611a
> Windows XP
>
> Hello,
>
> I am working on a big report, but experienced this also with smal
> reports, and also on another PC:
>
> I open the report with the WebViewer, which runs as expected and I can
> see every page, but when I try to download the report as a file (I
> tested it with PPT (the required format) and PDF) the "saving pop up"
> window appears and starts displaying the "transfer rate" (around 200
> KB/Sec) and the "Opened so far", which is counting and counting with
> apparently no end (I wait until 200MB and cancelled, the report should
> be around 3 MB as PPT).
>
> I also tried producing directly a PPT file from the Report Designer in
> Eclipse, which has the same result.
>
> The aim of this project is to have the report as a file, which I was
> able to do so far. But suddenly now (after days and days of development)
> this is not possible anymore.
>
> Any idea is very welcome.
>
> Thanks.
Re: Download report as file (PPT or PDF) not working [message #518674 is a reply to message #518657] Thu, 04 March 2010 17:47 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello Jason,

Can you please point me on how to look at the log file?

Thanks,
Tero
Re: Download report as file (PPT or PDF) not working [message #518711 is a reply to message #518674] Thu, 04 March 2010 19:29 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

In the logs directory of the web viewer. You can set the log level and
location in the web.xml.

Jason

tero wrote:
> Hello Jason,
>
> Can you please point me on how to look at the log file?
>
> Thanks,
> Tero
Re: Download report as file (PPT or PDF) not working [message #519011 is a reply to message #518711] Fri, 05 March 2010 16:56 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Thanks Jason,

I tried changing the log level to FINEST within the viewer plugin configuration on
<eclipse-install>\plugins\org.eclipse.birt.report.viewer_<version >\birt\WEB-INF\web.xml. I have two different Birt versions there:
org.eclipse.birt.report.viewer_2.5.0.v20090520
org.eclipse.birt.report.viewer_2.5.1.v20090821
so I changed both (another source of errors? I inherited the project and therefore am very careful in changing those things...).

I see the folder "logs" and a readme.txt file there but no log is being created. Is that not the Web.xml file I should use?

After that not working I tried deploying the report in Tomcat. There, in a seam-app, I configure the web.xml in WEB-INF, and that did work with the logs. But here the report is not successfully created due to
SEVERE: An OutOfMemory error happened while running the report.

Do you think that is related to the fact that I cannot download the report after getting it in the WebViewer from Eclipse (which is possible, contrary to deploying it in Tomcat) .

Two questions then:

1- How can I configure the Eclipse Birt WebViewer to log?
2- Do you think this is the same issue in both environments even if in Tomcat the report doesn't even successfully built?

Thanks!
Tero
Re: Download report as file (PPT or PDF) not working [message #519060 is a reply to message #519011] Fri, 05 March 2010 18:26 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

There is a bug for setting log file in designer. By default it puts the
log file in the viewer plugins logs directory in the meta data folder of
the workspace. The default level is warning. Check to see if you have
anything there.

I am not certain why you have two viewer plugins. It looks like the
installation may be mixed up.

The out of memory error may have to do with the perm gen space.
Try adding this to the JAVA_OPS on startup of the app server:
-XX:MaxPermSize=256m

I did this in catalina.bat for tomcat.

Jason

tero wrote:
> Thanks Jason,
>
> I tried changing the log level to FINEST within the viewer plugin
> configuration on
> <eclipse-install>\plugins\org.eclipse.birt.report.viewer_<version
> >\birt\WEB-INF\web.xml. I have two different Birt versions there:
> org.eclipse.birt.report.viewer_2.5.0.v20090520
> org.eclipse.birt.report.viewer_2.5.1.v20090821
> so I changed both (another source of errors? I inherited the project and
> therefore am very careful in changing those things...).
>
> I see the folder "logs" and a readme.txt file there but no log is being
> created. Is that not the Web.xml file I should use?
>
> After that not working I tried deploying the report in Tomcat. There, in
> a seam-app, I configure the web.xml in WEB-INF, and that did work with
> the logs. But here the report is not successfully created due to SEVERE:
> An OutOfMemory error happened while running the report.
>
> Do you think that is related to the fact that I cannot download the
> report after getting it in the WebViewer from Eclipse (which is
> possible, contrary to deploying it in Tomcat) .
>
> Two questions then:
>
> 1- How can I configure the Eclipse Birt WebViewer to log?
> 2- Do you think this is the same issue in both environments even if in
> Tomcat the report doesn't even successfully built?
>
> Thanks!
> Tero
Re: Download report as file (PPT or PDF) not working [message #519374 is a reply to message #519060] Mon, 08 March 2010 16:24 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello Jason,

Thanks for your recommendations. I changed the MaxPermSize accordingly and now the report is deploying.

I also found the logs in the metadata folder. I could not change the log level though.

After doing that I was able to see some warnings which I solved accordingly. E.g.:
05-Mar-2010 18:37:15 org.eclipse.birt.report.engine.executor.css.HTMLProcessor execute
SEVERE: There is a invalid value for property SIZE of element FONT in the HTML.


Nonetheless this is not solving the "download" problem. The logs in Tomcat, where I can define the log level, are no giving a hint.
The last line of log after the report builds is:
FINE: Finished preparing query.
then I click on "Export report" | PDF
and the download starts but never ends until I get an out of memory after about 5 minutes and a report size of more than 200 MB.
the log only says:
08-Mar-2010 14:20:58 org.eclipse.birt.report.engine.api.impl.RenderTask render
SEVERE: An OutOfMemory error happened while running the report.
08-Mar-2010 14:20:58 org.eclipse.birt.data.engine.impl.DataEngineImpl shutdown
FINE: Data engine shuts down


This looks like a neverending loop which puts objects in the memory...

I tried also downloading with other formats, here the results:
PPT (required for the project) + PDF: download never ends until out of memory
DOC: download apparently successful, but file not opening with the message: "Unspecified error" Error location: Line 1234, Column: 21
XLS: download apparently successful, but in a strange format + with no charts

I had a look at the line of code pointed by the DOC error and could not see anything wrong:
<w:r>
	<w:rPr>
		<w:color w:val="000000"/>
		<w:rFonts w:ascii="Verdana" w:fareast="Verdana" w:h-ansi="Verdana" w:cs="Verdana"/>
		<w:sz w:val="16"/>
		<w:sz-cs w:val="16"/>
		<w:spacing w:val="0"/>
		<w:jc w:val="center"/>
	</w:rPr>
	<w:t><![CDATA[Availability Target 99.98%]]></w:t>
</w:r>

Line 1234, Column: 21 is in the ">" in <w:r>

I experimented taking some attributes from there and even the whole <w:r> but then the same error is coming for another line like that one further down in the doc (and another and another...). The strange thing is that there are other <w:r> sections not causing errors and I cannot recognise any difference with the one above.


Another interesting issue is that if
- I use the Eclipse Birt Viewer and I try to download the report there,
- cancel because of download growing beyond 200 MB (ppt should be 4 MB) and taking very long
- and closing the Viewer and closing Eclipse
:
the Windows Task Manager is still showing the process "eclipse.exe" and that process has a continuously increasing "Mem Usage" and it has to be stopped manually there.

I don't know what I could try else. Spent already hours and hours and still no clue...
Any ideas?

Thanks!

[Updated on: Mon, 08 March 2010 16:27]

Report message to a moderator

Re: Download report as file (PPT or PDF) not working [message #519382 is a reply to message #519374] Mon, 08 March 2010 16:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

Can open a bug for this and post the report to the bug?


Jason


tero wrote:
> Hello Jason,
>
> Thanks for your recommendations. I changed the MaxPermSize accordingly
> and now the report is deploying.
>
> I also found the logs in the metadata folder. I could not change the log
> level though.
>
> After doing that I was able to see some warnings which I solved
> accordingly. E.g.:
> 05-Mar-2010 18:37:15
> org.eclipse.birt.report.engine.executor.css.HTMLProcessor execute
> SEVERE: There is a invalid value for property SIZE of element FONT in
> the HTML.
>
> Nonetheless this is not solving the "download" problem. The logs in
> Tomcat, where I can define the log level, are no giving a hint.
> The last line of log after the report builds is:
> FINE: Finished preparing query.
> then I click on "Export report" | PDF
> and the download starts but never ends until I get an out of memory
> after about 5 minutes and a report size of more than 200 MB.
> the log only says:
> 08-Mar-2010 14:20:58 org.eclipse.birt.report.engine.api.impl.RenderTask
> render
> SEVERE: An OutOfMemory error happened while running the report.
> 08-Mar-2010 14:20:58 org.eclipse.birt.data.engine.impl.DataEngineImpl
> shutdown
> FINE: Data engine shuts down
>
> This looks like a neverending loop which puts objects in the memory...
>
> I tried also downloading with other formats, here the results:
> PPT (required for the project) + PDF: download never ends until out of
> memory
> DOC: download apparently successful, but file not opening with the
> message: "Unspecified error" Error location: Line 1234, Column: 21
> XLS: download apparently successful, but in a strange format + with no
> charts
>
> I had a look at the line of code pointed by the DOC error and could not
> see anything wrong:
>
> <w:r>
> <w:rPr>
> <w:color w:val="000000"/>
> <w:rFonts w:ascii="Verdana" w:fareast="Verdana"
> w:h-ansi="Verdana" w:cs="Verdana"/>
> <w:sz w:val="16"/>
> <w:sz-cs w:val="16"/>
> <w:spacing w:val="0"/>
> <w:jc w:val="center"/>
> </w:rPr>
> <w:t><![CDATA[Availability Target 99.98%]]></w:t>
> </w:r>
>
> I experimented taking some attributes from there and even the whole
> <w:r> but then the same error is coming for another line like that one
> further down in the doc (and another and another...). The strange thing
> is that there are other <w:r> sections not causing errors and I cannot
> recognise any difference with the one above.
>
>
> Another interesting issue is that if - I use the Eclipse Birt Viewer and
> I try to download the report there, - cancel because of download growing
> beyond 200 MB (ppt should be 4 MB) and taking very long - and closing
> the Viewer and closing Eclipse
> :
> the Windows Task Manager is still showing the process "eclipse.exe" and
> that process has a continuously increasing "Mem Usage" and it has to be
> stopped manually there.
>
> I don't know what I could try else. Spent already hours and hours and
> still no clue...
> Any ideas?
>
> Thanks!
Re: Download report as file (PPT or PDF) not working [message #519602 is a reply to message #519382] Tue, 09 March 2010 12:41 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello Jason,

I found the problem after reducing the report bit by bit until it was possible to download it and then including the excluded pages one by one.

The section causing the issue is a page with three tables. These have, by default, a "Page Break Interval" of 40.
These tables go beyond the 40, but already by 25 (aprox) they are already crossing the page size defined in the Master Page.

How I see this is: there is no problem in displaying that configuration in the Birt Viewer, but as soon as I want to download it as a page-abled format (PDF, PPT, DOC (XLS did it)), there is a conflict between those "page break" definitions and the engine gets itself in an infinite loop.

I hope this helps others so that they don't have to spend days in debugging. A big handicap here is that the logs, even if FINEST, do not give a hint to the issue.

Regards,
Tero

[Updated on: Tue, 09 March 2010 12:57]

Report message to a moderator

Re: Download report as file (PPT or PDF) not working [message #519613 is a reply to message #519602] Tue, 09 March 2010 13:42 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

Thanks for the update. Can you update the bug?

Thanks

Jason

tero wrote:
> Hello Jason,
>
> I found the problem after reducing the report bit by bit until it was
> possible to download it and then including the excluded pages one by one.
>
> The section causing the issue is a page with three tables. These have,
> by default, a "Page Break Interval" of 40. These tables go beyond the
> 40, but already by 25 (aprox) they are already crossing the page size
> defined in the Master Page.
>
> How I see this is: there is no problem in displaying that configuration
> in the Birt Viewer, but as soon as I want to download it as a page-abled
> format (PDF, PPT, DOC (XLS did it)), there is a conflict between those
> "page break" definitions and the engine gets itself in an infinite loop.
>
> I hope this helps others so that they don't have to spend days in
> debugging.
>
> Regards,
> Tero
Previous Topic:DataSet column as flat String
Next Topic:Charting problems w/ViewerServlet in Spring DM
Goto Forum:
  


Current Time: Fri Dec 19 02:19:42 GMT 2014

Powered by FUDForum. Page generated in 0.02008 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software