Java.lang.StackOverflowError

Andrew Barnes <[email protected]>
Newsgroups gmane.comp.java.openamf.user
Message-ID <BE13E6E0.1BAD%[email protected]>
Hi

When sending an object graph with a bi-directional parent/child relationship
through to openamf we get a java.lang.StackOverflowError. The objects in
question are a company object with a list of contact objects, which have a
reference back to the company object. When we remove the contact collection
from the company object it works fine. I am using RC9 with jboss-3.2.6.

10:08:04,602 DEBUG [AMFDeserializer]  adding {key=company,
value=ASObject[type=com.geni.sitegenerator.domain.model.CompanyInfo,{phone=9
517 1900, contacts=[], type=Company, label=Generator Interactive,
address=ASObject[type=com.geni.sitegenerator.domain.model.Address,{type=Addr
ess, street=Unit 24, 43 Bridge Road, postcode=2048,
state=ASObject[type=com.geni.sitegenerator.domain.model.State,{country=ASObj
ect[type=com.geni.sitegenerator.domain.model.Country,{country=Australia,
type=Country, id=1.0}], type=State, state=NSW, name=New South Wales,
id=1.0}], city=Stanmore}], __id__=0.0, name=Generator Interactive, fax=9517
1910, id=1.0, areacode=02}], type=3}
10:08:04,604 DEBUG [AMFDeserializer] Reading data of type STRING
10:08:04,605 DEBUG [AMFDeserializer]  adding {key=label, value=Purkiss,
Glen, type=2}
10:08:04,606 DEBUG [AMFDeserializer] Reading data of type NUMBER
10:08:04,607 DEBUG [AMFDeserializer]  adding {key=__id__, value=0.0, type=0}
10:08:04,608 DEBUG [AMFDeserializer] finished reading object
10:08:04,674 DEBUG [SessionImpl] running Session.finalize()
10:08:04,836 ERROR [Engine] StandardWrapperValve[DefaultGatewayServlet]:
Servlet.service() for servlet DefaultGatewayServlet threw exception
java.lang.StackOverflowError

Regards

Andy Barnes




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.