0xCAB / zoie

Automatically exported from code.google.com/p/zoie
0 stars 0 forks source link

Getting IndexReader is closed errors #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

This is on macosx with a new index and the second search I get IndexReader is 
closed errors, the 
first search works. If I restart the server everything works.

Here is the error I see in the logs

2009/04/27 10:55:00.323 ERROR [ExampleZoieSearchServiceImpl] [] this 
IndexReader is closed
org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
        at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:196)
        at org.apache.lucene.index.FilterIndexReader.docFreq(FilterIndexReader.java:192)
        at org.apache.lucene.index.MultiReader.docFreq(MultiReader.java:313)
        at org.apache.lucene.search.IndexSearcher.docFreq(IndexSearcher.java:86)
        at org.apache.lucene.search.Similarity.idf(Similarity.java:457)
        at org.apache.lucene.search.TermQuery$TermWeight.<init>(TermQuery.java:44)
        at org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:146)
        at org.apache.lucene.search.Query.weight(Query.java:95)
        at org.apache.lucene.search.Searcher.createWeight(Searcher.java:185)
        at org.apache.lucene.search.Searcher.search(Searcher.java:136)
        at proj.zoie.example.service.impl.ExampleZoieSearchServiceImpl.search(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:585)

Original issue reported on code.google.com by cbrf4...@gmail.com on 27 Apr 2009 at 6:10

GoogleCodeExporter commented 8 years ago
I am using mac osx with a solid state drive and running the zoie-example webapp

Original comment by cbrf4...@gmail.com on 28 Apr 2009 at 5:01

GoogleCodeExporter commented 8 years ago
Thank you for reporting the bug. I created a patch for 
ExampleZoieSearchServiceImpl.

Original comment by Yasuhiro...@gmail.com on 29 Apr 2009 at 5:03

Attachments:

GoogleCodeExporter commented 8 years ago
merged the fix into trunk

Original comment by Yasuhiro...@gmail.com on 29 Apr 2009 at 5:31