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 | 5 years ago
  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 | 5 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 | 5 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

    500 Internal Server ErrorĀ  SAP NetWeaver A... | SCN

    sap.com | 1 year ago
    java.lang.NullPointerException: while trying to invoke the method com.sap.sql.jdbc.ConnectionContext.getConnectionID() of an object loaded from field com.sap.sql.jdbc.common.CommonPooledConnection.connContext of an object loaded from local variable 'this'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SCN: Message List

    rssing.com | 1 year ago
    java.lang.NullPointerException: while trying to invoke the method com.sap.sql.jdbc.ConnectionContext.getConnectionID() of an object loaded from field com.sap.sql.jdbc.common.CommonPooledConnection.connContext of an object loaded from local variable 'this'
  6. 0

    Using OR along with join query results causing NullPointerException

    Stack Overflow | 1 year ago | suren
    java.lang.NullPointerException: while trying to invoke the method org.apache.lucene.search.Query.hashCode() of a null object loaded from field org.apache.solr.search.JoinQuery.q of an object loaded from local variable 'this'

    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