java.lang.NullPointerException: value cannot be null

Atlassian JIRA | Richard Atkins [Atlassian] | 6 years ago
  1. 0

    Many content types created by LDAP users are not being indexed properly by confluence. During a full index rebuild, there are several of the following errors in the logs: {noformat} 2011-02-14 12:53:03,512 ERROR [Indexer: 2] [atlassian.bonnie.search.BaseDocumentBuilder] getDocument Error extracting search fields from Attachment: sean.boran3.png v.1 (5570570) TGDBOSE1 using BackwardsCompatibleExtractor wrapping com.atlassian.confluence.search.lucene.extractor.ConfluenceAttachmentMetadataExtractor@4183d912 (confluence.extractors.core:attachmentMetadataExtractor): value cannot be null java.lang.NullPointerException: value cannot be null at org.apache.lucene.document.Field.<init>(Field.java:330) at org.apache.lucene.document.Field.<init>(Field.java:305) at org.apache.lucene.document.Field.<init>(Field.java:284) at com.atlassian.confluence.search.lucene.extractor.ConfluenceAttachmentMetadataExtractor.addFields(ConfluenceAttachmentMetadataExtractor.java:66) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:45) at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43) at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:73) at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perform(TempIndexWriterStrategy.java:43) at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTaskPerformer.perform(TempIndexBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.indexCollection(DefaultObjectQueueWorker.java:78) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransactionWithoutResult(DefaultObjectQueueWorker.java:62) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:51) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {noformat} {noformat} 2011-02-14 12:53:07,717 ERROR [Indexer: 3] [atlassian.bonnie.search.BaseDocumentBuilder] getDocument Error extracting search fields from status: Wow v.1 (23003144) using BackwardsCompatibleExtractor wrapping com.atlassian.confluence.search.lucene.extractor.UserStatusExtractor@13df208f (confluence.userstatus:userStatusExtractor): value cannot be null java.lang.NullPointerException: value cannot be null at org.apache.lucene.document.Field.<init>(Field.java:330) at org.apache.lucene.document.Field.<init>(Field.java:305) at org.apache.lucene.document.Field.<init>(Field.java:284) at com.atlassian.confluence.search.lucene.extractor.UserStatusExtractor.addFields(UserStatusExtractor.java:24) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:45) at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43) at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:73) at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perform(TempIndexWriterStrategy.java:43) at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTaskPerformer.perform(TempIndexBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.indexCollection(DefaultObjectQueueWorker.java:78) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransactionWithoutResult(DefaultObjectQueueWorker.java:62) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:51) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {noformat} This is happening for Attachments and UserStatus, and may happen for several other datatypes as well. It only happens where the LDAP user is missing a full name value in confluence (i.e. the PersonalInformation object referenced by the Attachment has a null fullName value, or the UserStatus has a null fullName value, etc). This exception should never be thrown, as null values need to be handled in each of the extractors. h2. Workaround 1) Disable the UserStatusExtractor in the User Status Plugin in Confluence Admin > Plugins. 2) Disable the EmbeddedSubCalendarsExtractor in Team Calendars (if installed) 3) Reindex. 4) Watch for any other stack traces. If there are any, contact support. Note: make a note of which Extractors you will have to disable in case you need to enable them again. The above changes should result in: * The object that any disabled Extractor pertains to will not be searchable * The rest of the content will be indexed correctly and will be searchable

    Atlassian JIRA | 6 years ago | Richard Atkins [Atlassian]
    java.lang.NullPointerException: value cannot be null
  2. 0

    Many content types created by LDAP users are not being indexed properly by confluence. During a full index rebuild, there are several of the following errors in the logs: {noformat} 2011-02-14 12:53:03,512 ERROR [Indexer: 2] [atlassian.bonnie.search.BaseDocumentBuilder] getDocument Error extracting search fields from Attachment: sean.boran3.png v.1 (5570570) TGDBOSE1 using BackwardsCompatibleExtractor wrapping com.atlassian.confluence.search.lucene.extractor.ConfluenceAttachmentMetadataExtractor@4183d912 (confluence.extractors.core:attachmentMetadataExtractor): value cannot be null java.lang.NullPointerException: value cannot be null at org.apache.lucene.document.Field.<init>(Field.java:330) at org.apache.lucene.document.Field.<init>(Field.java:305) at org.apache.lucene.document.Field.<init>(Field.java:284) at com.atlassian.confluence.search.lucene.extractor.ConfluenceAttachmentMetadataExtractor.addFields(ConfluenceAttachmentMetadataExtractor.java:66) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:45) at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43) at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:73) at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perform(TempIndexWriterStrategy.java:43) at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTaskPerformer.perform(TempIndexBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.indexCollection(DefaultObjectQueueWorker.java:78) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransactionWithoutResult(DefaultObjectQueueWorker.java:62) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:51) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {noformat} {noformat} 2011-02-14 12:53:07,717 ERROR [Indexer: 3] [atlassian.bonnie.search.BaseDocumentBuilder] getDocument Error extracting search fields from status: Wow v.1 (23003144) using BackwardsCompatibleExtractor wrapping com.atlassian.confluence.search.lucene.extractor.UserStatusExtractor@13df208f (confluence.userstatus:userStatusExtractor): value cannot be null java.lang.NullPointerException: value cannot be null at org.apache.lucene.document.Field.<init>(Field.java:330) at org.apache.lucene.document.Field.<init>(Field.java:305) at org.apache.lucene.document.Field.<init>(Field.java:284) at com.atlassian.confluence.search.lucene.extractor.UserStatusExtractor.addFields(UserStatusExtractor.java:24) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:45) at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43) at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:73) at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perform(TempIndexWriterStrategy.java:43) at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTaskPerformer.perform(TempIndexBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.indexCollection(DefaultObjectQueueWorker.java:78) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransactionWithoutResult(DefaultObjectQueueWorker.java:62) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:51) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {noformat} This is happening for Attachments and UserStatus, and may happen for several other datatypes as well. It only happens where the LDAP user is missing a full name value in confluence (i.e. the PersonalInformation object referenced by the Attachment has a null fullName value, or the UserStatus has a null fullName value, etc). This exception should never be thrown, as null values need to be handled in each of the extractors. h2. Workaround 1) Disable the UserStatusExtractor in the User Status Plugin in Confluence Admin > Plugins. 2) Disable the EmbeddedSubCalendarsExtractor in Team Calendars (if installed) 3) Reindex. 4) Watch for any other stack traces. If there are any, contact support. Note: make a note of which Extractors you will have to disable in case you need to enable them again. The above changes should result in: * The object that any disabled Extractor pertains to will not be searchable * The rest of the content will be indexed correctly and will be searchable

    Atlassian JIRA | 6 years ago | Richard Atkins [Atlassian]
    java.lang.NullPointerException: value cannot be null
  3. 0

    My site's content index is only partially built, resulting in missing pages in search results. I see http://jira.atlassian.com/browse/CONF-18452 has been filed to fix the failure to completely index when there's a problem with a particular page, but I also wanted to file bugs about the underlying issues. This issue is a problem indexing .JPG images: 2010-02-22 11:20:04,209 ERROR [Indexer: 7] [atlassian.bonnie.search.BaseDocumentBuilder] getDocument Error extracting search fields from Attachment: images.j pg v.1 (2031635) tcrosby using BackwardsCompatibleExtractor wrapping com.atlassian.confluence.search.lucene.extractor.ConfluenceAttachmentMetadataExtractor@1 0d4e7f (confluence.extractors.core:attachmentMetadataExtractor): value cannot be null -- url: /confluence/admin/reindex.action | userName: moise | referer: https://qix.demiurgestudios.com/confluence/admin/search-indexes.action | action: reind ex java.lang.NullPointerException: value cannot be null at org.apache.lucene.document.Field.<init>(Field.java:195) at org.apache.lucene.document.Field.<init>(Field.java:171) at com.atlassian.confluence.search.lucene.extractor.ConfluenceAttachmentMetadataExtractor.addFields(ConfluenceAttachmentMetadataExtractor.java:66) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:43) at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:41) at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:72) at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perform(TempIndexWriterStrategy.java:43) at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTaskPerformer.perform(TempIndexBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.indexCollection(DefaultObjectQueueWorker.java:73) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransactionWithoutResult(DefaultObjectQueueWorker.java:61) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:50) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)

    Atlassian JIRA | 7 years ago | Andrew Moise
    java.lang.NullPointerException: value cannot be null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    My site's content index is only partially built, resulting in missing pages in search results. I see http://jira.atlassian.com/browse/CONF-18452 has been filed to fix the failure to completely index when there's a problem with a particular page, but I also wanted to file bugs about the underlying issues. This issue is a problem indexing .JPG images: 2010-02-22 11:20:04,209 ERROR [Indexer: 7] [atlassian.bonnie.search.BaseDocumentBuilder] getDocument Error extracting search fields from Attachment: images.j pg v.1 (2031635) tcrosby using BackwardsCompatibleExtractor wrapping com.atlassian.confluence.search.lucene.extractor.ConfluenceAttachmentMetadataExtractor@1 0d4e7f (confluence.extractors.core:attachmentMetadataExtractor): value cannot be null -- url: /confluence/admin/reindex.action | userName: moise | referer: https://qix.demiurgestudios.com/confluence/admin/search-indexes.action | action: reind ex java.lang.NullPointerException: value cannot be null at org.apache.lucene.document.Field.<init>(Field.java:195) at org.apache.lucene.document.Field.<init>(Field.java:171) at com.atlassian.confluence.search.lucene.extractor.ConfluenceAttachmentMetadataExtractor.addFields(ConfluenceAttachmentMetadataExtractor.java:66) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:43) at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:41) at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:72) at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perform(TempIndexWriterStrategy.java:43) at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTaskPerformer.perform(TempIndexBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.indexCollection(DefaultObjectQueueWorker.java:73) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransactionWithoutResult(DefaultObjectQueueWorker.java:61) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:50) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)

    Atlassian JIRA | 7 years ago | Andrew Moise
    java.lang.NullPointerException: value cannot be null
  6. 0

    h5. Summary After upgrading to Confluence 3.5 or higher, where the user property migration (e.g. {{com.atlassian.confluence.user.migration.AtlassianUserDataMigrator#migrateUserProperties}} or {{com.atlassian.user.util.migration.OSUCrowdEntityMigrator#migratePropertySet}}) won't happen/called during the upgrade which is expected for the following scnearios: - [Upgrading to Confluence with JIRA User Management|http://confluence.atlassian.com/x/ZAEMDg] - [Upgrading to Confluence without dropping atlassian-user.xml|https://confluence.atlassian.com/x/TgEpDg] - [LDAP AtlassianUser to Delegated EmbeddedCrowd|https://confluence.atlassian.com/x/sIA4Dw] .....user settings ({{confluence.user.*}}) in {{OS_PROPERTYENTRY}} table will be lost such as: * Profile picture * Default setting of editor (wikimarkup/RTE) * User site home page * Login details * etc. h5. Workaround Go [here|https://jira.atlassian.com/browse/CONF-22298?focusedCommentId=237904&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-237904]. h5. Possible Cause The upgrade process does not migrate the respective entities in {{OS_PROPERTYENTRY}} table. They are no more taken into account due to different structure - previously the {{entity_name}} is {{OSUser_user}} (and {{entity_id}} set to JIRA's {{userbase.id}}) and now is {{CWD_username}} ({{entity_id}} set to 0). * Mismapped {{OS_PROPERTYENTRY}} entries of JIRA users {noformat} +---------------+-----------+---------------------------------------------+----------+-------------+------------+-------------------------------------+----------+----------+---------+---------------------+ | entity_name | entity_id | entity_key | key_type | boolean_val | double_val | string_val | text_val | long_val | int_val | date_val | +---------------+-----------+---------------------------------------------+----------+-------------+------------+-------------------------------------+----------+----------+---------+---------------------+ | OSUser_user | 10000 | confluence.user.last.login.date | 7 | | 0 | NULL | | 0 | 0 | 2011-04-12 03:45:37 | | OSUser_user | 10000 | confluence.user.previous.login.date | 7 | | 0 | NULL | | 0 | 0 | 2011-04-12 03:42:12 | | OSUser_user | 10000 | confluence.user.profile.picture | 5 | | 0 | /images/icons/profilepics/dude1.gif | | 0 | 0 | NULL | | OSUser_user | 10010 | confluence.user.last.login.date | 7 | | 0 | NULL | | 0 | 0 | 2011-04-12 03:42:22 | | OSUser_user | 10010 | confluence.user.previous.login.date | 7 | | 0 | NULL | | 0 | 0 | 2011-03-18 21:26:59 | | OSUser_user | 10010 | confluence.user.profile.picture | 5 | | 0 | stylesheets.jpg | | 0 | 0 | NULL | | OSUser_user | 10011 | confluence.user.last.login.date | 7 | | 0 | NULL | | 0 | 0 | 2011-03-18 21:27:54 | | OSUser_user | 10011 | confluence.user.previous.login.date | 7 | | 0 | NULL | | 0 | 0 | 2011-03-17 21:36:41 | | OSUser_user | 10011 | confluence.user.profile.picture | 5 | | 0 | jbb-95295-pp-ochenklogo.jpg | | 0 | 0 | NULL | +---------------+-----------+---------------------------------------------+----------+-------------+------------+-------------------------------------+----------+----------+---------+---------------------+ {noformat} * New structure: {noformat} +---------------+-----------+---------------------------------------------+----------+-------------+------------+-----------------------------------------+----------+----------+---------+---------------------+ | entity_name | entity_id | entity_key | key_type | boolean_val | double_val | string_val | text_val | long_val | int_val | date_val | +---------------+-----------+---------------------------------------------+----------+-------------+------------+-----------------------------------------+----------+----------+---------+---------------------+ | CWD_adminconf | 0 | confluence.user.keyboard.shortcuts.disabled | 1 | | 0 | NULL | | 0 | 0 | NULL | | CWD_adminconf | 0 | confluence.user.last.login.date | 7 | | 0 | NULL | | 0 | 0 | 2011-04-12 04:03:42 | | CWD_adminconf | 0 | confluence.user.previous.login.date | 7 | | 0 | NULL | | 0 | 0 | 2011-04-12 04:00:38 | | CWD_adminconf | 0 | confluence.user.profile.picture | 5 | | 0 | /images/icons/profilepics/Avatar-15.png | | 0 | 0 | NULL | | CWD_adminconf | 0 | confluence.user.site.homepage | 5 | | 0 | ds | | 0 | 0 | NULL | | CWD_adminconf | 0 | confluence.user.time.zone | 5 | | 0 | Asia/Kuala_Lumpur | | 0 | 0 | NULL | | CWD_adminconf | 0 | confluence.user.whats.new.dont.show.version | 5 | | 0 | 3.5 | | 0 | 0 | NULL | +---------------+-----------+---------------------------------------------+----------+-------------+------------+-----------------------------------------+----------+----------+---------+---------------------+ {noformat} h5. Finding * The lost profile pictures will still be available in the selection of profile pictures, but not applied (only for the uploaded profile pictures). * It seems that {{OS_PROPERTYENTRY.ENTITY_NAME}} is a combination of {{CWD_}} and {{CWD_USER.LOWER_USER_NAME}}. However, it seems that Confluence expects it differently, {{CWD_}} and {{CWD_USER.USER_NAME}}. So if the user has a different case username in {{CWD_USER.USER_NAME}}: || {{CWD_USER.USER_NAME}} || {{CWD_USER.LOWER_USER_NAME}} || {{OS_PROPERTYENTRY.ENTITY_NAME}} || | TestUser | testuser | CWD_testuser | The above seems the default, but it won't work. You'll need to workaround it by changing {{OS_PROPERTYENTRY.ENTITY_NAME}} to CWD_TestUser * Confluence will throw this error in the log after [upgrade|http://confluence.atlassian.com/x/ZAEMDg]: {noformat} 2011-04-12 03:49:03,442 ERROR [Indexer: 2] [atlassian.bonnie.search.BaseDocumentBuilder] getDocument Error extracting search fields from Attachment: jbb-95295-pp-ochenklogo.jpg v.1 (983042) jbb using BackwardsCompatibleExtractor wrapping com.atlassian.confluence.search.lucene.extractor.ConfluenceAttachmentMetadataExtractor@15a7085 (confluence.extractors.core:attachmentMetadataExtractor): value cannot be null java.lang.NullPointerException: value cannot be null at org.apache.lucene.document.Field.<init>(Field.java:330) at org.apache.lucene.document.Field.<init>(Field.java:305) at org.apache.lucene.document.Field.<init>(Field.java:284) at com.atlassian.confluence.search.lucene.extractor.ConfluenceAttachmentMetadataExtractor.addFields(ConfluenceAttachmentMetadataExtractor.java:66) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:45) at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43) at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:73) at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perform(TempIndexWriterStrategy.java:43) at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTaskPerformer.perform(TempIndexBackedIndexTaskPerformer.java:21) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.indexCollection(DefaultObjectQueueWorker.java:78) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransactionWithoutResult(DefaultObjectQueueWorker.java:62) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:51) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {noformat}

    Atlassian JIRA | 6 years ago | Husein Alatas [Atlassian]
    java.lang.NullPointerException: value cannot be null

    1 unregistered visitors
    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

      value cannot be null

      at org.apache.lucene.document.Field.<init>()
    2. Lucene
      Field.<init>
      1. org.apache.lucene.document.Field.<init>(Field.java:330)
      2. org.apache.lucene.document.Field.<init>(Field.java:305)
      3. org.apache.lucene.document.Field.<init>(Field.java:284)
      3 frames
    3. com.atlassian.confluence
      ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields
      1. com.atlassian.confluence.search.lucene.extractor.UserStatusExtractor.addFields(UserStatusExtractor.java:24)
      2. com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:45)
      2 frames
    4. com.atlassian.bonnie
      BaseDocumentBuilder.getDocument
      1. com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104)
      1 frame
    5. com.atlassian.confluence
      AddDocumentIndexTask.perform
      1. com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102)
      2. com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43)
      2 frames
    6. com.atlassian.bonnie
      TempIndexWriter.perform
      1. com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:73)
      1 frame
    7. 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:78)
      4. com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransactionWithoutResult(DefaultObjectQueueWorker.java:62)
      4 frames
    8. 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
    9. com.atlassian.confluence
      DefaultObjectQueueWorker.run
      1. com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:51)
      1 frame
    10. 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:662)
      3 frames