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 GitHub by natemccoy
, 1 year ago
java.lang.OutOfMemoryError: Java heap space
at com.sun.tools.javac.util.ArrayUtils.ensureCapacity(ArrayUtils.java:60)
at com.sun.tools.javac.util.SharedNameTable.fromUtf(SharedNameTable.java:130)
at com.sun.tools.javac.util.Names.fromUtf(Names.java:342)
at com.sun.tools.javac.util.ByteBuffer.toName(ByteBuffer.java:159)
at com.sun.tools.javac.jvm.ClassWriter$CWSignatureGenerator.toName(ClassWriter.java:328)
at com.sun.tools.javac.jvm.ClassWriter$CWSignatureGenerator.access$300(ClassWriter.java:273)
at com.sun.tools.javac.jvm.ClassWriter.typeSig(ClassWriter.java:343)
at com.sun.tools.javac.jvm.ClassWriter.writeMethod(ClassWriter.java:1106)
at com.sun.tools.javac.jvm.ClassWriter.writeMethods(ClassWriter.java:1603)
at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1693)
at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1621)
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:746)
at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1572)
at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1536)
at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
at com.sun.tools.javac.main.Main.compile(Main.java:523)
at com.sun.tools.javac.main.Main.compile(Main.java:381)
at com.sun.tools.javac.main.Main.compile(Main.java:370)
at com.sun.tools.javac.main.Main.compile(Main.java:361)
at com.sun.tools.javac.Main.compile(Main.java:56)

Users with the same issue

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.