[
https://jira.codehaus.org/browse/MINDEXER-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311846#comment-311846
]
Milos Kleint commented on MINDEXER-63:
--------------------------------------
http://netbeans.org/bugzilla/show_bug.cgi?id=219552 might also be related
> NullPointerException at
> org.apache.maven.index.context.DefaultIndexingContext.acquireIndexSearcher
> --------------------------------------------------------------------------------------------------
>
> Key: MINDEXER-63
> URL: https://jira.codehaus.org/browse/MINDEXER-63
> Project: Maven Indexer
> Issue Type: Bug
> Affects Versions: 5.0.0
> Environment: netbeans 7.3 dev builds.
> Reporter: Milos Kleint
> Priority: Critical
>
> see issue http://netbeans.org/bugzilla/show_bug.cgi?id=219645
> for some reason (unknown to me yet) the index files cannot be deleted. The
> codebase then gets into bad state.
> possibly wrong code in DefaultIndexingContext:
> public synchronized void replace( Directory directory )
> Â Â Â Â throws IOException
> Â Â {
> Â Â Â Â final Date ts = IndexUtils.getTimestamp( directory );
> Â Â Â Â closeReaders();
> Â Â Â Â deleteIndexFiles( false );
> Â Â Â Â IndexUtils.copyDirectory( directory, indexDirectory );
> Â Â Â Â openAndWarmup();
> Â Â Â Â // reclaim the index as mine
> Â Â Â Â storeDescriptor();
> Â Â Â Â updateTimestamp( true, ts );
> Â Â Â Â optimize();
> Â Â }
> when deleteIndexFiles(0 fails, openAndWarmup() is not called. also
> closeReaders() ignores indexWriter..
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira