java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I enabled "download remote indexes" for my proxy of central. After that some problem followed (http://pastebin.com/8LdjcWW8), and when I shut down nexus I got the following. java.lang.NullPointerException at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:328) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:904) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:844) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:818) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:60) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:75) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:152) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:437) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.NullPointerException at org.apache.lucene.store.Directory.copy(Directory.java:186) at org.apache.maven.index.context.IndexUtils.copyDirectory(IndexUtils.java:51) at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:306) ... 14 more
    via by Pascal Rapicault,
  • Maven indexer throws NPE
    via GitHub by geertschuring
    ,
  • NPE in Maven Indexer Plugin
    via GitHub by davsclaus
    ,
    • java.lang.NullPointerException at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:328) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:904) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:844) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:818) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:60) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:75) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:152) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:437) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.NullPointerException at org.apache.lucene.store.Directory.copy(Directory.java:186) at org.apache.maven.index.context.IndexUtils.copyDirectory(IndexUtils.java:51) at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:306) ... 14 more
    No Bugmate found.