java.lang.NullPointerException

Sonatype JIRA | Juven Xu | 8 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

    {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}

    Sonatype JIRA | 8 years ago | Juven Xu
    java.lang.NullPointerException
  2. 0

    {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}

    Sonatype JIRA | 8 years ago | Juven Xu
    java.lang.NullPointerException
  3. 0

    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

    Sonatype JIRA | 7 years ago | Todd Merrill
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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

    Sonatype JIRA | 7 years ago | Todd Merrill
    java.lang.NullPointerException
  6. 0

    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.

    Sonatype JIRA | 6 years ago | Rich Seddon
    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.proxy.wastebasket.DefaultFSWastebasket.removeForever()
    2. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.removeForever(DefaultFSWastebasket.java:287)
      2. org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.purge(DefaultFSWastebasket.java:134)
      3. org.sonatype.nexus.tasks.EmptyTrashTask.doRun(EmptyTrashTask.java:52)
      4. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139)
      4 frames
    3. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342)
      1 frame
    4. 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:886)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      7. java.lang.Thread.run(Thread.java:619)
      7 frames