java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Richard Atkins [Atlassian],
  • 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
    via by Richard Atkins [Atlassian],
  • 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)
    via by Andrew Moise,
  • 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)
    via by Andrew Moise,
  • 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}
    via by Husein Alatas [Atlassian],
  • Null pointer Exception
    via GitHub by szlwzl
    ,
  • when trying to download/update the index for java.net repository (or netbeans.org repository at bits.netbeans.org/maven/.index) I get the following NPE Old format of data not supported? java.lang.NullPointerException: value cannot be null at org.apache.lucene.document.Field.<init>(Field.java:229) at org.apache.lucene.document.Field.<init>(Field.java:205) at org.sonatype.nexus.index.creator.MinimalArtifactInfoIndexCreator.updateDocument(MinimalArtifactInfoIndexCreator.java:241) at org.sonatype.nexus.index.context.IndexUtils.updateDocument(IndexUtils.java:71) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.copyUpdatedDocuments(DefaultIndexUpdater.java:330) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.unpackIndexArchive(DefaultIndexUpdater.java:258) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:194) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:108) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:136) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:123) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:363) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.loadIndexingContext(NexusRepositoryIndexerImpl.java:287) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$300(NexusRepositoryIndexerImpl.java:131) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$1.run(NexusRepositoryIndexerImpl.java:395) at org.openide.util.Mutex.writeAccess(Mutex.java:433) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:386) at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:59) at org.netbeans.modules.maven.repository.RepositoryNode$RefreshIndexAction$1.run(RepositoryNode.java:194) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
    via by Milos Kleint,
  • when trying to download/update the index for java.net repository (or netbeans.org repository at bits.netbeans.org/maven/.index) I get the following NPE Old format of data not supported? java.lang.NullPointerException: value cannot be null at org.apache.lucene.document.Field.<init>(Field.java:229) at org.apache.lucene.document.Field.<init>(Field.java:205) at org.sonatype.nexus.index.creator.MinimalArtifactInfoIndexCreator.updateDocument(MinimalArtifactInfoIndexCreator.java:241) at org.sonatype.nexus.index.context.IndexUtils.updateDocument(IndexUtils.java:71) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.copyUpdatedDocuments(DefaultIndexUpdater.java:330) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.unpackIndexArchive(DefaultIndexUpdater.java:258) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:194) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:108) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:136) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:123) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:363) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.loadIndexingContext(NexusRepositoryIndexerImpl.java:287) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$300(NexusRepositoryIndexerImpl.java:131) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$1.run(NexusRepositoryIndexerImpl.java:395) at org.openide.util.Mutex.writeAccess(Mutex.java:433) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:386) at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:59) at org.netbeans.modules.maven.repository.RepositoryNode$RefreshIndexAction$1.run(RepositoryNode.java:194) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
    via by Milos Kleint,
    • 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,