Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009796Openbravo ERPA. Platformpublic2009-07-07 12:582009-07-16 17:55
vmromanos 
iperdomo 
immediatecriticalalways
closedno change required 
20Ubuntu 8.04
pi 
pi 
Core
No
0009796: PermGen space while generating Jasper reports
The application is unable to generate a Jasper report (renderJR() method) because a PermGen space error:

java.lang.OutOfMemoryError: PermGen space
27623 [http-8080-6] ERROR org.openbravo.erpCommon.utility.VerticalMenu - Error captured:
javax.servlet.ServletException
    at org.openbravo.erpCommon.utility.VerticalMenu.doPost(VerticalMenu.java:65)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:224)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:324)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:79)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
Try to run any PDF Jasper Report.
Example:
1- Financial management->Accounting->Analysis tools->General Ledger report
2- Introduce mandatory fields
3- Print it
Revert the change that causes this error. It must be something done in less than two or three days ago, because before this date it didn't happen.
No tags attached.
blocks defect 0009657 closed vmromanos General ledger report some fields are not translated 
Issue History
2009-07-07 12:58vmromanosNew Issue
2009-07-07 12:58vmromanosAssigned To => rafaroda
2009-07-07 13:00vmromanosRelationship addedblocks 0009657
2009-07-07 13:02rafarodaAssigned Torafaroda => iperdomo
2009-07-07 13:02rafarodaPrioritynormal => immediate
2009-07-07 13:02rafarodaStatusnew => scheduled
2009-07-08 08:54vmromanosStatusscheduled => closed
2009-07-08 08:54vmromanosNote Added: 0017995
2009-07-08 08:54vmromanosResolutionopen => no change required
2009-07-08 09:26rafarodaNote Added: 0018001
2009-07-16 17:55anonymoussf_bug_id0 => 2822588

Notes
(0017995)
vmromanos   
2009-07-08 08:54   
It was not a bug, but a configuration problem.

If other people has this problem in the future, please remember to add the options "-vmargs -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=512M" in the Eclipse's server configuration.
(0018001)
rafaroda   
2009-07-08 09:26   
This is documented in http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Installation_and_setup_of_Eclipse_IDE#Defining_Tomcat_server [^]

If you get this error while running tomcat. java.lang.OutOfMemoryError: PermGen space. You have to alocate more memory for you tomcat instance, to configure it, just click on "Open Launch Configuration" in the above window and you'll see the launch configuration window, open the "Arguments" tab an add the line below to just in the end of the "VM arguments" filed. Remember to add the information just at the end of the file, without any spaces:
-vmargs -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=512M