Reindexing fails after JIRA has been upgraded due to NoSuchMethodError in AccumulatingResultBuilder

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

After upgrading Jira, the reindexing process is failing.


A log entry similar to the following appears in the atlassian-jira.log:

2014-10-01 20:25:08,975 JiraTaskExectionThread-2 WARN XXXXXX 1224x383x1 15rfhkt ##.##.##.## /secure/admin/jira/IndexReIndex.jspa [atlassian.jira.index.AccumulatingResultBuilder] com.atlassian.cache.CacheException: com.atlassian.cache.CacheException: com.atlassian.cache.CacheException: com.atlassian.util.concurrent.LazyReference$InitializationException: com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.burningcode.jira.issue.customfields.impl.WatcherFieldType': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.burningcode.jira.issue.customfields.impl.WatcherFieldType]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.atlassian.jira.issue.customfields.impl.MultiUserCFType.<init>(Lcom/atlassian/jira/issue/customfields/persistence/CustomFieldValuePersister;Lcom/atlassian/jira/issue/customfields/manager/GenericConfigManager;Lcom/atlassian/jira/issue/customfields/converters/MultiUserConverter;Lcom/atlassian/jira/config/properties/ApplicationProperties;Lcom/atlassian/jira/security/JiraAuthenticationContext;Lcom/atlassian/jira/bc/user/search/UserPickerSearchService;Lcom/atlassian/jira/web/FieldVisibilityManager;Lcom/atlassian/jira/issue/fields/rest/json/beans/JiraBaseUrls;)V

Note that the specific log entry may differ depending on which app has hit the issue. In the above example, it's the Jira Watcher Field app.

Please note that the Jira Watcher field app has been deprecated and removed from Marketplace.

Cause

An app that provides a custom field used by at least one issue is not compatible with the current version of Jira, and is interfering with issue indexing.

Resolution

To fix this problem, you should upgrade or disable (if not possible to upgrade) all apps to a version that supports your version of Jira.

  1. In Jira, go to Jira administration (gear icon) > Manage Apps > Manage Apps.
  2. Make sure that the filter is set to User-installed  (should be the default option).
  3. Click on the Update button for all listed apps that are currently active (not greyed out).
  4. Once all apps have been upgraded, you can try to perform a full reindex once again.


In case you are unable to properly start Jira to upgrade your apps, and you are encountering this error on the Jira logs, we'd recommend that you manually remove all installed apps from your instance, so that they can be manually re-installed after Jira properly starts up.

To manually remove the installed apps you can go to '<Jira_home>/plugins/installed-plugins' (or '<Jira_shared_home>/plugins/installed-plugins' if on Data Center), and move all of the contents of the directory to an outside location for backup.

Last modified on Apr 5, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.