java.io.IOException: Error scanning context central-ctx: java.lang.NullPointerException

Sonatype JIRA | Rich Seddon | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Nexus throws an NPE if the download of indexes is blocked by corporate firewall policy: {noformat} 2011-02-24 20:30:00 INFO [pool-1-thread-4] - o.s.n.p.m.m.M2Repos~ - Clearing NFC cache in repository ID='central' from path='/.index' 2011-02-24 20:30:00 INFO [pool-1-thread-4] - o.s.n.p.s.r.c.Commo~ - Remote storage settings change detected for ProxyRepository ID="central" ("Maven Central"), updating HttpClient... 2011-02-24 20:49:18 WARN [pool-1-thread-4] - o.s.n.i.DefaultInde~ - Cannot fetch remote index for repository central java.io.FileNotFoundException: nexus-maven-repository-index.zip (Forbidden) at org.sonatype.nexus.index.DefaultIndexerManager$2.retrieve(DefaultIndexerManager.java:1091) at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:190) at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:75) at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:641) at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:875) at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:156) at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1111) at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1013) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:897) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:810) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2011-02-24 20:49:51 INFO [pool-1-thread-4] - o.s.n.f.DefaultFeed~ - Updating all registered repositories index : Process started on Thu Feb 24 20:29:15 EST 2011, finished on Thu Feb 24 20:49:51 EST 2011 with error. Error message is: java.io.IOException, Error scanning context central-ctx: java.lang.NullPointerException Strack trace: java.io.IOException: Error scanning context central-ctx: java.lang.NullPointerException at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:300) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:903) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:810) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.apache.maven.index.context.IndexUtils.updateTimestamp(IndexUtils.java:175) at org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(DefaultIndexingContext.java:418) at org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(DefaultIndexingContext.java:408) at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:293) ... 13 more java.io.IOException: Error scanning context central-ctx: java.lang.NullPointerException at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:300) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:903) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:810) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.apache.maven.index.context.IndexUtils.updateTimestamp(IndexUtils.java:175) at org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(DefaultIndexingContext.java:418) at org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(DefaultIndexingContext.java:408) at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:293) ... 13 more {noformat}

    Sonatype JIRA | 6 years ago | Rich Seddon
    java.io.IOException: Error scanning context central-ctx: java.lang.NullPointerException
  2. 0

    Nexus throws an NPE if the download of indexes is blocked by corporate firewall policy: {noformat} 2011-02-24 20:30:00 INFO [pool-1-thread-4] - o.s.n.p.m.m.M2Repos~ - Clearing NFC cache in repository ID='central' from path='/.index' 2011-02-24 20:30:00 INFO [pool-1-thread-4] - o.s.n.p.s.r.c.Commo~ - Remote storage settings change detected for ProxyRepository ID="central" ("Maven Central"), updating HttpClient... 2011-02-24 20:49:18 WARN [pool-1-thread-4] - o.s.n.i.DefaultInde~ - Cannot fetch remote index for repository central java.io.FileNotFoundException: nexus-maven-repository-index.zip (Forbidden) at org.sonatype.nexus.index.DefaultIndexerManager$2.retrieve(DefaultIndexerManager.java:1091) at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:190) at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:75) at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:641) at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:875) at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:156) at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1111) at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1013) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:897) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:810) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2011-02-24 20:49:51 INFO [pool-1-thread-4] - o.s.n.f.DefaultFeed~ - Updating all registered repositories index : Process started on Thu Feb 24 20:29:15 EST 2011, finished on Thu Feb 24 20:49:51 EST 2011 with error. Error message is: java.io.IOException, Error scanning context central-ctx: java.lang.NullPointerException Strack trace: java.io.IOException: Error scanning context central-ctx: java.lang.NullPointerException at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:300) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:903) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:810) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.apache.maven.index.context.IndexUtils.updateTimestamp(IndexUtils.java:175) at org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(DefaultIndexingContext.java:418) at org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(DefaultIndexingContext.java:408) at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:293) ... 13 more java.io.IOException: Error scanning context central-ctx: java.lang.NullPointerException at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:300) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:903) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:810) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.apache.maven.index.context.IndexUtils.updateTimestamp(IndexUtils.java:175) at org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(DefaultIndexingContext.java:418) at org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(DefaultIndexingContext.java:408) at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:293) ... 13 more {noformat}

    Sonatype JIRA | 6 years ago | Rich Seddon
    java.io.IOException: Error scanning context central-ctx: java.lang.NullPointerException
  3. 0

    Nexus Can't Download Remote Repo Index

    Stack Overflow | 4 years ago | sdoca
    java.io.IOException: Error scanning context opennms-sonatype-ctx: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.maven.index.context.IndexUtils.updateTimestamp()
    2. Maven :: Indexer Core
      DefaultNexusIndexer.scan
      1. org.apache.maven.index.context.IndexUtils.updateTimestamp(IndexUtils.java:175)
      2. org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(DefaultIndexingContext.java:418)
      3. org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(DefaultIndexingContext.java:408)
      4. org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:293)
      4 frames
    3. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexAllRepositories
      1. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:903)
      2. org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:810)
      2 frames
    4. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47)
      2. org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80)
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192)
      3 frames
    5. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      7. java.lang.Thread.run(Unknown Source)
      7 frames