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 209953 - Throwable at org.netbeans.modules.parsing.lucene.LuceneIndex$DirCache.acquireWriter
Summary: Throwable at org.netbeans.modules.parsing.lucene.LuceneIndex$DirCache.acquire...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-22 17:52 UTC by stefan79
Modified: 2012-03-25 09:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 186162


Attachments
stacktrace (3.38 KB, text/plain)
2012-03-22 17:52 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2012-03-22 17:52:49 UTC
Build: NetBeans IDE Dev (Build 201203210400)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
stefan79: Exception occured after some other Exceptions.




Stacktrace: 
java.lang.Throwable
   at org.netbeans.modules.parsing.lucene.LuceneIndex$DirCache.acquireWriter(LuceneIndex.java:787)
   at org.netbeans.modules.parsing.lucene.LuceneIndex._doStore(LuceneIndex.java:388)
   at org.netbeans.modules.parsing.lucene.LuceneIndex.txStore(LuceneIndex.java:368)
   at org.netbeans.modules.java.source.usages.PersistentClassIndex$PIWriter.deleteAndFlush(PersistentClassIndex.java:453)
   at org.netbeans.modules.java.source.usages.SourceAnalyzerFactory$StorableAnalyzer.store(SourceAnalyzerFactory.java:219)
   at org.netbeans.modules.java.source.indexing.JavaParsingContext.store(JavaParsingContext.java:249)
Comment 1 stefan79 2012-03-22 17:52:53 UTC
Created attachment 117106 [details]
stacktrace
Comment 2 Tomas Zezula 2012-03-23 13:18:23 UTC
Seems as a consequence of the previous exception:

java.io.FileNotFoundException: C:\Users\stefan\AppData\Local\NetBeans\Cache\dev\index\s88\java\14\classes\test\bernhard\test\test$<error>.sig (Die Syntax f�r den Dateinamen, Verzeichnisnamen oder die Datentr�gerbezeichnung ist falsch)

I will make the recovery more robust.
Comment 3 Tomas Zezula 2012-03-23 14:08:17 UTC
Fixed jet-main bf3be3cbd635
Comment 4 Tomas Zezula 2012-03-23 14:10:00 UTC
Hi Stefan.
The recovery problem is fixed, but if you can reproduce the root problem:

java.io.FileNotFoundException:
C:\Users\stefan\AppData\Local\NetBeans\Cache\dev\index\s88\java\14\classes\test\bernhard\test\test$<error>.sig
(Die Syntax f�r den Dateinamen, Verzeichnisnamen oder die
Datentr�gerbezeichnung ist falsch)

please create a new issue on java/compiler ideally with a reproduce able test case
Thanks!
Comment 5 stefan79 2012-03-23 14:14:18 UTC
I only know, that the test.java - Class was corrupt (no "}" at the end of the file).
But I´ve deleted deleted the file, because there were too much exceptions.
Comment 6 Tomas Zezula 2012-03-23 14:16:31 UTC
Thanks.
I will try to reproduce it somehow.
The javac should never dump types like <any>,<error>, etc.
Comment 7 Quality Engineering 2012-03-24 11:01:04 UTC
Integrated into 'main-golden', will be available in build *201203240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/bf3be3cbd635
User: Tomas Zezula <tzezula@netbeans.org>
Log: #209953:Throwable at org.netbeans.modules.parsing.lucene.LuceneIndex$DirCache.acquireWriter
Comment 8 Quality Engineering 2012-03-25 09:45:46 UTC
Integrated into 'main-golden', will be available in build *201203250401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/bf3be3cbd635
User: Tomas Zezula <tzezula@netbeans.org>
Log: #209953:Throwable at org.netbeans.modules.parsing.lucene.LuceneIndex$DirCache.acquireWriter