[ 
https://issues.apache.org/jira/browse/MINDEXER-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965286#comment-17965286
 ] 

Olivier Lamy commented on MINDEXER-63:
--------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-indexer#489|https://github.com/apache/maven-indexer/issues/489]. 

> NullPointerException at 
> org.apache.maven.index.context.DefaultIndexingContext.acquireIndexSearcher
> --------------------------------------------------------------------------------------------------
>
>                 Key: MINDEXER-63
>                 URL: https://issues.apache.org/jira/browse/MINDEXER-63
>             Project: Maven Indexer (Moved to GitHub Issues)
>          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:
> {code:java}
> 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();
>  }
> {code}
> when deleteIndexFiles(0 fails, openAndWarmup() is not called. also 
> closeReaders() ignores indexWriter..



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to