Jump to content
Changes to the Jaspersoft community edition download ×

OutOfMemoryError during table rendering


logasram

Recommended Posts

Hi,

Our application is a legacy application.
We are using JasperReports-6.1.0 for PDF reports generation.
We have a table that is rendered from DataSet. It works fine with DataSet size less than 5 and more than 15. 
But we are getting OutOfMemoryError when the dataset size is between 4 and 16, which is very strange for us.

Kindly help me here. Thanks!

Error Log:
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at sun.font.FileFontStrike.getGlyphMetrics(FileFontStrike.java:817) ~[na:1.8.0_191]
        at sun.font.FileFontStrike.getGlyphMetrics(FileFontStrike.java:813) ~[na:1.8.0_191]
        at sun.font.StandardGlyphVector$GlyphStrike.addDefaultGlyphAdvance(StandardGlyphVector.java:1791) ~[na:1.8.0_191]
        at sun.font.StandardGlyphVector.initPositions(StandardGlyphVector.java:1323) ~[na:1.8.0_191]
        at sun.font.StandardGlyphVector.getLogicalBounds(StandardGlyphVector.java:380) ~[na:1.8.0_191]
        at java.awt.Font.getStringBounds(Font.java:2423) ~[na:1.8.0_191]
        at java.awt.Font.getStringBounds(Font.java:2331) ~[na:1.8.0_191]
        at java.awt.Font.getStringBounds(Font.java:2365) ~[na:1.8.0_191]
        at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.measureParagraphFragment(SimpleTextLineWrapper.java:728) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.measureLine(SimpleTextLineWrapper.java:585) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.nextLine(SimpleTextLineWrapper.java:523) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.TextMeasurer.renderNextLine(TextMeasurer.java:829) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:632) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:573) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:672) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:186) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:330) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:382) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:357) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:435) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:395) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBreak(JRVerticalFiller.java:1926) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBreak(JRVerticalFiller.java:1953) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2061) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:755) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:262) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:551) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:411) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:122) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:667) ~[jasperreports-6.1.0.jar!/:6.1.0]
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:983) ~[jasperreports-6.1.0.jar!/:6.1.0]

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...