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.