lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Rowe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-5874) Unsafe cast in RouteException
Date Mon, 24 Mar 2014 16:24:44 GMT

    [ https://issues.apache.org/jira/browse/SOLR-5874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13945304#comment-13945304
] 

Steve Rowe commented on SOLR-5874:
----------------------------------

[~markrmiller@gmail.com], any reason not to backport this to 4.7.1?

> Unsafe cast in RouteException
> -----------------------------
>
>                 Key: SOLR-5874
>                 URL: https://issues.apache.org/jira/browse/SOLR-5874
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 4.6.1
>            Reporter: David Arthur
>            Assignee: Mark Miller
>
> When a non-Exception is thrown somewhere in the CloudSolrServer, I get a "XXX cannot
be cast to java.lang.Exception"
> {code}
> java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
> 	at org.apache.solr.client.solrj.impl.CloudSolrServer$RouteException.<init>(CloudSolrServer.java:484)
> 	at org.apache.solr.client.solrj.impl.CloudSolrServer.directUpdate(CloudSolrServer.java:351)
> 	at org.apache.solr.client.solrj.impl.CloudSolrServer.request(CloudSolrServer.java:510)
> 	at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
> {code}
> Should probably cast to Throwable, or do a check and wrap non-Exceptions in an Exception
first



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message