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.
Build: NetBeans IDE Dev (Build 200911220201) VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04 OS: Windows XP, 5.1, x86 User Comments: GUEST: Just working with ide, screen changing jpleed3: Trying to create new Maven J6EE web project GUEST: Right-clicked "Find Usages" on a method in a Java class in a Maven WAR project. Stacktrace: java.io.IOException: File C:\Documents and Settings\JL89798\.netbeans\dev\var\cache\mavenindex\java.net2\_5.prx unable to be deleted. at hidden.org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1246) at hidden.org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1459) at hidden.org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1410) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.loadIndexingContext(NexusRepositoryIndexerImpl.java:282) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$300(NexusRepositoryIndexerImpl.java:137) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$1.run(NexusRepositoryIndexerImpl.java:429)
Created attachment 91552 [details] stacktrace
Windows XP specific. No report since 6.8. Possibly fixed by an indexer library update. Closing for now.
*** Bug 192620 has been marked as a duplicate of this bug. ***
Reported in 6.9.
*** Bug 198669 has been marked as a duplicate of this bug. ***
*** Bug 198438 has been marked as a duplicate of this bug. ***
*** Bug 198569 has been marked as a duplicate of this bug. ***
*** Bug 198298 has been marked as a duplicate of this bug. ***
*** Bug 195073 has been marked as a duplicate of this bug. ***
*** Bug 199943 has been marked as a duplicate of this bug. ***
*** Bug 200064 has been marked as a duplicate of this bug. ***
Created attachment 109754 [details] stacktrace searching dependencies in maven repositories
Created attachment 109873 [details] stacktrace Everytime I add or remove a depencency I have this exception. In case it matters, the filesystem is NTFS but %userprofile% has all permissions for my user.
(In reply to comment #13) > Every time I add or remove a depencency I have this exception. Workaround should simply be to delete the corrupted subdir of mavenindex and restart. I still do not know how to reproduce from scratch.
*** Bug 200652 has been marked as a duplicate of this bug. ***
Created attachment 110881 [details] stacktrace
143 duplicates , just 5 against 7.1 Beta
*** Bug 203955 has been marked as a duplicate of this bug. ***
Number of duplicates is still rising, achieved 15 dups and 145 reports .. P2
Typical prelude is: INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Found a broken index at ...\var\cache\mavenindex\local org.apache.lucene.store.LockReleaseFailedException: Cannot forcefully unlock a NativeFSLock which is held by another indexer component: ...\var\cache\mavenindex\local\write.lock at org.apache.lucene.store.NativeFSLock.release(NativeFSLockFactory.java:278) at org.apache.lucene.index.IndexWriter.unlock(IndexWriter.java:4907) at org.apache.maven.index.context.DefaultIndexingContext.prepareCleanIndex(DefaultIndexingContext.java:263) at org.apache.maven.index.context.DefaultIndexingContext.prepareIndex(DefaultIndexingContext.java:237) at org.apache.maven.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:157) at org.apache.maven.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:167) at org.apache.maven.index.DefaultNexusIndexer.addIndexingContextForced(DefaultNexusIndexer.java:110) [catch] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.loadIndexingContext(NexusRepositoryIndexerImpl.java:361) Only occurs on Windows. Probably caused somehow by a corrupted Lucene index. Still no idea how to reproduce; tried on XP to delete miscellaneous files from var\cache\mavenindex\central, but the index is quietly repaired (even though empty); if I delete everything from the dir and restart, the index is quietly downloaded again. Same for local - if intentionally damaged, the Indexer just resets its contents to a fresh empty index; manual reindexing works fine. While I can suppress the actual exception being reported here, that is unlikely to fix the real problem, and it is probable that some other exception would just be thrown later. Essentially the same as bug #195357; my attempted fix does not seem to be working, or at least not on Windows (hard to say if it does anything on Unix); the code to try to clean up a broken index dates back to Mevenide days but does not seem functional.
core-main #a4ee14a33968
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/a4ee14a33968 User: Jesse Glick <jglick@netbeans.org> Log: #177460: [68cat] IOE: File ...\var\cache\mavenindex\...\... unable to be deleted Not so much a real fix as a change in error handling.
*** Bug 203505 has been marked as a duplicate of this bug. ***
*** Bug 201845 has been marked as a duplicate of this bug. ***
*** Bug 203908 has been marked as a duplicate of this bug. ***