-->
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: org.hibernate.event.EventListeners.initializeListeners error
PostPosted: Mon Mar 29, 2010 6:15 pm 
Newbie

Joined: Mon Mar 29, 2010 6:09 pm
Posts: 1
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


Top
 Profile  
 
 Post subject: Re: org.hibernate.event.EventListeners.initializeListeners error
PostPosted: Thu Apr 01, 2010 1:04 am 
Newbie

Joined: Thu Apr 01, 2010 1:01 am
Posts: 2
Gday,

I'm having the same issue! Grrr.

Let me know if you find the fix!


Top
 Profile  
 
 Post subject: Re: org.hibernate.event.EventListeners.initializeListeners error
PostPosted: Thu Apr 01, 2010 1:34 am 
Newbie

Joined: Thu Apr 01, 2010 1:01 am
Posts: 2
Hey I found the issue.

Hibernate doesn't work with the latest version of Lucene - it works with version 2.4.x

(http://opensource.atlassian.com/project ... SEARCH-420)


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.