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.

  • We are getting this exception during the PublishIndexes task. Any idea? jvm 1 | 2011-06-20 03:02:40 INFO - o.s.n.f.DefaultFeed~ - Publishing indexes for all registered repositories : Process started on Mon Jun 20 03:00:00 CEST 2011, finished on Mon Jun 20 03:02:39 CEST 2011 with error. Error message is: java.lang.NullPointerException, while trying to invoke the method java.lang.ThreadLocal.get() of an object loaded from field org.apache.lucene.util.CloseableThreadLocal.t of an object loaded from local variable 'this' Strack trace: java.lang.NullPointerException: while trying to invoke the method java.lang.ThreadLocal.get() of an object loaded from field org.apache.lucene.util.CloseableThreadLocal.t of an object loaded from local variable 'this' jvm 1 | at org.apache.lucene.util.CloseableThreadLocal.get(CloseableThreadLocal.java:64) jvm 1 | at org.apache.lucene.index.SegmentReader.getFieldsReader(SegmentReader.java:842) jvm 1 | at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:943) jvm 1 | at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:533) jvm 1 | at org.apache.lucene.index.IndexReader.document(IndexReader.java:658) jvm 1 | at org.apache.maven.index.incremental.DefaultIncrementalHandler.getIndexChunk(DefaultIncrementalHandler.java:154) jvm 1 | at org.apache.maven.index.incremental.DefaultIncrementalHandler.getIncrementalUpdates(DefaultIncrementalHandler.java:65) jvm 1 | at org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:117) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1230) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:1143) jvm 1 | at org.sonatype.nexus.tasks.PublishIndexesTask.doRun(PublishIndexesTask.java:65) 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:303) jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) jvm 1 | at java.lang.Thread.run(Thread.java:679) jvm 1 | jvm 1 | java.lang.NullPointerException: while trying to invoke the method java.lang.ThreadLocal.get() of an object loaded from field org.apache.lucene.util.CloseableThreadLocal.t of an object loaded from local variable 'this' jvm 1 | at org.apache.lucene.util.CloseableThreadLocal.get(CloseableThreadLocal.java:64) jvm 1 | at org.apache.lucene.index.SegmentReader.getFieldsReader(SegmentReader.java:842) jvm 1 | at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:943) jvm 1 | at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:533) jvm 1 | at org.apache.lucene.index.IndexReader.document(IndexReader.java:658) jvm 1 | at org.apache.maven.index.incremental.DefaultIncrementalHandler.getIndexChunk(DefaultIncrementalHandler.java:154) jvm 1 | at org.apache.maven.index.incremental.DefaultIncrementalHandler.getIncrementalUpdates(DefaultIncrementalHandler.java:65) jvm 1 | at org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:117) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1230) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:1143) jvm 1 | at org.sonatype.nexus.tasks.PublishIndexesTask.doRun(PublishIndexesTask.java:65) 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:303) jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) jvm 1 | at java.lang.Thread.run(Thread.java:679)
    via by Emil Genchev,
  • We are getting this exception during the PublishIndexes task. Any idea? jvm 1 | 2011-06-20 03:02:40 INFO - o.s.n.f.DefaultFeed~ - Publishing indexes for all registered repositories : Process started on Mon Jun 20 03:00:00 CEST 2011, finished on Mon Jun 20 03:02:39 CEST 2011 with error. Error message is: java.lang.NullPointerException, while trying to invoke the method java.lang.ThreadLocal.get() of an object loaded from field org.apache.lucene.util.CloseableThreadLocal.t of an object loaded from local variable 'this' Strack trace: java.lang.NullPointerException: while trying to invoke the method java.lang.ThreadLocal.get() of an object loaded from field org.apache.lucene.util.CloseableThreadLocal.t of an object loaded from local variable 'this' jvm 1 | at org.apache.lucene.util.CloseableThreadLocal.get(CloseableThreadLocal.java:64) jvm 1 | at org.apache.lucene.index.SegmentReader.getFieldsReader(SegmentReader.java:842) jvm 1 | at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:943) jvm 1 | at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:533) jvm 1 | at org.apache.lucene.index.IndexReader.document(IndexReader.java:658) jvm 1 | at org.apache.maven.index.incremental.DefaultIncrementalHandler.getIndexChunk(DefaultIncrementalHandler.java:154) jvm 1 | at org.apache.maven.index.incremental.DefaultIncrementalHandler.getIncrementalUpdates(DefaultIncrementalHandler.java:65) jvm 1 | at org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:117) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1230) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:1143) jvm 1 | at org.sonatype.nexus.tasks.PublishIndexesTask.doRun(PublishIndexesTask.java:65) 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:303) jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) jvm 1 | at java.lang.Thread.run(Thread.java:679) jvm 1 | jvm 1 | java.lang.NullPointerException: while trying to invoke the method java.lang.ThreadLocal.get() of an object loaded from field org.apache.lucene.util.CloseableThreadLocal.t of an object loaded from local variable 'this' jvm 1 | at org.apache.lucene.util.CloseableThreadLocal.get(CloseableThreadLocal.java:64) jvm 1 | at org.apache.lucene.index.SegmentReader.getFieldsReader(SegmentReader.java:842) jvm 1 | at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:943) jvm 1 | at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:533) jvm 1 | at org.apache.lucene.index.IndexReader.document(IndexReader.java:658) jvm 1 | at org.apache.maven.index.incremental.DefaultIncrementalHandler.getIndexChunk(DefaultIncrementalHandler.java:154) jvm 1 | at org.apache.maven.index.incremental.DefaultIncrementalHandler.getIncrementalUpdates(DefaultIncrementalHandler.java:65) jvm 1 | at org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:117) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1230) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:1143) jvm 1 | at org.sonatype.nexus.tasks.PublishIndexesTask.doRun(PublishIndexesTask.java:65) 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:303) jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) jvm 1 | at java.lang.Thread.run(Thread.java:679)
    via by Emil Genchev,
    • java.lang.NullPointerException: while trying to invoke the method java.lang.ThreadLocal.get() of an object loaded from field org.apache.lucene.util.CloseableThreadLocal.t of an object loaded from local variable 'this' at org.apache.lucene.util.CloseableThreadLocal.get(CloseableThreadLocal.java:64) at org.apache.lucene.index.SegmentReader.getFieldsReader(SegmentReader.java:842) at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:943) at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:533) at org.apache.lucene.index.IndexReader.document(IndexReader.java:658) at org.apache.maven.index.incremental.DefaultIncrementalHandler.getIndexChunk(DefaultIncrementalHandler.java:154) at org.apache.maven.index.incremental.DefaultIncrementalHandler.getIncrementalUpdates(DefaultIncrementalHandler.java:65) at org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:117) at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1230) at org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:1143) at org.sonatype.nexus.tasks.PublishIndexesTask.doRun(PublishIndexesTask.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:679)
    No Bugmate found.