-->
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.  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: how to shutdown hibernate-search (lucene part) correctly?
PostPosted: Sat Jun 20, 2009 12:36 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
hardy.ferentschik wrote:
Right. it might be worth to add this explaination either to the manual and/or to the Hibernate Search wiki - https://www.hibernate.org/420.html

Maybe the manual could mention the importance of callinf close on the factory whereas on the wiki we could give the technical explaination. WDYT?

--Hardy

Ok, which page is most suitable for the technical explanation?
I wasn't aware of this "community page", we should improve it's visibility somehow. a Sticky post containing the most useful links?
I always get lost in all wiki pages.

There is a point in the FAQ about this issue (https://www.hibernate.org/446.html#A9 at the bottom), but as this discussion has proven it's probably not effective enough, I'll add a warning to the troubleshooting too. We should also add a link from FAQ to troubleshooting.. the categories are not mutually exclusive.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: how to shutdown hibernate-search (lucene part) correctly?
PostPosted: Thu Dec 29, 2011 5:46 am 
Newbie

Joined: Wed Apr 11, 2007 8:48 am
Posts: 13
Hello

I was having the same issue with my program which was not getting terminated after indexing was done. So after posting a question on this forum.. found out that i have to call sessionFactory.close(). I did that and my program terminates after the indexing is done.

However after this method execution, if i try to perform search on the index.. i get this exception:

Code:
org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed


If i remove the code to close session factory, then this exception is gone. Can anyone of you please advice as to what to do now?
My original question is posted here: https://forum.hibernate.org/viewtopic.php?f=9&t=1013950

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 17 posts ]  Go to page Previous  1, 2

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.