Clemens: I am adding the EventAttribute to set and adding the set to event. I am also setting the event in the EventAttribute.
I am adding the EventAttribute to set and also setting the Event in the event attribute. Is this circular assignment causing the overflow.
If I dont do - s.add(ea); the event is created, but the attributes table is empty.
[ March 15, 2005: Message edited by: Ram Raju ] [ March 15, 2005: Message edited by: Ram Raju ]
Joined: Aug 07, 2003
Originally posted by Ram Raju:
I'd definitely check your use of HashCodeBuilder. The HashSet uses hashCode() which is causing the exception.
Joined: Mar 11, 2003
Ok. I found what was causing Stack overflow.
I started development using AppFuse and was extending BaseObject in all my model objects. For those who havent looked at appfuse, BaseObject is just a Serializable bean which overrides toString, equals and hashCode methods.
When I extended BaseObject in both parent and child and tried to set one in the other, something in the hashCode method did not like it. When I stopped extending BaseObject in child, everything was ok.