Jump to content
We've recently updated our Privacy Statement, available here ×

gayachalam

Members
  • Posts

    2
  • Joined

  • Last visited

gayachalam's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Hi, Thanks a lot for the suggestions. 1) The out of memory trace clearly shows that the OoM is thrown whiling filling the sub report. I guess the Jasper went on an infinite loop. Possible reasons could be a) The sub report is placed at the end of the page. Actually the sub report is given in the outer most group's footer. This is my business requirement. b) The sub report I used has margins. 2)I removed the margins in the sub report and tried to generate the report. Now I'm able to generate the report for the specified number of records. 3) Then I tried to generate report 1.4 million records with the sub report being executed for 143,000 times. My memory settings was 1 GB. I ran through a standalone java class. 4) After 22 hours I got an out of memory error. But this time I didn't get any trace. Just one line "Out of Memory error". 5) I upgraded my reports to Jasper 1.5 and used the vitualizer. 6) Even after using the virtualizer, constructed with 5000 pages, I'm getting an out of memory error after 22 hours. This time also I had the memory of 1 GB. I guess this time the issue could be with the large size of the Jasper Print object which will be loaded into the memory. Is there any limitation about the size of the print object? Thanks & Regards, Arun.
  2. Hi, I'm getting out of memory error while filling a subreport. Following is the stack trace I get. net.sf.jasperreports.engine.JRException at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRFillBand.prepareElements(JRFillBand.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java(Inlined Compiled Code)) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooter(JRVerticalFiller.java(Inlined Compiled Code)) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooters(JRVerticalFiller.java(Inlined Compiled Code)) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java(Inlined Compiled Code)) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) at com.taxware.twe.report.ConnectionReportGenerator.generateTempReportFromQuery(ConnectionReportGenerator.java:588) ... 12 more Caused by: java.lang.OutOfMemoryError at java.text.RuleBasedBreakIterator$Builder.buildCharCategories(RuleBasedBreakIterator.java(Compiled Code)) at java.text.RuleBasedBreakIterator$Builder.buildBreakIterator(RuleBasedBreakIterator.java:895) at java.text.RuleBasedBreakIterator.<init>(RuleBasedBreakIterator.java:284) at java.text.BreakIterator.createBreakInstance(BreakIterator.java:537) at java.text.BreakIterator.getBreakInstance(BreakIterator.java(Inlined Compiled Code)) at java.text.BreakIterator.getLineInstance(BreakIterator.java(Inlined Compiled Code)) at java.text.BreakIterator.getLineInstance(BreakIterator.java(Inlined Compiled Code)) at java.awt.font.LineBreakMeasurer.<init>(LineBreakMeasurer.java(Inlined Compiled Code)) at net.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java(Compiled Code)) at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRFillTextField.prepare(JRFillTextField.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRFillBand.prepareElements(JRFillBand.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java(Inlined Compiled Code)) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnHeader(JRVerticalFiller.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java(Compiled Code)) at net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java(Compiled Code)) I'm using Jasper-0.6.7. I'm using the connection object to get the data from my database. The JDK used is Java 1.4.2_08. I'm getting the same out of memory issue even if I upgrade to Jasper-1.2.5. The out of memory error comes while getting the Jasper print object. Also the out of memrory issue comes only when I use the sub report in my Jasper. If the sub report is not used for the same number of records I'm able to generate the report. Unfortunately I've to use sub report as my requirement demands it. The sub report is in a group footer.I'm using a maximum heap of 1024M (1 GB). The number of records I'm trying to display 143,954 records. The sub report is executed 22,893 times as the sub report is in a group footer. I'm getting this error only when I've more number of records to display in the report. Is there any known issue with Jasper when the number of records grow beyond a threashold limit? I'm struck with this issue. Any help is greatly appreciated. Thanks & Regards, Arunachalam Post edited by: gayachalam, at: 2006/09/06 03:54 Post edited by: gayachalam, at: 2006/09/06 05:30
×
×
  • Create New...