Hi Im new to Hibernate and I try my first program according to this tutorial
Code:
http://www.laliluna.de/articles/first-hibernate-example-tutorial.html
and it always crash on this line
Code:
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
can somebody help me what im doing wrong?
here is my stack trace:
Code:
Exception in thread "main" java.lang.ExceptionInInitializerError
at test_hibernate.TestClient.createLogin(TestClient.java:125)
at test_hibernate.TestClient.main(TestClient.java:34)
Caused by: org.hibernate.HibernateException: could not init listeners
at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:205)
at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1352)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at test_hibernate.InitSessionFactory.<clinit>(InitSessionFactory.java:29)
... 2 more
Caused by: org.hibernate.search.SearchException: Failed to instantiate lucene analyzer with type null
at org.hibernate.search.impl.InitContext.initAnalyzer(InitContext.java:90)
at org.hibernate.search.impl.InitContext.<init>(InitContext.java:38)
at org.hibernate.search.impl.SearchFactoryImpl.initDocumentBuilders(SearchFactoryImpl.java:382)
at org.hibernate.search.impl.SearchFactoryImpl.<init>(SearchFactoryImpl.java:119)
at org.hibernate.search.event.ContextHolder.getOrBuildSearchFactory(ContextHolder.java:30)
at org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:79)
at org.hibernate.event.EventListeners$1.processListener(EventListeners.java:198)
at org.hibernate.event.EventListeners.processListeners(EventListeners.java:181)
at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:194)
... 6 more
Caused by: java.lang.InstantiationException: org.apache.lucene.analysis.standard.StandardAnalyzer
at java.lang.Class.newInstance0(Class.java:340)
at java.lang.Class.newInstance(Class.java:308)
at org.hibernate.search.impl.InitContext.initAnalyzer(InitContext.java:85)
... 14 more