-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Problem with java.lang.StackOverflowError + hibernate 3
PostPosted: Thu Apr 28, 2005 12:10 pm 
Newbie

Joined: Mon Apr 11, 2005 6:59 am
Posts: 11
Hi,

I am a problem with a java.lang.StackOverflowError. I use a database example of hsql and hibernate 3. The result obtained of the used logic always comes as list (collections), that I pass for the flash. I have the mappings of the tables and since that the relations are unidirectionais everything work well. The problem that happens when I have bidirectional relations. In that case when I pass the data for the flash I get the problem of StackOverflowError, therefore it does not obtain to make serialize of the collection. I resolve this, modifying the declaration of set on the relation, adding transient. In that case, the java does not make serialize of the set, and the data, excepting the set, are visible in the flash.

The question is if this is the best way to resolve this problem. If will not be, please make suggestions. Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 1:55 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://www.hibernate.org/ForumMailingli ... AskForHelp


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 29, 2005 12:51 pm 
Newbie

Joined: Mon Apr 11, 2005 6:59 am
Posts: 11
christian wrote:
http://www.hibernate.org/ForumMailinglists/HowToAskForHelp



Christian, you are the man.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.