[
https://issues.apache.org/jira/browse/SOLR-3002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180238#comment-13180238
]
Torsten Krah commented on SOLR-3002:
------------------------------------
@Mark - Trace already there, its only a "one" liner - omited main function call:
Do:
String s = response.getExplainMap().get("myid")
and this should be a String object, doing this does result in a CCE.
java.lang.ClassCastException: org.apache.solr.common.util.SimpleOrderedMap
cannot be cast to java.lang.String
> ClassCastException, wrong signature definition of
> QueryResponse.getExplainMap() - String,String given, but is String, Map
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-3002
> URL: https://issues.apache.org/jira/browse/SOLR-3002
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Affects Versions: 3.5
> Environment: java 1.6, linux
> Reporter: Torsten Krah
>
> I am getting this exception trying to use the explainMap stuff from query
> response:
> java.lang.ClassCastException: org.apache.solr.common.util.SimpleOrderedMap
> cannot be cast to java.lang.String
> The signature tells its <String, String> but thats not true. Signature is
> wrong or the code which does produce a map value should produce a string,
> either one needs to be fixed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]