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-44) NPE from DefaultSearchEngine.doSearchWithCeiling
Date Sun, 06 Sep 2015 20:51:57 GMT

     [ https://issues.apache.org/jira/browse/MINDEXER-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Osipov closed MINDEXER-44.
----------------------------------
    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 applies, retest your problem with the most recent version of Maven
and the affected component, reopen and post your results.

> NPE from DefaultSearchEngine.doSearchWithCeiling
> ------------------------------------------------
>
>                 Key: MINDEXER-44
>                 URL: https://issues.apache.org/jira/browse/MINDEXER-44
>             Project: Maven Indexer
>          Issue Type: Bug
>    Affects Versions: 4.1.1
>            Reporter: Jesse Glick
>            Priority: Minor
>
> http://netbeans.org/bugzilla/show_bug.cgi?id=202138 reports http://statistics.netbeans.org/exceptions/messageslog?id=533660
which shows
> {code}
> java.lang.NullPointerException
> 	at org.apache.maven.index.DefaultSearchEngine.doSearchWithCeiling(DefaultSearchEngine.java:316)
> 	at org.apache.maven.index.DefaultSearchEngine.searchFlat(DefaultSearchEngine.java:169)
> 	at org.apache.maven.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:102)
> 	at org.apache.maven.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:77)
> {code}
> This comes after some index download problems like
> {code}
> java.io.FileNotFoundException: Resource nexus-maven-repository-index.gz does not exist
> 	at org.apache.maven.index.updater.WagonHelper$WagonFetcher.retrieve(WagonHelper.java:196)
> 	at org.apache.maven.index.updater.WagonHelper$WagonFetcher.retrieve(WagonHelper.java:166)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:191)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:76)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:642)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:861)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157)
> {code}
> It seems that the {{DefaultIndexingContext.indexSearcher}} is null, for whatever reason,
and {{searchFlatPaged}} is not verifying that it has been passed a valid context and does
not attempt to fix an invalid context, perhaps using {{openAndWarmupReaders}}.
> Probably the caller is at fault for attempting a search on a context with no valid index,
but this ought to be reported more clearly than with an NPE several calls down the stack,
and there should be some documented method for checking that a context is somehow complete
and ready for use.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message