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 # : 200808260201 ] [ JDK VERSION : 1.6.0_07 ] The following exception is thrown by maven indexer plugin if netbeans opened without a root privileges. java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:883) at org.apache.lucene.store.SimpleFSLock.obtain(SimpleFSLockFactory.java:1 44) at org.apache.lucene.store.Lock.obtain(Lock.java:73) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:613) at org.sonatype.nexus.index.context.NexusIndexWriter.<init>(NexusIndexWri ter.java:35) at org.sonatype.nexus.index.context.DefaultIndexingContext.getIndexWriter (DefaultIndexingContext.java:344) at org.sonatype.nexus.index.context.DefaultIndexingContext.storeDescripto r(DefaultIndexingContext.java:245) at org.sonatype.nexus.index.context.DefaultIndexingContext.checkAndUpdate IndexDescriptor(DefaultIndexingContext.java:202) at org.sonatype.nexus.index.context.DefaultIndexingContext.prepareIndex(D efaultIndexingContext.java:170) at org.sonatype.nexus.index.context.DefaultIndexingContext.<init>(Default IndexingContext.java:128) at org.sonatype.nexus.index.DefaultNexusIndexer.addIndexingContextForced( DefaultNexusIndexer.java:116) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexserImpl.loadInd exingContext(NexusRepositoryIndexserImpl.java:165) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexserImpl.access$ 100(NexusRepositoryIndexserImpl.java:94) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexserImpl$1.run(N exusRepositoryIndexserImpl.java:214) at org.openide.util.Mutex.writeAccess(Mutex.java:433) Caused: org.openide.util.MutexException at org.openide.util.Mutex.writeAccess(Mutex.java:437) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexserImpl.indexRe po(NexusRepositoryIndexserImpl.java:211) at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(Rep ositoryIndexer.java:37) at org.netbeans.modules.maven.ModInstall$1.run(ModInstall.java:146) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java: 997)
Reassigning to "maven".
The suggestion is change permissions for other users (groups). IMHO, NB can't do nothing about it.
I think there is a better way to inform the user by this error instead of throwing the exception on his face and ask him to report this as a bug. Such scenarios make a bad impression for netbeans users.
well, the nexus index is stored in ~/.m2/repository/.index folder. Do you really don't have write access to this folder? I suppose everyone shall have write access to his/her own user directory.. The exception itself is thrown in 3rd party code, used from 3rd party code. It's fairly tricky to handle such exceptions specifically with regard to write permissions. It's the first time I got this sort of report so I assume it's fairly rare and primarily a problem with your computer setup.
reporter didn't provided required information for more than 14 days. I'm closing this issue as WONTFIX Please, feel free to reopen when you face the problem again but attach the additional info. thank you for report
NetBeans.org Migration: changing resolution from LATER to WONTFIX