Meaningful exception message when Search Listeners are not initialized

Description

org.hibernate.HibernateException: Lucene event listener not initialized
at org.hibernate.search.util.ContextHelper.getSearchFactoryBySFI(ContextHelper.java:31)
at org.hibernate.search.query.FullTextQueryImpl.list(FullTextQueryImpl.java:145)
at mil.darpa.tn.model.ReportModelFactory.searchReports(ReportModelFactory.java:128)
at mil.darpa.tn.model.ReportFactory.searchReports(ReportFactory.java:82)
at mil.darpa.tn.TNMain.main(TNMain.java:89)

Environment

None

Activity

Show:
Diego Plentz
May 14, 2007, 3:35 AM

It looks fine to me. What would be more meaningful then that?

"Lucene event listener not initialized (try to check the Hibernate Search compatibility with Annotations)" or something like that?

Emmanuel Bernard
May 14, 2007, 8:00 AM

I changed it to
"Hibernate Search Event listeners not configured, please check the reference documentation and the " +
"application's hibernate.cfg.xml"

Assignee

Unassigned

Reporter

Emmanuel Bernard

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Affects versions

Priority

Trivial
Configure