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 157028 - Lucene: this Directory is closed
Summary: Lucene: this Directory is closed
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 160498 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-19 09:11 UTC by Jaroslav Tulach
Modified: 2009-05-21 11:55 UTC (History)
1 user (show)

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 Jaroslav Tulach 2009-01-19 09:11:40 UTC
I am packaging NetBeans 6.5 for Mandriva, the system runs, but very often I get errors like this:

SEVERE [global]
While scanning: jar:file:/nball/db/external/derby-10.2.2.0.jar!/
While scanning: jar:file:/nball/db/external/derby-10.2.2.0.jar!/
Caused: org.apache.lucene.store.AlreadyClosedException: this Directory is closed
org.apache.lucene.store.Directory.ensureOpen(Directory.java:220)
org.apache.lucene.store.FSDirectory.list(FSDirectory.java:320)
org.netbeans.modules.java.source.usages.LuceneIndex.clear(Unknown Source)
org.netbeans.modules.java.source.usages.BinaryAnalyser.start(Unknown Source)
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.scanRoots(Unknown Source)
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.access$2700(Unknown Source)
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(Unknown Source)
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(Unknown Source)
org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock(Unknown Source)
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(Unknown Source)
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(Unknown Source)
org.netbeans.api.java.source.JavaSource$CompilationJob.run(Unknown Source)

As a result the code completion is pretty broken, many classes from rt.jar and other JARs are missing. Have you not 
seen a problem like this before? For example when migrating to newer version of lucene? Because my packaging is using 
lucene 2.4 and NetBeans 6.5 require just 2.3.2. 

It would be perfect if you could provide me a patch to apply to NetBeans 6.5 sources, so this exception is 
prevented/workarounded. Thanks in advance and sorry for bothering you with something not directly related to your 
work. However I am afraid that without your help the RPM packages will be more useless than helpful.
Comment 1 Tomas Zezula 2009-01-29 09:02:22 UTC
Fixed in jet main: http://hg.netbeans.org/jet-main/rev/41adea598e96
Comment 2 Quality Engineering 2009-01-29 20:04:17 UTC
Integrated into 'main-golden', will be available in build *200901291401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/41adea598e96
User: Tomas Zezula <tzezula@netbeans.org>
Log: #157028:Lucene: this Directory is closed
Comment 3 Jaroslav Tulach 2009-01-31 17:14:16 UTC
Thanks.
Comment 4 David Strupl 2009-05-20 14:35:52 UTC
*** Issue 160498 has been marked as a duplicate of this issue. ***
Comment 5 mslama 2009-05-20 14:49:39 UTC
It would be nice to have backport for 6.5 because it limits usage of Ubuntu packages which are default for current
Ubuntu release which is latest Ubuntu release till Oct 2009.
Comment 6 Tomas Zezula 2009-05-21 11:55:53 UTC
*** Issue 160498 has been marked as a duplicate of this issue. ***