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.
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.
Fixed in jet main: http://hg.netbeans.org/jet-main/rev/41adea598e96
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
Thanks.
*** Issue 160498 has been marked as a duplicate of this issue. ***
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.