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 219645

Summary: NullPointerException at org.apache.maven.index.context.DefaultIndexingContext.acquireIndexSearcher
Product: projects Reporter: Maksim Khramov <mkhramov>
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: RESOLVED WONTFIX    
Severity: normal CC: cezariusz, ehsun7b, gualtiero65, jskrivanek, phejl, rjdkolb
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 193177
Bug Depends on: 239142    
Bug Blocks: 219552    
Attachments: stacktrace
stacktrace
stacktrace

Description Maksim Khramov 2012-10-06 21:44:46 UTC
Build: NetBeans IDE Dev (Build 201210060002)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.5-b03, Java(TM) SE Runtime Environment, 1.6.0_30-b12
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at org.apache.maven.index.context.DefaultIndexingContext.acquireIndexSearcher(DefaultIndexingContext.java:488)
   at org.apache.maven.index.context.NexusIndexMultiReader.acquire(NexusIndexMultiReader.java:56)
   at org.apache.maven.index.context.NexusIndexMultiSearcher.<init>(NexusIndexMultiSearcher.java:32)
   at org.apache.maven.index.DefaultSearchEngine.searchIteratorPaged(DefaultSearchEngine.java:254)
   at org.apache.maven.index.DefaultSearchEngine.searchIteratorPaged(DefaultSearchEngine.java:235)
   at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.repeatedPagedSearch(NexusRepositoryIndexerImpl.java:349)
Comment 1 Maksim Khramov 2012-10-06 21:44:49 UTC
Created attachment 125517 [details]
stacktrace
Comment 2 Milos Kleint 2012-10-08 05:20:00 UTC
*** Bug 219646 has been marked as a duplicate of this bug. ***
Comment 3 Milos Kleint 2012-10-08 10:39:34 UTC
another exception trace preceding the one logged:

java.io.IOException: Cannot delete C:\Users\Maks\AppData\Local\NetBeans\Cache\dev\mavenindex\JBossReleases\_c.fdt
	at org.apache.lucene.store.FSDirectory.deleteFile(FSDirectory.java:296)
	at org.apache.maven.index.context.DefaultIndexingContext.deleteIndexFiles(DefaultIndexingContext.java:342)
	at org.apache.maven.index.context.DefaultIndexingContext.replace(DefaultIndexingContext.java:599)
	at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:218)
	at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:76)
	at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:642)
	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:862)
	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:446)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$200(NexusRepositoryIndexerImpl.java:112)
[catch] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:513)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:507)
	at org.openide.util.Mutex.writeAccess(Mutex.java:399)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:507)
	at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:58)
	at org.netbeans.modules.maven.ProjectOpenedHookImpl$2.run(ProjectOpenedHookImpl.java:227)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
Comment 4 Milos Kleint 2012-10-15 07:58:56 UTC
filed upstream under https://jira.codehaus.org/browse/MINDEXER-63
Comment 5 Milos Kleint 2013-02-11 09:02:22 UTC
*** Bug 225881 has been marked as a duplicate of this bug. ***
Comment 6 Exceptions Reporter 2013-02-21 06:41:00 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=193177
Comment 7 Exceptions Reporter 2013-03-25 14:09:42 UTC
Created attachment 133035 [details]
stacktrace

manually (exporer) removed file from local Maven repository; updated index in NetBeans so that the file gets unregisteres; readded the jar manually to the local Maven repository; tried to update the index again when the problem happened
Comment 8 gualtiero65 2013-04-29 06:19:26 UTC
Created attachment 133904 [details]
stacktrace

Fixing Maven missing dependency
Comment 9 Milos Kleint 2013-11-25 11:15:37 UTC
recent reports all deal with "not enough disk space" kind of error. While not likely the primary source of failure, it somehow leaves the internals of the maven indexing engine in inconsistent state.
Comment 10 Milos Kleint 2014-01-20 09:00:01 UTC
*** Bug 228607 has been marked as a duplicate of this bug. ***
Comment 11 Tomas Stupka 2014-12-05 17:04:26 UTC
no report since 7.4. closing for now.
Comment 12 Tomas Stupka 2015-05-25 09:03:37 UTC
*** Bug 252334 has been marked as a duplicate of this bug. ***
Comment 13 Martin Balin 2016-07-07 08:39:41 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss