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 145712 - [65cat] Maven indexer exception
Summary: [65cat] Maven indexer exception
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-31 10:09 UTC by mohhmekk
Modified: 2009-11-02 11:00 UTC (History)
0 users

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 mohhmekk 2008-08-31 10:09:06 UTC
[ 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)
Comment 1 Peter Pis 2008-08-31 10:21:36 UTC
Reassigning to "maven".
Comment 2 Peter Pis 2008-08-31 10:28:17 UTC
The suggestion is change permissions for other users (groups). IMHO, NB can't do nothing about it.
Comment 3 mohhmekk 2008-08-31 10:34:45 UTC
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.
Comment 4 Milos Kleint 2008-09-08 11:28:33 UTC
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.
Comment 5 Lukas Hasik 2008-12-04 12:53:09 UTC
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
Comment 6 Quality Engineering 2009-11-02 11:00:54 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX