You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/01/12 21:12:45 UTC
[jira] [Closed] (MINDEXER-63) NullPointerException at
org.apache.maven.index.context.DefaultIndexingContext.acquireIndexSearcher
[ https://issues.apache.org/jira/browse/MINDEXER-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MINDEXER-63.
----------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still persists, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.
> NullPointerException at org.apache.maven.index.context.DefaultIndexingContext.acquireIndexSearcher
> --------------------------------------------------------------------------------------------------
>
> Key: MINDEXER-63
> URL: https://issues.apache.org/jira/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:
> {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
(v6.3.4#6332)