Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0009796
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformcriticalalways2009-07-07 12:582009-07-16 17:55
ReportervmromanosView Statuspublic 
Assigned Toiperdomo 
PriorityimmediateResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Versionpi
OSLinux 32 bitDatabasePostgreSQLJava version1.6
OS VersionUbuntu 8.04Database version8.3.7Ant version1.7.0
Product VersionpiSCM revisiond3aa261a64fc 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0009796: PermGen space while generating Jasper reports

DescriptionThe 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)
Steps To ReproduceTry to run any PDF Jasper Report.
Example:
1- Financial management->Accounting->Analysis tools->General Ledger report
2- Introduce mandatory fields
3- Print it
Proposed SolutionRevert 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0009657 closedvmromanos General ledger report some fields are not translated 

-  Notes
(0017995)
vmromanos (manager)
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 (developer)
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

- Issue History
Date Modified Username Field Change
2009-07-07 12:58 vmromanos New Issue
2009-07-07 12:58 vmromanos Assigned To => rafaroda
2009-07-07 13:00 vmromanos Relationship added blocks 0009657
2009-07-07 13:02 rafaroda Assigned To rafaroda => iperdomo
2009-07-07 13:02 rafaroda Priority normal => immediate
2009-07-07 13:02 rafaroda Status new => scheduled
2009-07-08 08:54 vmromanos Status scheduled => closed
2009-07-08 08:54 vmromanos Note Added: 0017995
2009-07-08 08:54 vmromanos Resolution open => no change required
2009-07-08 09:26 rafaroda Note Added: 0018001
2009-07-16 17:55 anonymous sf_bug_id 0 => 2822588


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker