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.

java.lang.OutOfMemoryError: Java heap space	at java.util.Arrays.copyOf(Arrays.java:2367)	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)	at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)	at java.lang.StringBuilder.append(StringBuilder.java:132)	at java.lang.StringBuilder.append(StringBuilder.java:179)	at java.lang.StringBuilder.append(StringBuilder.java:72)	at java.util.Formatter$FormatSpecifier.print(Formatter.java:2865)	at java.util.Formatter$FormatSpecifier.printString(Formatter.java:2838)	at java.util.Formatter$FormatSpecifier.print(Formatter.java:2718)	at java.util.Formatter.format(Formatter.java:2488)	at java.util.Formatter.format(Formatter.java:2423)	at org.elasticsearch.common.inject.internal.Errors.format(Errors.java:474)	at org.elasticsearch.common.inject.CreationException.getMessage(CreationException.java:55)	at java.lang.Throwable.getLocalizedMessage(Throwable.java:391)	at java.lang.Throwable.toString(Throwable.java:480)	at java.util.Formatter$FormatSpecifier.printString(Formatter.java:2838)	at java.util.Formatter$FormatSpecifier.print(Formatter.java:2718)	at java.util.Formatter.format(Formatter.java:2488)	at java.util.Formatter.format(Formatter.java:2423)	at java.lang.String.format(String.java:2792)	at com.google.inject.internal.Errors.format(Errors.java:556)	at com.google.inject.internal.Errors.addMessage(Errors.java:539)	at com.google.inject.internal.Errors.errorInUserCode(Errors.java:421)	at com.google.inject.internal.Errors.errorInProvider(Errors.java:376)	at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:74)	at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61)	at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62)	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)