This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 223206 - Tasks calling QuerySupport Index.IndexClosedException get Index.IndexClosedException
Summary: Tasks calling QuerySupport Index.IndexClosedException get Index.IndexClosedEx...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-03 20:55 UTC by Tomas Zezula
Modified: 2012-12-05 02:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Zezula 2012-12-03 20:55:00 UTC
Tasks calling QuerySupport Index.IndexClosedException get Index.IndexClosedException as the index is already closed.
Rather then throwing the exception it should return [] when the IDE is closing.


Caused: org.netbeans.modules.parsing.lucene.support.Index$IndexClosedException
        at org.netbeans.modules.parsing.lucene.LuceneIndex$DirCache.checkPreconditions(LuceneIndex.java:1046)
        at org.netbeans.modules.parsing.lucene.LuceneIndex$DirCache.getReader(LuceneIndex.java:931)
        at org.netbeans.modules.parsing.lucene.LuceneIndex$DirCache.acquireReader(LuceneIndex.java:913)
        at org.netbeans.modules.parsing.lucene.LuceneIndex.query(LuceneIndex.java:164)
        at org.netbeans.modules.parsing.lucene.DocumentIndexImpl.query(DocumentIndexImpl.java:236)
        at org.netbeans.modules.parsing.impl.indexing.lucene.LayeredDocumentIndex.query(LayeredDocumentIndex.java:159)
        at org.netbeans.modules.parsing.spi.indexing.support.QuerySupport$1.call(QuerySupport.java:294)
        at org.netbeans.modules.parsing.spi.indexing.support.QuerySupport$1.call(QuerySupport.java:254)
        at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
        at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
        at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
        at org.netbeans.modules.parsing.spi.indexing.support.QuerySupport.query(QuerySupport.java:254)
[catch] at org.netbeans.modules.php.editor.elements.IndexQueryImpl.search(IndexQueryImpl.java:1581)
Comment 1 Tomas Zezula 2012-12-03 20:56:27 UTC
Fixed jet-main 0085ca71c51e
Comment 2 Quality Engineering 2012-12-05 02:57:53 UTC
Integrated into 'main-golden', will be available in build *201212050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0085ca71c51e
User: Tomas Zezula <tzezula@netbeans.org>
Log: #223206:Tasks calling QuerySupport Index.IndexClosedException get Index.IndexClosedException