Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5874

Unsafe cast in RouteException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.6.1
    • 4.7.1, 4.8, 6.0
    • clients - java
    • None

    Description

      When a non-Exception is thrown somewhere in the CloudSolrServer, I get a "XXX cannot be cast to java.lang.Exception"

      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)
      

      Should probably cast to Throwable, or do a check and wrap non-Exceptions in an Exception first

      Attachments

        Activity

          People

            markrmiller@gmail.com Mark Miller
            mumrah David Arthur
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: