AnsweredAssumed Answered

ProcessDiagramGenerator.generateDiagram - java.lang.OutOfMemoryError: Java heap space

Question asked by lixkid on Jul 11, 2013
Latest reply on Jul 12, 2013 by jbarrez
Hi,

I'm trying to generate a PNG image of my process with ProcessDiagramGenerator.generateDiagram method, but this method throws an "javax.el.ELException: java.lang.OutOfMemoryError: Java heap space" exception. Possible reason for this exception is the size of my process, because I haven't encountered this problem while trying to generate an image for significantly smaller processes.

Have somebody resolved similar kind of issue?

Full stackstrace of an exception is as follows:

SEVERE: Error in streaming dynamic resource. java.lang.OutOfMemoryError: Java heap space
SEVERE: javax.el.ELException: java.lang.OutOfMemoryError: Java heap space
   at javax.el.BeanELResolver.getValue(BeanELResolver.java:368)
   at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
   at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
   at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
   at com.sun.el.parser.AstValue.getValue(AstValue.java:183)
   at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)
   at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
   at org.primefaces.application.PrimeResourceHandler.handleResourceRequest(PrimeResourceHandler.java:64)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:591)
   at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
   at hr.banksoft.filter.MobileFilter.doFilter(MobileFilter.java:68)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
   at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
   at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
   at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
   at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
   at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
   at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
   at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
   at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
   at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
   at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
   at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
   at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
   at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
   at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
   at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
   at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
   at java.lang.Thread.run(Thread.java:724)

Outcomes