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 228607 - NullPointerException at org.apache.maven.index.context.DefaultIndexingContext.releaseIndexSearcher
Summary: NullPointerException at org.apache.maven.index.context.DefaultIndexingContext...
Status: VERIFIED DUPLICATE of bug 219645
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-16 10:08 UTC by Jiri Skrivanek
Modified: 2014-01-20 09:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace. (2.75 KB, text/plain)
2013-04-16 10:08 UTC, Jiri Skrivanek
Details
IDE log. (152.08 KB, text/plain)
2013-04-16 13:47 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2013-04-16 10:08:19 UTC
Created attachment 133517 [details]
Stack trace.

Exception appeared after updationg of index of Central repository. Previously I stopped that indexing and it started again after restart.

java.lang.NullPointerException
	at org.apache.maven.index.context.DefaultIndexingContext.releaseIndexSearcher(DefaultIndexingContext.java:509)
	at org.apache.maven.index.context.DefaultIndexingContext.rebuildGroups(DefaultIndexingContext.java:768)
	at org.apache.maven.index.context.DefaultIndexingContext.replace(DefaultIndexingContext.java:614)
	at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:218)


Product Version: NetBeans IDE 7.3.1 (Build 201304152201)
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Milos Kleint 2013-04-16 13:43:36 UTC
could have been fixed in trunk by upgrading the maven-indexer library.
Comment 2 Milos Kleint 2013-04-16 13:44:36 UTC
can you attach the IDE log as well? the NPE could be caused by some previous failure.
Comment 3 Jiri Skrivanek 2013-04-16 13:47:53 UTC
Created attachment 133529 [details]
IDE log.
Comment 4 Milos Kleint 2014-01-20 09:00:01 UTC
I believe this is caused by the same piece of code in maven-indexer as issue 219645, for some reason closing/deleting of indexes fails and then reopen + recreation of searcher is never done.

*** This bug has been marked as a duplicate of bug 219645 ***