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
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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'
  3. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 3 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    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

      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