jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: JackRabbit Datastore / Garbage Collector / Search
Date Fri, 19 Jun 2009 11:27:56 GMT
What version of jackrabbit and lucene are you using? make sure you use
the exact version of lucene as noted in the dependencies of a
jackrabbit release.

regards
 marcel

On Fri, Jun 19, 2009 at 10:38, Quertyn<aurelien_couvert@yahoo.fr> wrote:
>
> I'am trying to develop a server Jackrabbit with the api. My client send a
> file into the datastore and if i delete it the garbage collector do well his
> work. But i can't search a file (with xpath or sql), i have an error
> "indexreader closed". If i use a standalone server i can search but the
> garbage collector doesn't work. What can i do to use search and garbage
> collector.
> I apologize for my English. Thanks for your help.
>
> Exception in thread "main" org.apache.lucene.store.AlreadyClosedException:
> this IndexReader is closed
>        at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:199)
>        at org.apache.lucene.index.MultiReader.terms(MultiReader.java:336)
>        at
> org.apache.lucene.index.DirectoryReader$MultiTermEnum.<init>(DirectoryReader.java:990)
>        at org.apache.lucene.index.MultiReader.terms(MultiReader.java:337)
>        at
> org.apache.jackrabbit.core.query.lucene.RangeScan.<init>(RangeScan.java:42)
>        at
> org.apache.jackrabbit.core.query.lucene.WildcardTermEnum$LowerUpperCaseTermEnum.<init>(WildcardTermEnum.java:257)
>        at
> org.apache.jackrabbit.core.query.lucene.WildcardTermEnum.<init>(WildcardTermEnum.java:121)
>        at
> org.apache.jackrabbit.core.query.lucene.WildcardQuery$1.getEnum(WildcardQuery.java:131)
>        at org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:114)
>        at
> org.apache.jackrabbit.core.query.lucene.WildcardQuery.rewrite(WildcardQuery.java:135)
>        at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:391)
>        at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:296)
>        at org.apache.lucene.search.Query.weight(Query.java:94)
>        at org.apache.lucene.search.Hits.<init>(Hits.java:76)
>        at org.apache.lucene.search.Searcher.search(Searcher.java:50)
>        at org.apache.lucene.search.Searcher.search(Searcher.java:40)
>        at
> org.apache.jackrabbit.core.query.lucene.SearchIndex.executeQuery(SearchIndex.java:698)
>        at
> org.apache.jackrabbit.core.query.lucene.QueryResultImpl.executeQuery(QueryResultImpl.java:242)
>        at
> org.apache.jackrabbit.core.query.lucene.QueryResultImpl.getResults(QueryResultImpl.java:290)
>        at
> org.apache.jackrabbit.core.query.lucene.QueryResultImpl.<init>(QueryResultImpl.java:192)
>        at
> org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:138)
>        at org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:176)
>        at
> org.apache.jackrabbit.rmi.server.ServerQuery.execute(ServerQuery.java:58)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
>        at sun.rmi.transport.Transport$1.run(Transport.java:177)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
>        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
>        at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
>        at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
>        at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>        at java.lang.Thread.run(Thread.java:636)
>        at
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
>        at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
>        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)
>        at org.apache.jackrabbit.rmi.server.ServerQuery_Stub.execute(Unknown
> Source)
>        at
> org.apache.jackrabbit.rmi.client.ClientQuery.execute(ClientQuery.java:63)
>        at sat.ClientJR.searchFile(ClientJR.java:151)
>        at sat.Test.main(Test.java:18)
> --
> View this message in context: http://www.nabble.com/JackRabbit-Datastore---Garbage-Collector---Search-tp24107601p24107601.html
> Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.
>
>

Mime
View raw message