java.lang.NullPointerException

Atlassian JIRA | Andriy Yakovlev [Atlassian] | 6 months ago
  1. 0

    h3. Summary JIRA Background Reindexing fail in *fixupConcurrentlyIndexedIssues* stage. This is done after all issue were reindexed and that stage JIRA reindexing issues modified during reindexing. Vast majority of the issue are reindexed. This doesn't lead to Lucene index corruption. h3. Steps to Reproduce # Create large JIRA instance # Run background reindex # Modify issue (while reindex running) # Delete same issue (while reindex running) h3. Expected Results Background Reindexing will finish successfully. h3. Actual Results Background Reindexing fail. The below exception is thrown in the log file. Timeline of the events: {code:borderStyle=solid} 2016-05-24 08:40:44,822 JiraTaskExectionThread-98 INFO admin 1260x7063070x2 fnv7xq 127.0.0.1 /secure/admin/IndexReIndex.jspa [jira.issue.index.DefaultIndexManager] 2271483 issues reindexed in the background, in 301185598 millis. 2016-05-24 08:40:57,616 JiraTaskExectionThread-98 ERROR admin 1260x7063070x2 fnv7xq 127.0.0.1 /secure/admin/IndexReIndex.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All In Background FAILED. Indexer: DefaultIndexManager: paths: [/app_home/oracle/atlassian/application-data/jira/caches/indexes/comments, /app_home/oracle/atlassian/application-data/jira/caches/indexes/issues, /app_home/oracle/atlassian/application-data/jira/caches/indexes/changes, /app_home/oracle/atlassian/application-data/jira/caches/indexes/worklogs] 2016-05-24 08:40:57,617 JiraTaskExectionThread-98 INFO admin 1260x7063070x2 fnv7xq 127.0.0.1 /secure/admin/IndexReIndex.jspa [action.admin.index.IndexAdminImpl] Re-indexing finished 2016-05-24 08:40:57,617 JiraTaskExectionThread-98 ERROR admin 1260x7063070x2 fnv7xq 127.0.0.1 /secure/admin/IndexReIndex.jspa [atlassian.jira.task.TaskManagerImpl] Task 'JIRA Indexing' failed. {code} NullPointerException at {{fixupConcurrentlyIndexedIssues}} method: {code:borderStyle=solid} 2016-05-24 08:40:57,616 JiraTaskExectionThread-98 ERROR admin 1260x7063070x2 fnv7xq 127.0.0.1 /secure/admin/IndexReIndex.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All In Background FAILED. Indexer: DefaultIndexManager: paths: [/app_home/oracle/atlassian/application-data/jira/caches/indexes/comments, /app_home/oracle/atlassian/application-data/jira/caches/indexes/issues, /app_home/oracle/atlassian/application-data/jira/caches/indexes/changes, /app_home/oracle/atlassian/application-data/jira/caches/indexes/worklogs] java.lang.NullPointerException at com.atlassian.jira.issue.index.DefaultIssueIndexer$3.consume(DefaultIssueIndexer.java:337) at com.atlassian.jira.issue.index.DefaultIssueIndexer$3.consume(DefaultIssueIndexer.java:321) at com.atlassian.jira.util.collect.CollectionUtil.foreach(CollectionUtil.java:44) at com.atlassian.jira.issue.util.IssueIdsIssueIterable.foreach(IssueIdsIssueIterable.java:27) at com.atlassian.jira.issue.index.DefaultIssueIndexer.perform(DefaultIssueIndexer.java:320) at com.atlassian.jira.issue.index.DefaultIssueIndexer.reindexIssues(DefaultIssueIndexer.java:174) at com.atlassian.jira.index.IssueIndexHelper.fixupConcurrentlyIndexedIssues(IssueIndexHelper.java:117) at com.atlassian.jira.issue.index.DefaultIndexManager.doBackgroundReindex(DefaultIndexManager.java:1095) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:322) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssuesInBackground(DefaultIndexManager.java:414) {code} h3. Notes None h3.Workaround Run background reindex again, but background indexing might hit again same problem with another updated/deleted issue.

    Atlassian JIRA | 6 months ago | Andriy Yakovlev [Atlassian]
    java.lang.NullPointerException
  2. 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
  3. 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 com.atlassian.jira.issue.index.DefaultIssueIndexer$3.consume()
    2. com.atlassian.jira
      DefaultIndexManager.reIndexIssuesInBackground
      1. com.atlassian.jira.issue.index.DefaultIssueIndexer$3.consume(DefaultIssueIndexer.java:337)
      2. com.atlassian.jira.issue.index.DefaultIssueIndexer$3.consume(DefaultIssueIndexer.java:321)
      3. com.atlassian.jira.util.collect.CollectionUtil.foreach(CollectionUtil.java:44)
      4. com.atlassian.jira.issue.util.IssueIdsIssueIterable.foreach(IssueIdsIssueIterable.java:27)
      5. com.atlassian.jira.issue.index.DefaultIssueIndexer.perform(DefaultIssueIndexer.java:320)
      6. com.atlassian.jira.issue.index.DefaultIssueIndexer.reindexIssues(DefaultIssueIndexer.java:174)
      7. com.atlassian.jira.index.IssueIndexHelper.fixupConcurrentlyIndexedIssues(IssueIndexHelper.java:117)
      8. com.atlassian.jira.issue.index.DefaultIndexManager.doBackgroundReindex(DefaultIndexManager.java:1095)
      9. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:322)
      10. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssuesInBackground(DefaultIndexManager.java:414)
      10 frames