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

Solutions on the web

via Oracle Community by 843806, 2 months ago
Java heap space
via Stack Overflow by Olaf Stein
, 2 years ago
Java heap space error with bigger number combinations. For example, if I calculate permuations out of 18 numbers I get this exception: Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
at javax.swing.text.GapContent.allocateArray(GapContent.java:94)
at javax.swing.text.GapVector.resize(GapVector.java:214)
at javax.swing.text.GapVector.shiftEnd(GapVector.java:229)
at javax.swing.text.GapContent.shiftEnd(GapContent.java:345)
at javax.swing.text.GapVector.open(GapVector.java:201)
at javax.swing.text.GapVector.replace(GapVector.java:142)
at javax.swing.text.GapContent.insertString(GapContent.java:132)
at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:723)
at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:707)
at javax.swing.text.PlainDocument.insertString(PlainDocument.java:130)
at javax.swing.JTextArea.append(JTextArea.java:477)
at it.bancaditalia.oss.sdmx.helper.HelperHandler.publish(Unknown Source)
at java.util.logging.Logger.log(Logger.java:738)
at java.util.logging.Logger.doLog(Logger.java:765)
at java.util.logging.Logger.log(Logger.java:788)
at java.util.logging.Logger.finer(Logger.java:1528)
at it.bancaditalia.oss.sdmx.parser.v21.CompactDataParser.parse(Unknown Source)
at it.bancaditalia.oss.sdmx.client.RestSdmxClient.getData(Unknown Source)
at it.bancaditalia.oss.sdmx.client.RestSdmxClient.getTimeSeries(Unknown Source)
at it.bancaditalia.oss.sdmx.client.SdmxClientHandler.getSingleTimeSeries(Unknown Source)
at it.bancaditalia.oss.sdmx.client.SdmxClientHandler.getTimeSeries(Unknown Source)
at it.bancaditalia.oss.sdmx.client.SdmxClientHandler.getTimeSeries(Unknown Source)
at it.bancaditalia.oss.sdmx.client.StataClientHandler.getTimeSeries(Unknown Source)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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