Unable to Reindex JIRA due to java.lang.reflect.UndeclaredThrowableException

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

When trying to reindex, the following appears in the atlassian-jira.log:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.reflect.UndeclaredThrowableException at com.atlassian.jira.index.FutureResult.await(FutureResult.java:35) at com.atlassian.jira.index.CompositeResultBuilder$CompositeResult.await(CompositeResultBuilder.java:82) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:243) ... at $Proxy131.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.IndexLifecycleManager$Composite.reIndexAll(IndexLifecycleManager.java:112) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.doReindex(ReIndexAsyncIndexerCommand.java:29) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:54) ... Caused by: java.lang.reflect.UndeclaredThrowableException at $Proxy1158.getSprint(Unknown Source) at com.atlassian.greenhopper.customfield.sprint.SprintCFType.convertStringToType(SprintCFType.java:256) at com.atlassian.greenhopper.customfield.sprint.SprintCFType.convertStringToType(SprintCFType.java:36) at com.atlassian.jira.issue.customfields.impl.AbstractMultiCFType.convertStringsToTypes(AbstractMultiCFType.java:22

Cause

A previously compiled file has become corrupted.

Resolution

  1. Shut down JIRA

  2. Delete all the content within Tomcat's work directory, from <JIRA Installation directory>/work.

  3. Restart JIRA

  4. Try to perform a re-index again via Administration >> System >> Indexing. See Search Indexing.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.