[ https://issues.apache.org/jira/browse/SOLR-6547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176048#comment-14176048 ]
Anurag Sharma commented on SOLR-6547: ------------------------------------- Based on the above comment we are good to go with Hoss Mann comment to extract the intValue from long: {code} return ((Number) header.get("QTime")).intValue() {code} A couple of failing unit tests can help in fixing and creating the patch. > CloudSolrServer query getqtime Exception > ---------------------------------------- > > Key: SOLR-6547 > URL: https://issues.apache.org/jira/browse/SOLR-6547 > Project: Solr > Issue Type: Bug > Components: SolrJ > Affects Versions: 4.10 > Reporter: kevin > > We are using CloudSolrServer to query ,but solrj throw Exception ; > java.lang.ClassCastException: java.lang.Long cannot be cast to > java.lang.Integer at > org.apache.solr.client.solrj.response.SolrResponseBase.getQTime(SolrResponseBase.java:76) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org