java.lang.NullPointerException

Sonatype JIRA | Kristine O'Connor | 8 years ago
  1. 0

    Created a ReIndex Repositories scheduled service for the Public Repo and set the recurrence to Manual => After the save, I right clicked on the saved service and selected Run => I then right clicked and selected Run a second time (as the status did not update) the following error was logged in the nexus.log: 2008-06-27 16:23:27.593 INFO [pxpool-1-thread-10:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing all registered repositories : Process started on Fri Jun 27 16:21:42 MST 2008, finished on Fri Jun 27 16:23:26 MST 2008 with error. Error message is: java.lang.NullPointerException Strack trace: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultNexusIndexer.rebuildGroups(DefaultNexusIndexer.java:569) at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryGroupIndex(DefaultIndexerManager.java:677) at org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:392) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:762) at org.sonatype.nexus.DefaultNexus.reindexAllRepositories(DefaultNexus.java:1129) 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:290) 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.DefaultNexusIndexer.rebuildGroups(DefaultNexusIndexer.java:569) at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryGroupIndex(DefaultIndexerManager.java:677) at org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:392) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:762) at org.sonatype.nexus.DefaultNexus.reindexAllRepositories(DefaultNexus.java:1129) 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:290) 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)

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    java.lang.NullPointerException
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    Create a daily scheduled task for all repos to reindex => When the time comes for the task to kick off, the task status updates to Broken. Note that I am able to manually run a reindex on a single repo without producing any errors. 2008-10-07 10:29:00.046 INFO [pxpool-1-thread-1:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing all registered repositories : Process started on Tue Oct 07 10:29:00 MST 2008, not yet finished. 2008-10-07 10:29:00.718 INFO [pxpool-1-thread-1:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing all registered repositories : Process started on Tue Oct 07 10:29:00 MST 2008, finished on Tue Oct 07 10:29:00 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:1322) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:51) 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(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) 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:1322) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:51) 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(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) 2008-10-07 10:30:01.218 INFO [btpool0-13:] - org.sonatype.plexus.rest.resource.PlexusResource:RepositoryContentPlexusResource: Created ResourceStore request for / 2008-10-07 10:30:03.359 INFO [pxpool-1-thread-2:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing repository with ID=thirdparty : Process started on Tue Oct 07 10:30:03 MST 2008, not yet finished. 2008-10-07 10:30:03.531 INFO [pxpool-1-thread-2:] - org.sonatype.nexus.index.IndexerManager:default: Publishing local index for repository thirdparty 2008-10-07 10:30:03.671 INFO [pxpool-1-thread-2:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing repository with ID=thirdparty : Process started on Tue Oct 07 10:30:03 MST 2008, finished successfully on Tue Oct 07 10:30:03 MST 2008

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    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

      No message provided

      at org.sonatype.nexus.index.DefaultNexusIndexer.rebuildGroups()
    2. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexAllRepositories
      1. org.sonatype.nexus.index.DefaultNexusIndexer.rebuildGroups(DefaultNexusIndexer.java:569)
      2. org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryGroupIndex(DefaultIndexerManager.java:677)
      3. org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:392)
      4. org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:762)
      4 frames
    3. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.DefaultNexus.reindexAllRepositories(DefaultNexus.java:1129)
      2. org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:49)
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:136)
      3 frames
    4. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:290)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      7. java.lang.Thread.run(Thread.java:619)
      7 frames