# Java.lang.ClassCastException Histogram of Kibana

**URL:** <https://discuss.elastic.co/t/java-lang-classcastexception-histogram-of-kibana/20729>\
**Category:** Elasticsearch\
**Created:** [November 13, 2014, 5:18pm UTC](https://discuss.elastic.co/t/java-lang-classcastexception-histogram-of-kibana/20729 "2014-11-13T17:18:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YB1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yb1/32/1104_2.png) [@YB1](https://discuss.elastic.co/u/YB1)\
**Post date:** [November 13, 2014, 5:18pm UTC](https://discuss.elastic.co/t/java-lang-classcastexception-histogram-of-kibana/20729/1 "2014-11-13T17:18:09Z")

</div>

Hello,

I have an error of the Histogram of Kibana 3.1.2 (elasticsearch 4.0)

the time field is integer ,

[2014-11-13 16:09:48,131][DEBUG][action.search.type] [Bible John]  
[logstash-ged-2014.11.13][1], node[cRfZFQ-TR7SxXbOvcQwCPQ], [R],  
s[STARTED]: Failed to execute  
[org.elasticsearch.action.search.SearchRequest@18949ad1]  
org.elasticsearch.search.SearchParseException:  
[logstash-ged-2014.11.13][1]: from[-1],size[-1]: Parse Failure [Failed to  
parse source  
[{"facets":{"0":{"date\_histogram":{"key\_field":"date","value\_field":"time","interval":"1y"},"global":true,"facet\_filter":{"fquery":{"query":{"filtered":{"query":{"query\_string":{"query":"\*"}},"filter":{"bool":{"must":[{"match\_all":{}}]}}}}}}}},"size":0}]]  
at  
org.elasticsearch.search.SearchService.parseSource(SearchService.java:681)  
at  
org.elasticsearch.search.SearchService.createContext(SearchService.java:537)  
at  
org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:509)  
at  
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:264)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:722)  
Caused by: java.lang.ClassCastException:  
org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData cannot be  
cast to org.elasticsearch.index.fielddata.IndexNumericFieldData  
at  
org.elasticsearch.search.facet.datehistogram.DateHistogramFacetParser.parse(DateHistogramFacetParser.java:173)  
at  
org.elasticsearch.search.facet.FacetParseElement.parse(FacetParseElement.java:93)  
at  
org.elasticsearch.search.SearchService.parseSource(SearchService.java:665)  
... 9 more

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/40716ecf-37a2-4c21-a744-06fc9aefeae6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/40716ecf-37a2-4c21-a744-06fc9aefeae6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:50am UTC](https://discuss.elastic.co/t/java-lang-classcastexception-histogram-of-kibana/20729/2 "2017-07-06T00:50:10Z")

</div>


