java.lang.NullPointerException

Atlassian JIRA | Mark Hrynczak [Atlassian] | 6 years ago
  1. 0

    While testing [CONF-20489] i found that while an inplace upgrade will correctly fail to start up after an UpgradeError, an upgrade using a site backup will succeed. Details: * Upgrading a 3.0.2 instance to the latest 3.5 trunk * Added the following lines to NetworkAndSiteNotificationTypesUpgradeTask: {noformat}final UpgradeError upgradeError = new UpgradeError("Error while upgrading notifications table - FORCED", new Exception()); errors.add(upgradeError);{noformat} * Performed an inplace upgrade - error was correctly thrown and Confluence will not start up: {noformat}Upgrade failed. Please consult the system logs for details. You will need to fix these problems and restart.{noformat} * Repeated the steps, but upgrading by restoring an XML backup. The restore is successful and a 3.5 instance using the upgarded data is available. Error given in the logs is: {noformat}2011-01-10 14:05:45,413 ERROR [Indexer: 1] [atlassian.bonnie.search.BaseDocument Builder] getDocument Error extracting search fields from comment: Erroneous orph aned comment v.1 (32790) using BackwardsCompatibleExtractor wrapping com.atlassi an.confluence.contributors.search.extractors.CommentContributionExtractor@9a9445 (com.atlassian.confluence.contributors:commentContributionExtractor): null -- url: /confluence/admin/restore.action | userName: admin | referer: http://lo calhost:8080/confluence/admin/backup.action | action: restore java.lang.NullPointerException at com.atlassian.confluence.contributors.search.extractors.CommentContri butionExtractor.addFields(CommentContributionExtractor.java:30) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$ BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:45) at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocum entBuilder.java:104) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getD ocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.per form(AddDocumentIndexTask.java:43) at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.ja va:73) at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perfor m(TempIndexWriterStrategy.java:43) at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTask Performer.perform(TempIndexBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.index Collection(DefaultObjectQueueWorker.java:78) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doI nTransactionWithoutResult(DefaultObjectQueueWorker.java:62) at org.springframework.transaction.support.TransactionCallbackWithoutRes ult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(T ransactionTemplate.java:127) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(D efaultObjectQueueWorker.java:51) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908) at java.lang.Thread.run(Thread.java:619) 2011-01-10 14:05:45,413 ERROR [Indexer: 1] [confluence.search.lucene.DefaultObje ctQueueWorker] indexCollection Error indexing document -- url: /confluence/admin/restore.action | userName: admin | referer: http://lo calhost:8080/confluence/admin/backup.action | action: restore java.lang.NullPointerException at com.atlassian.confluence.pages.Comment.getUrlPathForVersion(Comment.j ava:92) at com.atlassian.confluence.pages.Comment.getUrlPath(Comment.java:84) at com.atlassian.confluence.search.lucene.extractor.AddressableExtractor .addFields(AddressableExtractor.java:21) at com.atlassian.confluence.search.lucene.ChangeDocumentBuilder.getDocum ent(ChangeDocumentBuilder.java:97) at com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTa sk.perform(AddChangeDocumentIndexTask.java:71) at com.atlassian.confluence.search.lucene.tasks.RebuildChangeDocumentsIn dexTask.perform(RebuildChangeDocumentsIndexTask.java:79) at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.ja va:73) at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perfor m(TempIndexWriterStrategy.java:43) at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTask Performer.perform(TempIndexBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.index Collection(DefaultObjectQueueWorker.java:83) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doI nTransactionWithoutResult(DefaultObjectQueueWorker.java:62) at org.springframework.transaction.support.TransactionCallbackWithoutRes ult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(T ransactionTemplate.java:127) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(D efaultObjectQueueWorker.java:51) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908) at java.lang.Thread.run(Thread.java:619) {noformat}

    Atlassian JIRA | 6 years ago | Mark Hrynczak [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.confluence.pages.Comment.getUrlPathForVersion()
    2. com.atlassian.confluence
      RebuildChangeDocumentsIndexTask.perform
      1. com.atlassian.confluence.pages.Comment.getUrlPathForVersion(Comment.java:92)
      2. com.atlassian.confluence.pages.Comment.getUrlPath(Comment.java:84)
      3. com.atlassian.confluence.search.lucene.extractor.AddressableExtractor.addFields(AddressableExtractor.java:21)
      4. com.atlassian.confluence.search.lucene.ChangeDocumentBuilder.getDocument(ChangeDocumentBuilder.java:97)
      5. com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask.perform(AddChangeDocumentIndexTask.java:71)
      6. com.atlassian.confluence.search.lucene.tasks.RebuildChangeDocumentsIndexTask.perform(RebuildChangeDocumentsIndexTask.java:79)
      6 frames
    3. com.atlassian.bonnie
      TempIndexWriter.perform
      1. com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:73)
      1 frame
    4. com.atlassian.confluence
      DefaultObjectQueueWorker$1.doInTransactionWithoutResult
      1. com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perform(TempIndexWriterStrategy.java:43)
      2. com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTaskPerformer.perform(TempIndexBackedIndexTaskPerformer.java:21)
      3. com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.indexCollection(DefaultObjectQueueWorker.java:83)
      4. com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransactionWithoutResult(DefaultObjectQueueWorker.java:62)
      4 frames
    5. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
      2. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127)
      2 frames
    6. com.atlassian.confluence
      DefaultObjectQueueWorker.run
      1. com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:51)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:619)
      3 frames