java.lang.OutOfMemoryError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Generated toString method: public String TrgpDocumento.toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE); } Generated error: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at org.apache.commons.lang3.builder.ToStringStyle.appendFieldSeparator(ToStringStyle.java:1503) at org.apache.commons.lang3.builder.ToStringStyle.appendFieldEnd(ToStringStyle.java:1526) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:439) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at es.gva.cit.regproy.web.TrgpTipoSoporte_Roo_ToString.ajc$interMethod$es_gva_cit_regproy_web_TrgpTipoSoporte_Roo_ToString$es_gva_cit_regproy_web_TrgpTipoSoporte$toString(TrgpTipoSoporte_Roo_ToString.aj:13) at es.gva.cit.regproy.web.TrgpTipoSoporte.toString(TrgpTipoSoporte.java:1) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuffer.append(StringBuffer.java:219) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:586) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:550) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at es.gva.cit.regproy.web.TrgpDocumentoAnexado_Roo_ToString.ajc$interMethod$es_gva_cit_regproy_web_TrgpDocumentoAnexado_Roo_ToString$es_gva_cit_regproy_web_TrgpDocumentoAnexado$toString(TrgpDocumentoAnexado_Roo_ToString.aj:13) at es.gva.cit.regproy.web.TrgpDocumentoAnexado.toString(TrgpDocumentoAnexado.java:1) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuilder.append(StringBuilder.java:115) at java.util.AbstractCollection.toString(AbstractCollection.java:422) at org.hibernate.collection.PersistentSet.toString(PersistentSet.java:333) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuffer.append(StringBuffer.java:219) I attach the db managed entity. Java heap space can be produced by cycling references between entities ?
    via by Mario Martínez Sánchez - gvNIX - DISID,
  • Generated toString method: public String TrgpDocumento.toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE); } Generated error: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at org.apache.commons.lang3.builder.ToStringStyle.appendFieldSeparator(ToStringStyle.java:1503) at org.apache.commons.lang3.builder.ToStringStyle.appendFieldEnd(ToStringStyle.java:1526) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:439) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at es.gva.cit.regproy.web.TrgpTipoSoporte_Roo_ToString.ajc$interMethod$es_gva_cit_regproy_web_TrgpTipoSoporte_Roo_ToString$es_gva_cit_regproy_web_TrgpTipoSoporte$toString(TrgpTipoSoporte_Roo_ToString.aj:13) at es.gva.cit.regproy.web.TrgpTipoSoporte.toString(TrgpTipoSoporte.java:1) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuffer.append(StringBuffer.java:219) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:586) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:550) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at es.gva.cit.regproy.web.TrgpDocumentoAnexado_Roo_ToString.ajc$interMethod$es_gva_cit_regproy_web_TrgpDocumentoAnexado_Roo_ToString$es_gva_cit_regproy_web_TrgpDocumentoAnexado$toString(TrgpDocumentoAnexado_Roo_ToString.aj:13) at es.gva.cit.regproy.web.TrgpDocumentoAnexado.toString(TrgpDocumentoAnexado.java:1) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuilder.append(StringBuilder.java:115) at java.util.AbstractCollection.toString(AbstractCollection.java:422) at org.hibernate.collection.PersistentSet.toString(PersistentSet.java:333) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuffer.append(StringBuffer.java:219) I attach the db managed entity. Java heap space can be produced by cycling references between entities ?
    via by Mario Martínez Sánchez - gvNIX - DISID,
  • Overload in web application server
    via Stack Overflow by Sin Nombre
    ,
    • java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at org.apache.commons.lang3.builder.ToStringStyle.appendFieldSeparator(ToStringStyle.java:1503) at org.apache.commons.lang3.builder.ToStringStyle.appendFieldEnd(ToStringStyle.java:1526) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:439) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at es.gva.cit.regproy.web.TrgpTipoSoporte_Roo_ToString.ajc$interMethod$es_gva_cit_regproy_web_TrgpTipoSoporte_Roo_ToString$es_gva_cit_regproy_web_TrgpTipoSoporte$toString(TrgpTipoSoporte_Roo_ToString.aj:13) at es.gva.cit.regproy.web.TrgpTipoSoporte.toString(TrgpTipoSoporte.java:1) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuffer.append(StringBuffer.java:219) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:586) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:550) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at es.gva.cit.regproy.web.TrgpDocumentoAnexado_Roo_ToString.ajc$interMethod$es_gva_cit_regproy_web_TrgpDocumentoAnexado_Roo_ToString$es_gva_cit_regproy_web_TrgpDocumentoAnexado$toString(TrgpDocumentoAnexado_Roo_ToString.aj:13) at es.gva.cit.regproy.web.TrgpDocumentoAnexado.toString(TrgpDocumentoAnexado.java:1) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuilder.append(StringBuilder.java:115) at java.util.AbstractCollection.toString(AbstractCollection.java:422) at org.hibernate.collection.PersistentSet.toString(PersistentSet.java:333) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuffer.append(StringBuffer.java:219)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    DavidDavid
    1 times, last one,
    HandemelindoHandemelindo
    1 times, last one,
    50 more bugmates