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

  1. ,
    via oracle.com by Unknown author

    An easy way to solve OutOfMemoryError in java is to increase the maximum heap size by using JVM options -Xmx512M, this will immediately solve your OutOfMemoryError.

  2. ,
    via Stack Overflow by Eugene Yokota

    In Eclipse : go to Run --> Run Configurations --> then select the project under maven build --> then select the tab "JRE" --> then enter -Xmx1024m.

    This should increase the memory heap for all the builds/projects. The above memory size is 1 GB.

Solutions on the web

via Stack Overflow by Unknown author, 2 years ago
via Google Groups by david ruescas, 2 years ago
java.lang.OutOfMemoryError: Java heap space	at java.util.Arrays.copyOf(Arrays.java:2786)	at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)	at java.io.OutputStream.write(OutputStream.java:58)	at oracle.apps.xdo.delivery.smtp.StreamDataSource.(Unknown Source)	at oracle.apps.xdo.delivery.smtp.Attachment.addAttachment(Unknown Source)	at oracle.apps.xdo.delivery.smtp.Attachment.addHtmlAttachment(Unknown Source)	at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.generateMHTML(Unknown Source)	at oracle.apps.xdo.generator.pseudo.FlowMHTMLGenerator.close(Unknown Source)	at oracle.apps.xdo.template.fo.FOProcessingEngine.process(Unknown Source)	at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)	at oracle.apps.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.java:91)	at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:282)	at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:81)	at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:678)	at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)	at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)	at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)	at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)	at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)	at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:86)	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)