java.lang.NullPointerException

Sonatype JIRA | Chandra mohan | 1 year ago
  1. 0

    During reindex job, getting notification of task failure with below errors continuously. ======================================================================= Task ID: 2 Task Name: Reindex Stack trace: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.purgeCurrentIndex(DefaultIndexerManager.java:1037) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1000) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:858) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:43) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:65) 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) ======================================================================= Task ID: 2 Task Name: Reindex Stack trace: java.io.FileNotFoundException: D:\Data\Nexus\sonatype-work\nexus\indexer\public-local\_x5.cfs (The system cannot find the file specified) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:552) at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:582) at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:488) at org.apache.lucene.index.CompoundFileReader.<init>(CompoundFileReader.java:70) at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:321) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:306) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:236) at org.apache.lucene.index.DocumentsWriter.applyDeletes(DocumentsWriter.java:915) at org.apache.lucene.index.IndexWriter.applyDeletes(IndexWriter.java:4339) at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3579) at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3450) at org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:3363) at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3408) at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:670) at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:607) at org.sonatype.nexus.index.DefaultIndexerManager.mergeRepositoryGroupIndexWithMember(DefaultIndexerManager.java:1375) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1026) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:858) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:43) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:65) 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(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) For java.io.FileNotFoundException: D:\Data\Nexus\sonatype-work\nexus\indexer\public-local\_x5.cfs (The system cannot find the file specified), its occuring for diff different files everytime like sometime we are getting notification for someother file - Task ID: 2 Task Name: Reindex Stack trace: java.io.FileNotFoundException: D:\Data\Nexus\sonatype-work\nexus\indexer\public-local\_b2.cfs (The system cannot find the file specified) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(Unknown Source)

    Sonatype JIRA | 1 year ago | Chandra mohan
    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.DefaultIndexerManager.purgeCurrentIndex()
    2. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexAllRepositories
      1. org.sonatype.nexus.index.DefaultIndexerManager.purgeCurrentIndex(DefaultIndexerManager.java:1037)
      2. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1000)
      3. org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:858)
      3 frames
    3. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:43)
      2. org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:65)
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192)
      3 frames
    4. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
      1 frame
    5. 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