java.lang.NullPointerException

Atlassian JIRA | Julien Hoarau | 2 years ago
  1. 0

    Everything works normally but we see this exception in the log: {noformat} 2014-09-02 16:42:51,674 ERROR [scheduler_Worker-4] [atlassian.bonnie.search.BaseDocumentBuilder] extractWithLuceneExtractors Error extracting search fields from [com.atlassian.confluence.plugins.confluence-questions:topic-metadata] custom: workflow v.1 (2197110673) using BackwardsCompatibleExtractor wrapping com.atlassian.confluence.search.lucene.extractor.EntityDateExtractor@680f24d6 (confluence.extractors.core:objectDateExtractor): null java.lang.NullPointerException at org.apache.lucene.document.DateTools.dateToString(DateTools.java:87) at com.atlassian.bonnie.LuceneUtils.dateToString(LuceneUtils.java:32) at com.atlassian.confluence.search.lucene.extractor.EntityDateExtractor.addFields(EntityDateExtractor.java:22) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:43) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.extractWithLuceneExtractors(ConfluenceDocumentBuilder.java:155) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:49) at com.atlassian.confluence.search.lucene.tasks.UpdateDocumentIndexTask.perform(UpdateDocumentIndexTask.java:43) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$IndexTaskWriter.apply(DefaultConfluenceIndexManager.java:485) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$IndexTaskWriter.apply(DefaultConfluenceIndexManager.java:469) at com.atlassian.confluence.search.lucene.queue.JournalIndexTaskQueue$4.apply(JournalIndexTaskQueue.java:195) at com.atlassian.confluence.search.lucene.queue.JournalIndexTaskQueue$4.apply(JournalIndexTaskQueue.java:186) at com.atlassian.confluence.impl.journal.DefaultJournalService$1.apply(DefaultJournalService.java:117) at com.atlassian.confluence.impl.journal.DefaultJournalService$1.apply(DefaultJournalService.java:113) at com.atlassian.confluence.impl.journal.DefaultJournalManager.processEntries(DefaultJournalManager.java:98) at com.atlassian.confluence.impl.journal.DefaultJournalService.processEntries(DefaultJournalService.java:52) at com.atlassian.confluence.search.lucene.queue.JournalIndexTaskQueue.flushQueue(JournalIndexTaskQueue.java:184) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction$1.perform(DefaultConfluenceIndexManager.java:449) at com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:499) at com.atlassian.confluence.search.lucene.tasks.LuceneConnectionBackedIndexTaskPerformer.perform(LuceneConnectionBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction.perform(DefaultConfluenceIndexManager.java:434) at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:532) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.processTasks(DefaultConfluenceIndexManager.java:199) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.flushQueue(DefaultConfluenceIndexManager.java:144) at sun.reflect.GeneratedMethodAccessor385.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy84.flushQueue(Unknown Source) at com.atlassian.confluence.search.lucene.IndexQueueFlusher.executeJob(IndexQueueFlusher.java:32) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:65) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at com.atlassian.scheduler.quartz1.Quartz1JobFactory$ClassLoaderProtectingWrappedJob.execute(Quartz1JobFactory.java:62) at org.quartz.core.JobRunShell.run(JobRunShell.java:223) at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:22) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) {noformat}

    Atlassian JIRA | 2 years ago | Julien Hoarau
    java.lang.NullPointerException
  2. 0

    Everything works normally but we see this exception in the log: {noformat} 2014-09-02 16:42:51,674 ERROR [scheduler_Worker-4] [atlassian.bonnie.search.BaseDocumentBuilder] extractWithLuceneExtractors Error extracting search fields from [com.atlassian.confluence.plugins.confluence-questions:topic-metadata] custom: workflow v.1 (2197110673) using BackwardsCompatibleExtractor wrapping com.atlassian.confluence.search.lucene.extractor.EntityDateExtractor@680f24d6 (confluence.extractors.core:objectDateExtractor): null java.lang.NullPointerException at org.apache.lucene.document.DateTools.dateToString(DateTools.java:87) at com.atlassian.bonnie.LuceneUtils.dateToString(LuceneUtils.java:32) at com.atlassian.confluence.search.lucene.extractor.EntityDateExtractor.addFields(EntityDateExtractor.java:22) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:43) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.extractWithLuceneExtractors(ConfluenceDocumentBuilder.java:155) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:49) at com.atlassian.confluence.search.lucene.tasks.UpdateDocumentIndexTask.perform(UpdateDocumentIndexTask.java:43) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$IndexTaskWriter.apply(DefaultConfluenceIndexManager.java:485) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$IndexTaskWriter.apply(DefaultConfluenceIndexManager.java:469) at com.atlassian.confluence.search.lucene.queue.JournalIndexTaskQueue$4.apply(JournalIndexTaskQueue.java:195) at com.atlassian.confluence.search.lucene.queue.JournalIndexTaskQueue$4.apply(JournalIndexTaskQueue.java:186) at com.atlassian.confluence.impl.journal.DefaultJournalService$1.apply(DefaultJournalService.java:117) at com.atlassian.confluence.impl.journal.DefaultJournalService$1.apply(DefaultJournalService.java:113) at com.atlassian.confluence.impl.journal.DefaultJournalManager.processEntries(DefaultJournalManager.java:98) at com.atlassian.confluence.impl.journal.DefaultJournalService.processEntries(DefaultJournalService.java:52) at com.atlassian.confluence.search.lucene.queue.JournalIndexTaskQueue.flushQueue(JournalIndexTaskQueue.java:184) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction$1.perform(DefaultConfluenceIndexManager.java:449) at com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:499) at com.atlassian.confluence.search.lucene.tasks.LuceneConnectionBackedIndexTaskPerformer.perform(LuceneConnectionBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction.perform(DefaultConfluenceIndexManager.java:434) at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:532) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.processTasks(DefaultConfluenceIndexManager.java:199) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.flushQueue(DefaultConfluenceIndexManager.java:144) at sun.reflect.GeneratedMethodAccessor385.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy84.flushQueue(Unknown Source) at com.atlassian.confluence.search.lucene.IndexQueueFlusher.executeJob(IndexQueueFlusher.java:32) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:65) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at com.atlassian.scheduler.quartz1.Quartz1JobFactory$ClassLoaderProtectingWrappedJob.execute(Quartz1JobFactory.java:62) at org.quartz.core.JobRunShell.run(JobRunShell.java:223) at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:22) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) {noformat}

    Atlassian JIRA | 2 years ago | Julien Hoarau
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.apache.lucene.document.DateTools.dateToString()
    2. Lucene
      DateTools.dateToString
      1. org.apache.lucene.document.DateTools.dateToString(DateTools.java:87)
      1 frame
    3. com.atlassian.bonnie
      LuceneUtils.dateToString
      1. com.atlassian.bonnie.LuceneUtils.dateToString(LuceneUtils.java:32)
      1 frame
    4. com.atlassian.confluence
      DefaultConfluenceIndexManager$BatchUpdateAction$1.perform
      1. com.atlassian.confluence.search.lucene.extractor.EntityDateExtractor.addFields(EntityDateExtractor.java:22)
      2. com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:43)
      3. com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.extractWithLuceneExtractors(ConfluenceDocumentBuilder.java:155)
      4. com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102)
      5. com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:49)
      6. com.atlassian.confluence.search.lucene.tasks.UpdateDocumentIndexTask.perform(UpdateDocumentIndexTask.java:43)
      7. com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$IndexTaskWriter.apply(DefaultConfluenceIndexManager.java:485)
      8. com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$IndexTaskWriter.apply(DefaultConfluenceIndexManager.java:469)
      9. com.atlassian.confluence.search.lucene.queue.JournalIndexTaskQueue$4.apply(JournalIndexTaskQueue.java:195)
      10. com.atlassian.confluence.search.lucene.queue.JournalIndexTaskQueue$4.apply(JournalIndexTaskQueue.java:186)
      11. com.atlassian.confluence.impl.journal.DefaultJournalService$1.apply(DefaultJournalService.java:117)
      12. com.atlassian.confluence.impl.journal.DefaultJournalService$1.apply(DefaultJournalService.java:113)
      13. com.atlassian.confluence.impl.journal.DefaultJournalManager.processEntries(DefaultJournalManager.java:98)
      14. com.atlassian.confluence.impl.journal.DefaultJournalService.processEntries(DefaultJournalService.java:52)
      15. com.atlassian.confluence.search.lucene.queue.JournalIndexTaskQueue.flushQueue(JournalIndexTaskQueue.java:184)
      16. com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction$1.perform(DefaultConfluenceIndexManager.java:449)
      16 frames
    5. com.atlassian.bonnie
      LuceneConnection.withWriter
      1. com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:499)
      1 frame
    6. com.atlassian.confluence
      DefaultConfluenceIndexManager$BatchUpdateAction.perform
      1. com.atlassian.confluence.search.lucene.tasks.LuceneConnectionBackedIndexTaskPerformer.perform(LuceneConnectionBackedIndexTaskPerformer.java:21)
      2. com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction.perform(DefaultConfluenceIndexManager.java:434)
      2 frames
    7. com.atlassian.bonnie
      LuceneConnection.withBatchUpdate
      1. com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:532)
      1 frame
    8. com.atlassian.confluence
      DefaultConfluenceIndexManager.flushQueue
      1. com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.processTasks(DefaultConfluenceIndexManager.java:199)
      2. com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.flushQueue(DefaultConfluenceIndexManager.java:144)
      2 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor385.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    10. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    11. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    12. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    13. com.sun.proxy
      $Proxy84.flushQueue
      1. com.sun.proxy.$Proxy84.flushQueue(Unknown Source)
      1 frame
    14. com.atlassian.confluence
      AbstractClusterAwareQuartzJobBean.executeInternal
      1. com.atlassian.confluence.search.lucene.IndexQueueFlusher.executeJob(IndexQueueFlusher.java:32)
      2. com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:65)
      3. com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47)
      3 frames
    15. Spring Context Support
      QuartzJobBean.execute
      1. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
      1 frame
    16. com.atlassian.scheduler
      Quartz1JobFactory$ClassLoaderProtectingWrappedJob.execute
      1. com.atlassian.scheduler.quartz1.Quartz1JobFactory$ClassLoaderProtectingWrappedJob.execute(Quartz1JobFactory.java:62)
      1 frame
    17. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:223)
      1 frame
    18. com.atlassian.confluence
      ConfluenceQuartzThreadPool$1.run
      1. com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:22)
      1 frame
    19. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      1 frame