maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MINDEXER-63) NullPointerException at org.apache.maven.index.context.DefaultIndexingContext.acquireIndexSearcher
Date Tue, 12 Jan 2016 20:12:45 GMT

     [ 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)

Mime
View raw message