Christoph Strobl created SOLR-10384:
---------------------------------------
Summary: ClassCastException in SchemaResponse.setResponse
Key: SOLR-10384
URL: https://issues.apache.org/jira/browse/SOLR-10384
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Components: clients - java
Affects Versions: 6.5
Environment: Java version: 1.8.0_121
Default locale: de_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.5"
Reporter: Christoph Strobl
{{SchemaResponse}} does an unchecked cast to {{Map}} when reading _schema_ from
{{NamedList}} on calling {{setResponse(NamedList)}}. Still the the actual value
for _schema_ is a {{NamedList}} not implementing the {{Map}} interface.
The issue can be reproduced by simply calling:
{code:java}
new SchemaRequest().process(solrClient, collection).getSchemaRepresentation();
{code}
{noformat}
Caused by: java.lang.ClassCastException: org.apache.solr.common.util.NamedList
cannot be cast to java.util.Map
at
org.apache.solr.client.solrj.response.schema.SchemaResponse.setResponse(SchemaResponse.java:252)
at
org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:160)
at
org.springframework.data.solr.core.schema.DefaultSchemaOperations$3.doInSolr(DefaultSchemaOperations.java:103)
at
org.springframework.data.solr.core.schema.DefaultSchemaOperations$3.doInSolr(DefaultSchemaOperations.java:94)
at
org.springframework.data.solr.core.SolrTemplate.execute(SolrTemplate.java:221)
... 45 more
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]