-->
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: StackOverflowError while loading Associted Set
PostPosted: Mon Apr 16, 2007 5:34 am 
Beginner
Beginner

Joined: Fri Aug 12, 2005 7:05 am
Posts: 25
Location: TamilNadu
Hibernate version: 3.1

[b]Mapping documents:

NonAssessmentDimension.hbm.xml
----------------------------------------

<many-to-one
name="responseContext"
column="QRCONT_IDENTIFIER"
entity-name="genericquestionnaire.NonAssessmentQuestionnaire"
fetch="join"
insert="false"
update="false"/>


NonAssessmentQuestionnaire.hbm.xml
---------------------------------------------


<set
name="nonAssessmentDimensions"
inverse="true"
batch-size="100"
order-by="SEQUENCE">
<key
column="QRCONT_IDENTIFIER"/>
<one-to-many
entity-name="genericquestionnaire.NonAssessmentDimension"/>
</set>


[b]Full stack trace of any exception that occurs:


2007-04-16 15:02:22,906 DEBUG [org.hibernate.engine.CollectionLoadContext] creating collection wrapper:[genericquestionnaire.NonAssessmentDimension.nonAssessmentQuestion#642]
2007-04-16 15:02:22,906 DEBUG [org.hibernate.engine.CollectionLoadContext] creating collection wrapper:[genericquestionnaire.NonAssessmentDimension.securityDomainPersons#642]
2007-04-16 15:02:22,906 DEBUG [org.hibernate.engine.CollectionLoadContext] creating collection wrapper:[genericquestionnaire.NonAssessmentDimension.securityDomainNonAssessmentQuestionnaires#642]
2007-04-16 15:02:22,906 DEBUG [org.hibernate.engine.TwoPhaseLoad] done materializing entity [genericquestionnaire.NonAssessmentDimension#642]
2007-04-16 15:02:22,906 DEBUG [org.hibernate.engine.CollectionLoadContext] 1 collections were found in result set for role: genericquestionnaire.NonAssessmentQuestionnaire.nonAssessmentDimensions
2007-04-16 15:02:22,906 DEBUG [org.hibernate.engine.CollectionLoadContext] collection fully initialized: [genericquestionnaire.NonAssessmentQuestionnaire.nonAssessmentDimensions#377]
2007-04-16 15:02:22,906 DEBUG [org.hibernate.engine.CollectionLoadContext] 1 collections initialized for role: genericquestionnaire.NonAssessmentQuestionnaire.nonAssessmentDimensions
2007-04-16 15:02:23,078 ERROR [com.aniteps.hsc.i9n.ejb]
ID:10000 Code:9041 - System Error - StackOverflowError at java.lang.String.indexOf. Contact your system administration. - com.aniteps.hsc.i9n.fault.Abend
caused by: Code:9041 - System Error - StackOverflowError at java.lang.String.indexOf. Contact your system administration. - com.aniteps.hsc.i9n.fault.type.TechnicalFault
caused by: Code:Unavailable - null - java.lang.StackOverflowError
at java.lang.String.indexOf (line 1564)
at org.hibernate.engine.SqlText.findEndParen (line 55)
at org.hibernate.engine.SqlText.findEndParen (line 62)
at org.hibernate.engine.SqlText.findEndParen (line 62)
at org.hibernate.engine.SqlText.findEndParen (line 62)


Name and version of the database you are using:

Oracle 9i

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

while loading associated set in base hbm then its thorwing the following error.

System Error - StackOverflowError at java.lang.String.indexOf. Contact your system administration

Help me to overcome this problem...

Thanks in Advance.

Regards
Shanmugam.N


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 7:59 am 
Senior
Senior

Joined: Tue Mar 09, 2004 2:38 pm
Posts: 141
Location: Lowell, MA USA
It would be helpful to see the code for these entities as well as the calling code. You aren't by any change trying to generate a toString() method using reflection , are you?

Ryan-

_________________
Ryan J. McDonough
http://damnhandy.com

Please remember to rate!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 7:59 am 
Regular
Regular

Joined: Mon Jun 12, 2006 5:33 am
Posts: 63
hi somu_ngm,

you forgot to post the code that caused the StackOverflowError

chucky
---------


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.