{"id":5456,"date":"2014-03-30T22:16:31","date_gmt":"2014-03-30T22:16:31","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/outofmemoryerror-permgen-space-jasper-report-with-spring-running-on-tomcat-collection-of-common-programming-errors\/"},"modified":"2014-03-30T22:16:31","modified_gmt":"2014-03-30T22:16:31","slug":"outofmemoryerror-permgen-space-jasper-report-with-spring-running-on-tomcat-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/outofmemoryerror-permgen-space-jasper-report-with-spring-running-on-tomcat-collection-of-common-programming-errors\/","title":{"rendered":"OutOfMemoryError: PermGen Space &mdash; Jasper Report with Spring running on Tomcat-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<p>The issue can happen on page without any Jasper Report components. It seems the Jasper Report bean is trying to find a tag lib all the time when <code>a request is processed by the back end and responded to the front end<\/code>. Normally from log file I can see above exception will not throw until all back end operations(JPA management) are complete<\/p>\n<\/li>\n<li>\n<p>When run log4J on debug mode, I see tons of information showing something like parsing\/rendering the all components from Jasper template(textfields, pen, box&#8230;), there is a small cut from the huge log:<\/p>\n<pre><code>2012-10-17 15:29:12,025 -- DEBUG -- org.apache.commons.digester.Digester.sax -- startElement(http:\/\/jasperreports.sourceforge.net\/jasperreports,textElement,textElement)\n2012-10-17 15:29:12,025 -- DEBUG -- org.apache.commons.digester.Digester --   Pushing body text ''\n2012-10-17 15:29:12,025 -- DEBUG -- org.apache.commons.digester.Digester --   New match='jasperReport\/summary\/band\/textField\/textElement'\n2012-10-17 15:29:12,025 -- DEBUG -- org.apache.commons.digester.Digester --   Fire begin() for FactoryCreateRule[className=net.sf.jasperreports.engine.xml.JRTextElementFactory, attributeName=null, creationFactory=net.sf.jasperreports.engine.xml.JRTextElementFactory@12dc6007]\n2012-10-17 15:29:12,025 -- DEBUG -- org.apache.commons.digester.Digester -- [FactoryCreateRule]{jasperReport\/summary\/band\/textField\/textElement} New net.sf.jasperreports.engine.design.JRDesignTextField\n2012-10-17 15:29:12,025 -- DEBUG -- org.apache.commons.digester.Digester.sax -- ignorableWhitespace()\n<\/code><\/pre>\n<p>Still, this log is generated when a request to the page which does not contains any Jasper component.<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The issue can happen on page without any Jasper Report components. It seems the Jasper Report bean is trying to find a tag lib all the time when a request is processed by the back end and responded to the front end. Normally from log file I can see above exception will not throw until [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5456","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5456"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5456\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}