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'

Sonatype JIRA | Emil Genchev | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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)

    Sonatype JIRA | 6 years ago | 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'
  2. 0

    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)

    Sonatype JIRA | 6 years ago | 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'

    Root Cause Analysis

    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'

      at org.apache.lucene.util.CloseableThreadLocal.get()
    2. Lucene
      IndexReader.document
      1. org.apache.lucene.util.CloseableThreadLocal.get(CloseableThreadLocal.java:64)
      2. org.apache.lucene.index.SegmentReader.getFieldsReader(SegmentReader.java:842)
      3. org.apache.lucene.index.SegmentReader.document(SegmentReader.java:943)
      4. org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:533)
      5. org.apache.lucene.index.IndexReader.document(IndexReader.java:658)
      5 frames
    3. Maven :: Indexer Core
      DefaultIndexPacker.packIndex
      1. org.apache.maven.index.incremental.DefaultIncrementalHandler.getIndexChunk(DefaultIncrementalHandler.java:154)
      2. org.apache.maven.index.incremental.DefaultIncrementalHandler.getIncrementalUpdates(DefaultIncrementalHandler.java:65)
      3. org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:117)
      3 frames
    4. Sonatype Nexus Indexer
      DefaultIndexerManager.publishAllIndex
      1. org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1230)
      2. org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:1143)
      2 frames
    5. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.tasks.PublishIndexesTask.doRun(PublishIndexesTask.java:65)
      2. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192)
      2 frames
    6. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
      1 frame
    7. 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:679)
      7 frames