-->
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.  [ 2 posts ] 
Author Message
 Post subject: StackOverflowError during cfg.getClassMapping
PostPosted: Thu Nov 27, 2003 12:59 pm 
Beginner
Beginner

Joined: Mon Nov 24, 2003 11:47 am
Posts: 22
Scenario:
MySQL driver 3.0.8
Hibernate 2.0.3

Code:
Code:
Configuration cfg = new Configuration();
cfg.addClass(Simple.class);
PersistentClass pc = cfg.getClassMapping(Simple.class); //this row throws exception


Exception:
Code:
java.lang.StackOverflowError
   at java.lang.Object.toString(Object.java:203)
   at java.lang.String.valueOf(String.java:2177)
   at java.lang.StringBuffer.append(StringBuffer.java:361)
   at org.apache.commons.lang.builder.ToStringStyle.appendDetail(ToStringStyle.java:337)
   at org.apache.commons.lang.builder.ToStringStyle.appendInternal(ToStringStyle.java:322)
   at org.apache.commons.lang.builder.ToStringStyle.append(ToStringStyle.java:224)
   at org.apache.commons.lang.builder.ToStringBuilder.append(ToStringBuilder.java:326)
   at org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(ToStringBuilder.java:292)
   at org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(ToStringBuilder.java:231)
   at net.sf.hibernate.util.Stringable.toString(Stringable.java:7)
   at java.lang.String.valueOf(String.java:2177)
   at java.util.AbstractCollection.toString(AbstractCollection.java:451)
   at java.lang.String.valueOf(String.java:2177)
   at java.lang.StringBuffer.append(StringBuffer.java:361)
   at org.apache.commons.lang.builder.ToStringStyle.appendDetail(ToStringStyle.java:348)
   at org.apache.commons.lang.builder.ToStringStyle.appendInternal(ToStringStyle.java:245)
   at org.apache.commons.lang.builder.ToStringStyle.append(ToStringStyle.java:224)
   .
   .
   .
   at org.apache.commons.lang.builder.ToStringStyle.appendInternal(ToStringStyle.java:322)
   at org.apache.commons.lang.builder.ToStringStyle.append(ToStringStyle.java:224)
   at org.apache.commons.lang.builder.ToStringBuilder.append(ToStringBuilder.java:326)
   at org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(ToStringBuilder.java:292)
   at org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(ToStringBuilder.java:231)
   at net.sf.hibernate.util.Stringable.toString(Stringable.java:7)
   at java.lang.String.valueOf(String.java:2177)
   at java.lang.StringBuffer.append(StringBuffer.java:361)
   at org.apache.commons.lang.builder.ToStringStyle.appendDetail(ToStringStyle.java:337)
   at org.apache.commons.lang.builder.ToStringStyle.appendInternal(ToStringStyle.java:322)


It bug in Hibernate 2.0.3 or I use some wrong libraries ?
[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 27, 2003 1:13 pm 
Beginner
Beginner

Joined: Mon Nov 24, 2003 11:47 am
Posts: 22
I am sorry. There is not a bug. Exception was thrown on next row:

System.out.println(pc);

Function pc.toString() throws exception - it is a bug, but not so serious.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.