• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

out of memory :java heap size problem

 
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting java heap size error.. when i googled i found that the memory need to be increased in catalina.sh fileas i am running my application in Tomcat. But i installed Tomcat as windows service and i dont find any catalina.sh inside Catalina-Base/bin directory. Can anybody suggest me how do i overcome the above error.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll move this to our Tomcat forum.

Can you find a shortcut in your start menu called "Configure Tomcat"? With that, on tab 4 (Java) you can specify the memory requirements, and any other system property.
 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
YEs in the tomcat/bin directory i could see the file tomcat5w.exe.. in that 4 tab is java and there Initial memory pool is 512MB and maximum memory pool is 512MB
..how much more do i need to set up? is it just sufficient to set it up here ....

Also i would like to tell the root cause of the error:

I am calling crystal report from Java servlet and my report gets displayed properly but in the eclipse console i get the following error repetedly

Assertion Failed: Formula context returned the wrong type of value for a field.
java.lang.Throwable
at com.crystaldecisions.reports.common.j.b.a(Unknown Source)
at com.crystaldecisions.reports.formulas.al.if(Unknown Source)
at com.crystaldecisions.reports.formulas.ab.if(Unknown Source)
at com.crystaldecisions.reports.formulas.al.if(Unknown Source)
at com.crystaldecisions.reports.formulas.ab.a(Unknown Source)
at com.crystaldecisions.reports.formulas.ab.if(Unknown Source)
at com.crystaldecisions.reports.formulas.al.if(Unknown Source)
at com.crystaldecisions.reports.formulas.ab.long(Unknown Source)
at com.crystaldecisions.reports.formulas.ab.if(Unknown Source)
at com.crystaldecisions.reports.formulas.al.if(Unknown Source)
at com.crystaldecisions.reports.formulas.al.if(Unknown Source)
at com.crystaldecisions.reports.formulas.ab.if(Unknown Source)
at com.crystaldecisions.reports.formulas.al.if(Unknown Source)
at com.crystaldecisions.reports.formulas.al.if(Unknown Source)
at com.crystaldecisions.reports.formulas.ab.if(Unknown Source)
at com.crystaldecisions.reports.formulas.al.if(Unknown Source)
at com.crystaldecisions.reports.formulas.al.a(Unknown Source)
at com.crystaldecisions.reports.formulas.al.if(Unknown Source)
at com.crystaldecisions.reports.formulas.al.long(Unknown Source)
at com.crystaldecisions.reports.formulas.n.a(Unknown Source)
at com.crystaldecisions.reports.formulas.FormulaInfo.for(Unknown Source)
at com.crystaldecisions.reports.formulas.FormulaService.evaluate(Unknown Source)
at com.crystaldecisions.reports.reportdefinition.b2.if(Unknown Source)
at com.crystaldecisions.reports.dataengine.o.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.o.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.n.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.n.if(Unknown Source)
at com.crystaldecisions.reports.dataengine.a5.if(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.a8.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.a8.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.a8.goto(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.a8.for(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bl.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bn.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bn.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bu.for(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bl.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.b0.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.a4.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.d.l.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bu.for(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.d.l.for(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bl.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.d.o.h(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.d.o.aA(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface.g.do(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPage(Unknown Source)
at com.crystaldecisions.report.web.event.aa.a(Unknown Source)
at com.crystaldecisions.report.web.event.aa.a(Unknown Source)
at com.crystaldecisions.report.web.event.bx.a(Unknown Source)
at com.crystaldecisions.report.web.component.g.for(Unknown Source)
at com.crystaldecisions.report.web.component.g.a(Unknown Source)
at com.crystaldecisions.report.web.component.g.if(Unknown Source)
at com.crystaldecisions.report.web.component.n.a(Unknown Source)
at com.crystaldecisions.report.web.event.b1.broadcast(Unknown Source)
at com.crystaldecisions.report.web.event.as.a(Unknown Source)
at com.crystaldecisions.report.web.WorkflowController.if(Unknown Source)
at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
at services.GenerateBill.doGet(GenerateBill.java:127)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)

When i click the print button from the report displyed it gives out

out of memory: java heap size error...
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic