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

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

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

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.

Last modified on Mar 30, 2016

Was this helpful?

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