java.lang.NullPointerException: null

Sonatype JIRA | Ari Maniatis | 4 years ago
  1. 0

    Things I tried AFTER I got the following exception (with no improvement) 1. Restart nexus 2. Try repairing indexes one at a time instead of all at once 3. find /nexus/storage -name .index | xargs rm -rf; restart nexus 4. rm -rf /nexus/indexer; restart nexus {code} 2012-10-05 12:12:30 WARN [ool-1-thread-19] - org.sonatype.nexus.tasks.RepairIndexTask - Scheduled task (reindex) failed :: Repairing all registered repositories index (started 2012-10-05T12:12:30+10:00, runtime 0:00:00.004) java.lang.NullPointerException: null at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:881) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:798) ~[na:na] at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:41) ~[na:na] at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:73) ~[na:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:158) ~[nexus-app-2.1.2.jar:na] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459) [plexus-task-scheduler-1.6.0.jar:na] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [na:1.7.0_05] at java.util.concurrent.FutureTask.run(FutureTask.java:166) [na:1.7.0_05] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_05] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_05] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_05] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_05] at java.lang.Thread.run(Thread.java:722) [na:1.7.0_05] {code}

    Sonatype JIRA | 4 years ago | Ari Maniatis
    java.lang.NullPointerException: null
  2. 0

    Things I tried AFTER I got the following exception (with no improvement) 1. Restart nexus 2. Try repairing indexes one at a time instead of all at once 3. find /nexus/storage -name .index | xargs rm -rf; restart nexus 4. rm -rf /nexus/indexer; restart nexus {code} 2012-10-05 12:12:30 WARN [ool-1-thread-19] - org.sonatype.nexus.tasks.RepairIndexTask - Scheduled task (reindex) failed :: Repairing all registered repositories index (started 2012-10-05T12:12:30+10:00, runtime 0:00:00.004) java.lang.NullPointerException: null at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:881) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:798) ~[na:na] at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:41) ~[na:na] at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:73) ~[na:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:158) ~[nexus-app-2.1.2.jar:na] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459) [plexus-task-scheduler-1.6.0.jar:na] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [na:1.7.0_05] at java.util.concurrent.FutureTask.run(FutureTask.java:166) [na:1.7.0_05] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_05] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_05] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_05] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_05] at java.lang.Thread.run(Thread.java:722) [na:1.7.0_05] {code}

    Sonatype JIRA | 4 years ago | Ari Maniatis
    java.lang.NullPointerException: null
  3. 0

    When running a scheduled task for Reindex all repos, an NPE is logged, and the task appears with a status of BROKEN. From the log: 2008-09-11 16:18:22.454 INFO [btpool0-6:] - org.restlet.Component (8125444): 2008-09-11 16:18:22 127.0.0.1 - 127.0.0.1 8079 GET /nexus/service/local/schedule_run/6/ _dc=1221175102349 200 574 - 94 http://localhost:8079 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 http://localhost:8079/nexus/ 2008-09-11 16:18:25.970 INFO [pxpool-1-thread-2:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing all registered repositories : Process started on Thu Sep 11 16:18:22 MST 2008, finished on Thu Sep 11 16:18:25 MST 2008 with error. Error message is: java.lang.NullPointerException Strack trace: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:951) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:899) at org.sonatype.nexus.DefaultNexus.reindexAllRepositories(DefaultNexus.java:1294) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:49) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:136) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:312) 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:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:951) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:899) at org.sonatype.nexus.DefaultNexus.reindexAllRepositories(DefaultNexus.java:1294) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:49) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:136) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:312) 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:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) 2008-09-11 16:18:32.938 INFO [btpool0-6:] - org.restlet.Component (8125444): 2008-09-11 16:18:32 127.0.0.1 - 127.0.0.1 8079 GET /nexus/service/local/schedules/ _dc=1221175112885 200 789 - 31 http://localhost:8079 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 http://localhost:8079

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Using the war file for version 1.2, run a reindex on all repos => the task updates to a Broken status. Note that a rebuild attributes task completed without error. From the log files: 2008-11-05 14:58:50.843 DEBUG [http--8080-15:] - org.sonatype.nexus.security.filter.authz.HttpVerbMappingAuthorizationFilter: MAPPED 'read' action to permission: nexus:repogroups:read 2008-11-05 14:59:00.093 INFO [pxpool-1-thread-11:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing all registered repositories : Process started on Wed Nov 05 14:59:00 MST 2008, not yet finished. 2008-11-05 14:59:02.593 INFO [pxpool-1-thread-11:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing all registered repositories : Process started on Wed Nov 05 14:59:00 MST 2008, finished on Wed Nov 05 14:59:02 MST 2008 with error. Error message is: java.lang.NullPointerException Strack trace: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:981) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:929) at org.sonatype.nexus.DefaultNexus.reindexAllRepositories(DefaultNexus.java:1380) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:51) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) 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:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:981) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:929) at org.sonatype.nexus.DefaultNexus.reindexAllRepositories(DefaultNexus.java:1380) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:51) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) 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:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) 2008-11-05 14:59:48.687 DEBUG [http--8080-4:] - org.sonatype.nexus.security.filter.authz.HttpVerbMappingAuthorizationFilter: MAPPED 'read' action to permission: nexus:repogroups:read 2008-11-05 14:59:48.703 DEBUG [http--8080-8:] - org.sonatype.nexus.security.filter.authz.HttpVerbMappingAuthorizationFilter: MAPPED 'read' action to permission: nexus

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    java.lang.NullPointerException
  6. 0

    {code} 2008-12-19 17:28:29.365 INFO [pxpool-1-thread-3:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing all registered repositories : Process started on Fri Dec 19 17:27:57 NZDT 2008, finished on Fri Dec 19 17:28:29 NZDT 2008 with error. Error message is: java.lang.NullPointerException Strack trace: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:734) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:679) at org.sonatype.nexus.DefaultNexus.reindexAllRepositories(DefaultNexus.java:1390) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:51) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) 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:207) 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:619) java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:734) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:679) at org.sonatype.nexus.DefaultNexus.reindexAllRepositories(DefaultNexus.java:1390) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:51) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) 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:207) 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:619) {code}

    Sonatype JIRA | 8 years ago | Mark Derricutt
    java.lang.NullPointerException

    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

      null

      at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository()
    2. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexAllRepositories
      1. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:881)[na:na]
      2. org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:798)[na:na]
      2 frames
    3. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:41)[na:na]
      2. org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:73)[na:na]
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:158)[nexus-app-2.1.2.jar:na]
      3 frames
    4. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459)[plexus-task-scheduler-1.6.0.jar:na]
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[na:1.7.0_05]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)[na:1.7.0_05]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[na:1.7.0_05]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[na:1.7.0_05]
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[na:1.7.0_05]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[na:1.7.0_05]
      7. java.lang.Thread.run(Thread.java:722)[na:1.7.0_05]
      7 frames