Opened 13 years ago

Closed 13 years ago

#807 closed defect (fixed)

Widgets / Select all action cause Lucene AlreadyClosedException

Reported by: fxp Owned by: geonetwork-devel@…
Priority: major Milestone: v2.7.0
Component: General Version:
Keywords: Cc:

Description

  • Search
  • Select all return:
    2012-03-06 10:56:17,596 INFO  [jeeves.request] - ==========================================================
    org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
    2012-03-06 10:56:17,597 INFO  [jeeves.request] - HTML Request (from 127.0.0.1) : /geonetwork/srv/en/metadata.select
    2012-03-06 10:56:17,597 DEBUG [jeeves.request] - Method       : GET
    2012-03-06 10:56:17,597 DEBUG [jeeves.request] - Content type : null
    2012-03-06 10:56:17,597 DEBUG [jeeves.request] - Accept       : */*
    2012-03-06 10:56:17,597 DEBUG [jeeves.request] - Session id is ytcb82kkgq2e
    2012-03-06 10:56:17,597 INFO  [jeeves.service] - Dispatching : metadata.select
    2012-03-06 10:56:17,597 DEBUG [jeeves.service] -  -> parameters are : 
    <request>
      <selected>add-all</selected>
    </request>
    2012-03-06 10:56:17,597 DEBUG [geonetwork.search] - Setting up the TFC with numHits 1000
    2012-03-06 10:56:17,597 DEBUG [geonetwork.search] - Lucene query: +(_op0:2 _op2:2 _op0:1 _op2:1 _op0:0 _op2:0 _op0:-1 _op2:-1 _owner:1 _dummy:0) +_isTemplate:n _locale:en
    2012-03-06 10:56:17,597 INFO  [jeeves.service] -    -> dispatching to output for : metadata.select
    2012-03-06 10:56:17,597 INFO  [jeeves.service] -      -> writing xml for : metadata.select
    2012-03-06 10:56:17,597 DEBUG [jeeves.service] - Service xml is :
    <response>
      <Selected>0</Selected>
    </response>
    	at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:177)
    	at org.apache.lucene.index.MultiReader.docFreq(MultiReader.java:356)
    	at org.apache.lucene.search.IndexSearcher.docFreq(IndexSearcher.java:138)
    	at org.apache.lucene.search.Similarity.idfExplain(Similarity.java:735)
    	at org.apache.lucene.search.TermQuery$TermWeight.<init>(TermQuery.java:46)
    	at org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:171)
    	at org.apache.lucene.search.BooleanQuery$BooleanWeight.<init>(BooleanQuery.java:188)
    	at org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:362)
    	at org.apache.lucene.search.BooleanQuery$BooleanWeight.<init>(BooleanQuery.java:188)
    	at org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:362)
    	at org.apache.lucene.search.Query.weight(Query.java:101)
    	at org.apache.lucene.search.Searcher.createWeight(Searcher.java:147)
    	at org.apache.lucene.search.Searcher.search(Searcher.java:88)
    	at org.fao.geonet.kernel.search.LuceneSearcher.doSearchAndMakeSummary(LuceneSearcher.java:1138)
    	at org.fao.geonet.kernel.search.LuceneSearcher.performQuery(LuceneSearcher.java:651)
    	at org.fao.geonet.kernel.search.LuceneSearcher.getAllUuids(LuceneSearcher.java:1256)
    	at org.fao.geonet.kernel.SelectionManager.selectAll(SelectionManager.java:249)
    	at org.fao.geonet.kernel.SelectionManager.updateSelection(SelectionManager.java:166)
    	at org.fao.geonet.kernel.SelectionManager.updateSelection(SelectionManager.java:138)
    	at org.fao.geonet.services.main.Select.exec(Select.java:39)
    	at jeeves.server.dispatchers.ServiceInfo.execService(ServiceInfo.java:230)
    	at jeeves.server.dispatchers.ServiceInfo.execServices(ServiceInfo.java:139)
    	at jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:410)
    	at jeeves.server.JeevesEngine.dispatch(JeevesEngine.java:719)
    	at jeeves.server.sources.http.JeevesServlet.execute(JeevesServlet.java:196)
    	at jeeves.server.sources.http.JeevesServlet.doGet(JeevesServlet.java:100)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
    	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
    	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at org.mortbay.jetty.Server.handle(Server.java:326)
    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
    	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
    2012-03-06 10:56:17,598 INFO  [jeeves.service] -    -> output ended for : metadata.select
    2012-03-06 10:56:17,598 INFO  [jeeves.service] -  -> dispatch ended for : metadata.select
    

Attachments (1)

807.patch (4.4 KB ) - added by fxp 13 years ago.

Download all attachments as: .zip

Change History (2)

by fxp, 13 years ago

Attachment: 807.patch added

comment:1 by fxp, 13 years ago

Resolution: fixed
Status: newclosed

Committed revision 8943.

Note: See TracTickets for help on using tickets.