-->
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: Newbie question: Problem running example
PostPosted: Mon Jun 01, 2009 3:44 pm 
Newbie

Joined: Mon Jun 01, 2009 3:34 pm
Posts: 4
Hi,

I'm trying to follow the example in the tutorial in the reference documentation (http://docs.jboss.org/hibernate/stable/ ... stapp.html).

Once I get to point 1.2.6 (loading and storing objects), I have tried executing the ant command line that appears in the tutorial:

ant run -Daction=store

But I get the following error (snippet):

Quote:
run:
[java] Initial SessionFactory creation failed.java.lang.StackOverflowError
[java] Exception in thread "main" java.lang.ExceptionInInitializerError
[java] at util.HibernateUtil.<clinit>(Unknown Source)
[java] at events.EventManager.createAndStoreEvent(Unknown Source)
[java] at events.EventManager.main(Unknown Source)
[java] Caused by: java.lang.StackOverflowError
[java] at java.util.HashMap.hash(HashMap.java:264)
[java] at java.util.HashMap.get(HashMap.java:320)
[java] at org.slf4j.impl.JCLLoggerFactory.getLogger(JCLLoggerFactory.java:67)
[java] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:209)
[java] at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)


Do you have any idea what I have done wrong?
Could you tell me exactly what are the jar files necessary to run the tutorial (it is not mentioned explicitely, as far as I know)?
Thanks very much.
jorma k.


Top
 Profile  
 
 Post subject: Re: Newbie question: Problem running example
PostPosted: Mon Jun 01, 2009 4:32 pm 
Beginner
Beginner

Joined: Mon Jun 01, 2009 5:39 am
Posts: 34
Looks like there's a loop somewhere.

What Hibernate version are you using? Can you try and update the slf4j jar and see if the error still occurs?


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.