java.lang.OutOfMemoryError: Java heap space

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via forrest-user by Heather Phipps, 1 year ago
via forrest-user by Heather Phipps, 1 year ago
via Atlassian JIRA by Mike Knight, 1 year ago
Java heap space
via Atlassian JIRA by Mike Knight, 1 year ago
Java heap space
via Stack Overflow by Sheldon Ross
, 2 years ago
Java heap space at java.util.Arrays.copyOf(Arrays.java:2271) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
java.lang.OutOfMemoryError: Java heap space
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)
at org.apache.fop.tools.IOUtil.copyStream(IOUtil.java:77)
at org.apache.fop.tools.IOUtil.toByteArray(IOUtil.java:95)
at org.apache.fop.fonts.FontFileReader.init(FontFileReader.java:76)
at org.apache.fop.fonts.FontFileReader.(FontFileReader.java:105)
at org.apache.fop.render.pdf.fonts.MultiByteFont.getFontFile(MultiByteFont.java:237)
at org.apache.fop.render.pdf.fonts.LazyFont.getFontFile(LazyFont.java:218)
at org.apache.fop.pdf.PDFDocument.makeFontDescriptor(PDFDocument.java:974)
at org.apache.fop.pdf.PDFDocument.makeFont(PDFDocument.java:875)
at org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:250)
at org.apache.fop.render.pdf.PDFRenderer.stopRenderer(PDFRenderer.java:249)
at org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:204)
at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.cocoon.core.container.handler.PoolableComponentHandler$ProxyHandler.invoke(PoolableComponentHandler.java:147)
at undefined.$Proxy6.endDocument(Unknown Source)
at org.apache.cocoon.components.sax.XMLTeePipe.endDocument(XMLTeePipe.java:67)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1378)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3458)
at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(UnknownSource)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(UnknownSource)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(UnknownSource)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)

Users with the same issue

32 times, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.