Re-index fails due to ClassCastException for Timestamp types

Still need help?

The Atlassian Community is here for you.

Ask the community


A JIRA administrator is unable to run a re-index due to ClassCastException. The following appears in the atlassian-jira.log:

java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.sql.Timestamp cannot be cast to java.lang.String
at com.atlassian.jira.index.FutureResult.await(
at com.atlassian.jira.index.CompositeResultBuilder$CompositeResult.await(
at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(
at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(
Caused by: java.lang.ClassCastException: java.sql.Timestamp cannot be cast to java.lang.String
at com.atlassian.jira.issue.index.indexers.impl.ExactTextCustomFieldIndexer.addDocumentFields(
at com.atlassian.jira.issue.index.indexers.impl.ExactTextCustomFieldIndexer.addDocumentFieldsSearchable(
at com.atlassian.jira.issue.index.indexers.impl.AbstractCustomFieldIndexer.addIndex(
at com.atlassian.jira.issue.index.IssueDocument.getDocument(


The Search Template specified for custom fields using Date Time type is invalid. This could be caused by either a manual database manipulation or an improper upgrade.


  1. Go to Administration >> Custom Fields 
  2. Find the custom fields of Date Time type, edit them and select one of the available options at the Search Template drop-down.
  3. Repeat this process for each custom field using Date Time type.


Last modified on Mar 30, 2016

Was this helpful?

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