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.

  • Saw this in the log this morning from our daily 'Remove Snapshots From Repository' scheduled task. vm 1 | 2010-09-21 06:44:59 INFO - o.s.n.c.a.DefaultNe~ - Applying Nexus Configuration... jvm 1 | 2010-09-21 06:44:59 INFO - o.s.n.c.v.DefaultAp~ - Nexus configuration validated succesfully. jvm 1 | 2010-09-21 06:44:59 INFO - o.s.n.f.DefaultFeed~ - Removing snapshots from repository Snapshots : Process started on Tue Sep 21 06:44:59 CEST 2010, not yet finished. jvm 1 | 2010-09-21 06:44:59 INFO - o.s.n.m.t.DefaultSn~ - Removing old SNAPSHOT deployments from snapshots repository. jvm 1 | 2010-09-21 06:47:49 INFO - o.s.n.p.m.m.M2Repos~ - Expiring local cache in repository ID='snapshots' from path='/' jvm 1 | 2010-09-21 06:49:12 INFO - o.s.n.p.m.m.M2Repos~ - Clearing NFC cache in repository ID='snapshots' from path='/' jvm 1 | 2010-09-21 06:49:37 WARN - o.s.n.m.t.DefaultSn~ - Error occured while processing item '/aaa/bbbb/ccccc/dddddd/eeeee/0.5.2-SNAPSHOT/eeeee-0.5.2-20091215.050156-2.war'. jvm 1 | java.lang.NullPointerException jvm 1 | at org.sonatype.nexus.proxy.item.StringContentLocator.toByteArray(StringContentLocator.java:53) jvm 1 | at org.sonatype.nexus.proxy.item.StringContentLocator.<init>(StringContentLocator.java:39) jvm 1 | at org.sonatype.nexus.proxy.item.StringContentLocator.<init>(StringContentLocator.java:34) jvm 1 | at org.sonatype.nexus.proxy.maven.metadata.DefaultMetadataHelper.store(DefaultMetadataHelper.java:55) jvm 1 | at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.rebuildChecksum(AbstractMetadataHelper.java:305) jvm 1 | at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.processFile(AbstractMetadataHelper.java:109) jvm 1 | at org.sonatype.nexus.proxy.maven.RecreateMavenMetadataWalkerProcessor.processItem(RecreateMavenMetadataWalkerProcessor.java:86) jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.processItem(DefaultWalker.java:317) jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:232) jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshotsFromMavenRepository(DefaultSnapshotRemover.java:218) jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:98) jvm 1 | at org.sonatype.nexus.DefaultNexus.removeSnapshots(DefaultNexus.java:439) jvm 1 | at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:91) jvm 1 | at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:30) jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:123) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) jvm 1 | at java.lang.Thread.run(Thread.java:595) jvm 1 | 2010-09-21 06:51:46 INFO - o.s.n.f.DefaultFeed~ - Removing snapshots from repository Snapshots : Process started on Tue Sep 21 06:44:59 CEST 2010, finished successfully on Tue Sep 21 06:51:46 CEST 2010
    via by Todd Merrill,
  • Saw this in the log this morning from our daily 'Remove Snapshots From Repository' scheduled task. vm 1 | 2010-09-21 06:44:59 INFO - o.s.n.c.a.DefaultNe~ - Applying Nexus Configuration... jvm 1 | 2010-09-21 06:44:59 INFO - o.s.n.c.v.DefaultAp~ - Nexus configuration validated succesfully. jvm 1 | 2010-09-21 06:44:59 INFO - o.s.n.f.DefaultFeed~ - Removing snapshots from repository Snapshots : Process started on Tue Sep 21 06:44:59 CEST 2010, not yet finished. jvm 1 | 2010-09-21 06:44:59 INFO - o.s.n.m.t.DefaultSn~ - Removing old SNAPSHOT deployments from snapshots repository. jvm 1 | 2010-09-21 06:47:49 INFO - o.s.n.p.m.m.M2Repos~ - Expiring local cache in repository ID='snapshots' from path='/' jvm 1 | 2010-09-21 06:49:12 INFO - o.s.n.p.m.m.M2Repos~ - Clearing NFC cache in repository ID='snapshots' from path='/' jvm 1 | 2010-09-21 06:49:37 WARN - o.s.n.m.t.DefaultSn~ - Error occured while processing item '/aaa/bbbb/ccccc/dddddd/eeeee/0.5.2-SNAPSHOT/eeeee-0.5.2-20091215.050156-2.war'. jvm 1 | java.lang.NullPointerException jvm 1 | at org.sonatype.nexus.proxy.item.StringContentLocator.toByteArray(StringContentLocator.java:53) jvm 1 | at org.sonatype.nexus.proxy.item.StringContentLocator.<init>(StringContentLocator.java:39) jvm 1 | at org.sonatype.nexus.proxy.item.StringContentLocator.<init>(StringContentLocator.java:34) jvm 1 | at org.sonatype.nexus.proxy.maven.metadata.DefaultMetadataHelper.store(DefaultMetadataHelper.java:55) jvm 1 | at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.rebuildChecksum(AbstractMetadataHelper.java:305) jvm 1 | at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.processFile(AbstractMetadataHelper.java:109) jvm 1 | at org.sonatype.nexus.proxy.maven.RecreateMavenMetadataWalkerProcessor.processItem(RecreateMavenMetadataWalkerProcessor.java:86) jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.processItem(DefaultWalker.java:317) jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:232) jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshotsFromMavenRepository(DefaultSnapshotRemover.java:218) jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:98) jvm 1 | at org.sonatype.nexus.DefaultNexus.removeSnapshots(DefaultNexus.java:439) jvm 1 | at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:91) jvm 1 | at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:30) jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:123) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) jvm 1 | at java.lang.Thread.run(Thread.java:595) jvm 1 | 2010-09-21 06:51:46 INFO - o.s.n.f.DefaultFeed~ - Removing snapshots from repository Snapshots : Process started on Tue Sep 21 06:44:59 CEST 2010, finished successfully on Tue Sep 21 06:51:46 CEST 2010
    via by Todd Merrill,
  • {noformat} 2009-05-12 17:24:57 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:57 CST 2009, not yet finished. 2009-05-12 17:24:57 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:57 CST 2009, finished successfully on Tue May 12 17:24:57 CST 2009 2009-05-12 17:24:57 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:57 CST 2009, not yet finished. 2009-05-12 17:24:57 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:57 CST 2009, finished successfully on Tue May 12 17:24:57 CST 2009 2009-05-12 17:24:58 INFO [ool-1-thread-10] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:24:58 INFO [ool-1-thread-11] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:24:58 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:58 CST 2009, not yet finished. 2009-05-12 17:24:58 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:58 CST 2009, finished successfully on Tue May 12 17:24:58 CST 2009 2009-05-12 17:24:58 INFO [ool-1-thread-11] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:58 CST 2009, not yet finished. 2009-05-12 17:24:58 INFO [ool-1-thread-11] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:58 CST 2009, finished successfully on Tue May 12 17:24:58 CST 2009 2009-05-12 17:24:59 INFO [pool-1-thread-9] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:24:59 INFO [ool-1-thread-10] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:24:59 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:59 CST 2009, not yet finished. 2009-05-12 17:24:59 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:59 CST 2009, finished on Tue May 12 17:24:59 CST 2009 with error. Error message is: java.lang.NullPointerException Strack trace: java.lang.NullPointerException at org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.removeForever(DefaultFSWastebasket.java:287) at org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.purge(DefaultFSWastebasket.java:134) at org.sonatype.nexus.tasks.EmptyTrashTask.doRun(EmptyTrashTask.java:52) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) 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.proxy.wastebasket.DefaultFSWastebasket.removeForever(DefaultFSWastebasket.java:287) at org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.purge(DefaultFSWastebasket.java:134) at org.sonatype.nexus.tasks.EmptyTrashTask.doRun(EmptyTrashTask.java:52) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) 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) 2009-05-12 17:24:59 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:59 CST 2009, not yet finished. 2009-05-12 17:24:59 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:59 CST 2009, finished successfully on Tue May 12 17:24:59 CST 2009 2009-05-12 17:25:00 INFO [ool-1-thread-10] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:25:00 INFO [pool-1-thread-9] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:25:00 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:25:00 CST 2009, not yet finished. 2009-05-12 17:25:00 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:25:00 CST 2009, finished successfully on Tue May 12 17:25:00 CST 2009 2009-05-12 17:25:01 INFO [ool-1-thread-10] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:25:01 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:25:01 CST 2009, not yet finished. 2009-05-12 17:25:01 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:25:01 CST 2009, finished successfully on Tue May 12 17:25:01 CST 2009 {noformat}
    via by Juven Xu,
  • Somehow a number of proxy attributes XML files where written out with an empty attributes section: {noformat} <file> <generation>286</generation> <path>/com/somcompany/someartifact-2.0.1-20091109.093931-3.jar</path> <readable>true</readable> <writable>true</writable> <repositoryId>snapshots</repositoryId> <created>1257759583000</created> <modified>1257759583000</modified> <storedLocally>1257759583713</storedLocally> <lastTouched>1257759583713</lastTouched> <lastRequested>1265717952488</lastRequested> <expired>true</expired> <attributes/> <length>37439</length> </file> {noformat} This is likely due to Nexus running out of disk space in the storage area. These attributes cannot be rebuilt after this occurs: {noformat} 2010-11-15 12:02:43 INFO [pool-1-thread-8] - o.s.n.f.DefaultFeed~ - Rebuilding maven metadata of repository Snapshots from path null and below. : Process started on Mon Nov 15 12:02:43 CST 2010, not yet finished. 2010-11-15 12:02:43 INFO [pool-1-thread-8] - o.s.n.p.m.m.M2Repos~ - Recreating Maven2 metadata in repository ID='snapshots' from path='/' 2010-11-15 12:02:43 WARN [pool-1-thread-8] - o.s.n.p.m.m.M2Repos~ - Error occured while processing item '/test/project_a/4.6-SNAPSHOT/project_a-4.6-20101115.175104-22.jar'. java.lang.NullPointerException at org.sonatype.nexus.proxy.item.StringContentLocator.toByteArray(StringContentLocator.java:53) at org.sonatype.nexus.proxy.item.StringContentLocator.<init>(StringContentLocator.java:39) at org.sonatype.nexus.proxy.item.StringContentLocator.<init>(StringContentLocator.java:34) at org.sonatype.nexus.proxy.maven.metadata.DefaultMetadataHelper.store(DefaultMetadataHelper.java:55) at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.rebuildChecksum(AbstractMetadataHelper.java:305) at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.processFile(AbstractMetadataHelper.java:109) at org.sonatype.nexus.proxy.maven.RecreateMavenMetadataWalkerProcessor.processItem(RecreateMavenMetadataWalkerProcessor.java:86) at org.sonatype.nexus.proxy.walker.DefaultWalker.processItem(DefaultWalker.java:317) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:232) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRecreateMavenMetadata(AbstractMavenRepository.java:212) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:199) at org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:68) 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: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) 2010-11-15 12:02:43 INFO [pool-1-thread-8] - o.s.n.f.DefaultFeed~ - Rebuilding maven metadata of repository Snapshots from path null and below. : Process started on Mon Nov 15 12:02:43 CST 2010, finished successfully on Mon Nov 15 12:02:43 CST 2010 {noformat} We should be able to recover automatically from this problem.
    via by Rich Seddon,
  • {noformat} 2009-05-12 17:24:57 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:57 CST 2009, not yet finished. 2009-05-12 17:24:57 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:57 CST 2009, finished successfully on Tue May 12 17:24:57 CST 2009 2009-05-12 17:24:57 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:57 CST 2009, not yet finished. 2009-05-12 17:24:57 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:57 CST 2009, finished successfully on Tue May 12 17:24:57 CST 2009 2009-05-12 17:24:58 INFO [ool-1-thread-10] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:24:58 INFO [ool-1-thread-11] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:24:58 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:58 CST 2009, not yet finished. 2009-05-12 17:24:58 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:58 CST 2009, finished successfully on Tue May 12 17:24:58 CST 2009 2009-05-12 17:24:58 INFO [ool-1-thread-11] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:58 CST 2009, not yet finished. 2009-05-12 17:24:58 INFO [ool-1-thread-11] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:58 CST 2009, finished successfully on Tue May 12 17:24:58 CST 2009 2009-05-12 17:24:59 INFO [pool-1-thread-9] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:24:59 INFO [ool-1-thread-10] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:24:59 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:59 CST 2009, not yet finished. 2009-05-12 17:24:59 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Emptying Trash. : Process started on Tue May 12 17:24:59 CST 2009, finished on Tue May 12 17:24:59 CST 2009 with error. Error message is: java.lang.NullPointerException Strack trace: java.lang.NullPointerException at org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.removeForever(DefaultFSWastebasket.java:287) at org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.purge(DefaultFSWastebasket.java:134) at org.sonatype.nexus.tasks.EmptyTrashTask.doRun(EmptyTrashTask.java:52) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) 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.proxy.wastebasket.DefaultFSWastebasket.removeForever(DefaultFSWastebasket.java:287) at org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.purge(DefaultFSWastebasket.java:134) at org.sonatype.nexus.tasks.EmptyTrashTask.doRun(EmptyTrashTask.java:52) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) 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) 2009-05-12 17:24:59 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:59 CST 2009, not yet finished. 2009-05-12 17:24:59 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:24:59 CST 2009, finished successfully on Tue May 12 17:24:59 CST 2009 2009-05-12 17:25:00 INFO [ool-1-thread-10] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:25:00 INFO [pool-1-thread-9] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:25:00 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:25:00 CST 2009, not yet finished. 2009-05-12 17:25:00 INFO [pool-1-thread-9] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:25:00 CST 2009, finished successfully on Tue May 12 17:25:00 CST 2009 2009-05-12 17:25:01 INFO [ool-1-thread-10] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-05-12 17:25:01 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:25:01 CST 2009, not yet finished. 2009-05-12 17:25:01 INFO [ool-1-thread-10] - o.s.n.f.FeedRecorder:default - Purging Timeline records. : Process started on Tue May 12 17:25:01 CST 2009, finished successfully on Tue May 12 17:25:01 CST 2009 {noformat}
    via by Juven Xu,
  • We upgraded to 2.7.1-01 and I configured the "remove all unused snapshots" task. In the log, it fills up with entries like {code} jvm 1 | 2014-01-09 10:53:00 WARN [pool-1-thread-9] - org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover - SnapshotRemover is failed to process path: '/com/example/MySuperProjectWAR/1.6.8-SNAPSHOT'. jvm 1 | java.lang.NullPointerException: null jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.getLastRequested(DefaultSnapshotRemover.java:596) ~[nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.snapshotShouldBeRemoved(DefaultSnapshotRemover.java:576) ~[nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.doOnCollectionExit(DefaultSnapshotRemover.java:439) ~[nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.onCollectionExit(DefaultSnapshotRemover.java:363) ~[nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:331) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:241) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:90) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshotsFromMavenRepository(DefaultSnapshotRemover.java:208) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.process(DefaultSnapshotRemover.java:153) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.process(DefaultSnapshotRemover.java:128) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.process(DefaultSnapshotRemover.java:150) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:112) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.maven.tasks.UnusedSnapshotRemoverTask.doRun(UnusedSnapshotRemoverTask.java:73) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.maven.tasks.UnusedSnapshotRemoverTask.doRun(UnusedSnapshotRemoverTask.java:31) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:157) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:419) [nexus-scheduler-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:45) [nexus-core-2.7.0-06.jar:2.7.0-06] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.2.jar:1.2.2] jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [na:1.7.0_09] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:166) [na:1.7.0_09] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_09] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_09] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_09] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_09] jvm 1 | at java.lang.Thread.run(Thread.java:722) [na:1.7.0_09] {code} All files are owned and writable by the nexus user. Originally I had the scheduled task to a group, but it still fails when configured to go against a single repo. The line in question https://github.com/sonatype/nexus-oss/blob/master/components/nexus-core/src/main/java/org/sonatype/nexus/maven/tasks/DefaultSnapshotRemover.java?source=cc#L596 I've tried repairing the indexes, restarting, but those have not fixed the problem. Plain OSS version, no additional plugins.
    via by Jim Sellers,
    • java.lang.NullPointerException at org.sonatype.nexus.proxy.item.StringContentLocator.toByteArray(StringContentLocator.java:53) at org.sonatype.nexus.proxy.item.StringContentLocator.<init>(StringContentLocator.java:39) at org.sonatype.nexus.proxy.item.StringContentLocator.<init>(StringContentLocator.java:34) at org.sonatype.nexus.proxy.maven.metadata.DefaultMetadataHelper.store(DefaultMetadataHelper.java:55) at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.rebuildChecksum(AbstractMetadataHelper.java:305) at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.processFile(AbstractMetadataHelper.java:109) at org.sonatype.nexus.proxy.maven.RecreateMavenMetadataWalkerProcessor.processItem(RecreateMavenMetadataWalkerProcessor.java:86) at org.sonatype.nexus.proxy.walker.DefaultWalker.processItem(DefaultWalker.java:317) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:232) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshotsFromMavenRepository(DefaultSnapshotRemover.java:218) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:98) at org.sonatype.nexus.DefaultNexus.removeSnapshots(DefaultNexus.java:439) at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:91) at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:30) 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:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595)
    No Bugmate found.