commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Pérez Testa <japte...@indra.es>
Subject Re: java.lang.StackOverflowError
Date Thu, 02 Sep 2004 16:36:26 GMT
Please add [<commons-module>] to the Subject of sent mail to indicate 
what are you talking about.

Regards.

White, Joshua A (HTSC, CASD) wrote:

>This problem might be caused by how I have my domain model constructed.  I
>have created and abstract class "Value" which all my domain classes extend
>from (Entity extends Value ... etc).  Value has the following methods:
>
>    public String toString() {
>        return ToStringBuilder.reflectionToString(this,
>                ToStringStyle.MULTI_LINE_STYLE);
>    }
>
>    public boolean equals(Object o) {
>        return EqualsBuilder.reflectionEquals(this, o);
>    }
>
>    public int hashCode() {
>        return HashCodeBuilder.reflectionHashCode(this);
>    }
>
>If I have a domain object with other domain objects as members, will this
>cause the below exception?
>
>Regards,
>
>Joshua
>
>
>
> 
>
>
>-----Original Message-----
>From: White, Joshua A (HTSC, CASD) [mailto:Joshua.White@htsco.com]
>Sent: Thursday, September 02, 2004 12:14 PM
>To: 'commons-user@jakarta.apache.org'
>Subject: java.lang.StackOverflowError
>
>
>All,
> 
>I am receiving a java.lang.StackOverflowError.  The stack trace is very
>repetitive.  Any ideas on how I may debug this?
> 
>Regards,
> 
>Joshua
> 
> 
>DEBUG - SessionImpl.finalize(3384) | running Session.finalize()
>DEBUG - SessionImpl.finalize(3384) | running Session.finalize()
>DEBUG - SessionImpl.finalize(3384) | running Session.finalize()
>DEBUG - SessionImpl.finalize(3384) | running Session.finalize()
>DEBUG - SessionImpl.finalize(3384) | running Session.finalize()
>DEBUG - SessionImpl.finalize(3384) | running Session.finalize()
> 
>java.lang.StackOverflowError
> at java.lang.reflect.AccessibleObject.<init>(AccessibleObject.java:137)
> at java.lang.reflect.Field.<init>(Field.java:62)
> at java.lang.reflect.Field.copy(Field.java:83)
> at java.lang.reflect.ReflectAccess.copyField(ReflectAccess.java:92)
> at sun.reflect.ReflectionFactory.copyField(ReflectionFactory.java:277)
> at java.lang.Class.copyFields(Class.java:1962)
> at java.lang.Class.getDeclaredFields(Class.java:1090)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionAppend(HashCodeBui
>lder.java:345)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:327)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:194)
> at employeeclub.domain.Value.hashCode(Value.java:22)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.append(HashCodeBuilder.java:
>392)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionAppend(HashCodeBui
>lder.java:353)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:327)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:194)
> at employeeclub.domain.Value.hashCode(Value.java:22)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.append(HashCodeBuilder.java:
>392)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionAppend(HashCodeBui
>lder.java:353)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:327)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:194)
> at employeeclub.domain.Value.hashCode(Value.java:22)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.append(HashCodeBuilder.java:
>392)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionAppend(HashCodeBui
>lder.java:353)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:327)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:194)
> at employeeclub.domain.Value.hashCode(Value.java:22)
> at java.util.AbstractSet.hashCode(AbstractSet.java:103)
> at net.sf.hibernate.collection.Set.hashCode(Set.java:384)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.append(HashCodeBuilder.java:
>392)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionAppend(HashCodeBui
>lder.java:353)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:327)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:194)
> at employeeclub.domain.Value.hashCode(Value.java:22)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.append(HashCodeBuilder.java:
>392)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionAppend(HashCodeBui
>lder.java:353)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:327)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:194)
> at employeeclub.domain.Value.hashCode(Value.java:22)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.append(HashCodeBuilder.java:
>392)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionAppend(HashCodeBui
>lder.java:353)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:327)
> at
>org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeB
>uilder.java:194)
> at employeeclub.domain.Value.hashCode(Value.java:22)
> at java.util.AbstractSet.hashCode(AbstractSet.java:103)
> at net.sf.hibernate.collection.Set.hashCode(Set.java:384)
>....
>Last 17 lines repeat another 20+ times...
>
>
>This communication, including attachments, is for the exclusive use of 
>addressee and may contain proprietary, confidential or privileged 
>information. If you are not the intended recipient, any use, copying, 
>disclosure, dissemination or distribution is strictly prohibited. If 
>you are not the intended recipient, please notify the sender 
>immediately by return email and delete this communication and destroy all
>copies.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>  
>
-------------------------------------------------------------------------------------------------------------------
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información
de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda
prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita
de Indra. En el caso de haber recibido este correo electrónico por error, se ruega notificar
inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.

The information in this e-mail and in any attachments is confidential and solely for the attention
and use of the named addressee(s). You are hereby notified that any dissemination, distribution
or copy of this communication is prohibited without the prior written consent of Indra. If
you have received this communication in error, please, notify the sender by reply e-mail

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message