Re: Java.lang.StackOverflowError

[email protected]
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>
I would try serializing the object you are trying to use outside of amf to eliminate your object as a suspect.  If you are on unix/linix check your environment, execute the command 'ulimit -a' to see if there are any constraints on your user.  Also you can try to increase the stack size when you start the jvm -Xss<size>.  

----- Original Message -----
From: Andrew Barnes <[email protected]>
Date: Tuesday, January 18, 2005 6:28 pm
Subject: [Openamf-user] Java.lang.StackOverflowError

> Hi
> 
> When sending an object graph with a bi-directional parent/child 
> relationshipthrough 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 
> collectionfrom 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=95171910, 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
> _______________________________________________
> Openamf-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openamf-user
> 



-------------------------------------------------------
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.