Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Birt Report generated without data for 2nd time
deekay
Hi,<br />
<br />
I'm using the below code logic to generate the BIRT report in PDF from Servlet.<br />
<a class='bbc_url' href='
http://wiki.eclipse.org/Java_-_Dynamic_Report_Servlet_(BIRT)'>http://wiki.eclipse.org/Java_-_Dynamic_Report_Servlet_(BIRT)</a><br
/>
<br />
When i generate the BIRT report for first time it successfully generates. I'm unable to generate the BIRT report if is call BirtEngine.destroyBirtEngine() method in doPost() method at the end. This generates the report only one time. Can anyone help me to get rid of this issue?<br />
<br />
Thanks,<br />
Deekay
Find more posts tagged with
Comments
JasonW
Deekay,
Why are you destroying the engine? You should only do that if the application is shutting down.
Jason
deekay
<blockquote class='ipsBlockquote' data-author="'JasonW'" data-cid="72580" data-time="1295969279" data-date="25 January 2011 - 08:27 AM"><p>
Deekay,<br />
<br />
Why are you destroying the engine? You should only do that if the application is shutting down.<br />
<br />
Jason<br /></p></blockquote>
<br />
when i generate the 70 -80 reports it starts giving me below Exception :<br />
<br />
java.lang.OutOfMemoryError: PermGen space<br />
<br />
So to release the memory i was destroying the report engine.<br />
<br />
Can you please suggest any solution to get rid of this issue?<br />
<br />
i'm using these JVM parameters (-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled)
JasonW
try adding -XX:MaxPermSize=256m
Jason