Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-3269

RemoveDocumentIndexTask encounters NPE (entire document built just to access the doc. handle)

    XMLWordPrintable

Details

    Description

      Occurs when reindexing - more specifically when placing a RemoveDocumentIndexTask onto the queue.

      bucket.search.lucene.LuceneException: Calling property accessor method for attribute spaceKey threw an exception
      at bucket.search.lucene.extractor.XmlConfiguredExtractor.getContentOfAttribute(XmlConfiguredExtractor.java:115)
      at bucket.search.lucene.extractor.XmlConfiguredExtractor.addFields(XmlConfiguredExtractor.java:31)
      at bucket.search.lucene.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:26)
      at bucket.search.lucene.LuceneIndexer.getDocument(LuceneIndexer.java:237)
      at bucket.search.lucene.LuceneIndexer.indexAll(LuceneIndexer.java:98)
      at com.atlassian.confluence.search.lucene.ConfluenceIndexer.indexAll(ConfluenceIndexer.java:50)
      at bucket.search.lucene.AbstractBatchIndexer.indexEntities(AbstractBatchIndexer.java:57)
      at com.atlassian.confluence.search.lucene.DefaultConfluenceBatchIndexer.indexEntities(DefaultConfluenceBatchIndexer.java:40)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)
      at $Proxy21.indexEntities(Unknown Source)
      at com.atlassian.confluence.search.IndexingTask.run(IndexingTask.java:31)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1185)
      at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:772)
      at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
      at bucket.search.lucene.extractor.XmlConfiguredExtractor.getContentOfAttribute(XmlConfiguredExtractor.java:102)
      ... 20 more
      Caused by: java.lang.NullPointerException
      at com.atlassian.confluence.spaces.SpaceDescription.getSpaceKey(SpaceDescription.java:43)
      ... 28 more

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nick@atlassian.com Nick Faiz [OLD] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: