Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.6.1
    • Fix Version/s: 4.7.1, 4.8, 6.0
    • Component/s: clients - java
    • Labels:
      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

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1580550 from Mark Miller in branch 'dev/trunk'
        [ https://svn.apache.org/r1580550 ]

        SOLR-5874: Unsafe cast in CloudSolrServer's RouteException. Change RouteException to handle Throwable rather than Exception.
        SOLR-5899: CloudSolrServer's RouteResponse and RouteException should be publicly accessible.

        Show
        ASF subversion and git services added a comment - Commit 1580550 from Mark Miller in branch 'dev/trunk' [ https://svn.apache.org/r1580550 ] SOLR-5874 : Unsafe cast in CloudSolrServer's RouteException. Change RouteException to handle Throwable rather than Exception. SOLR-5899 : CloudSolrServer's RouteResponse and RouteException should be publicly accessible.
        Hide
        ASF subversion and git services added a comment -

        Commit 1580553 from Mark Miller in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1580553 ]

        SOLR-5874: Unsafe cast in CloudSolrServer's RouteException. Change RouteException to handle Throwable rather than Exception.
        SOLR-5899: CloudSolrServer's RouteResponse and RouteException should be publicly accessible.

        Show
        ASF subversion and git services added a comment - Commit 1580553 from Mark Miller in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1580553 ] SOLR-5874 : Unsafe cast in CloudSolrServer's RouteException. Change RouteException to handle Throwable rather than Exception. SOLR-5899 : CloudSolrServer's RouteResponse and RouteException should be publicly accessible.
        Hide
        Mark Miller added a comment -

        Thanks David!

        Show
        Mark Miller added a comment - Thanks David!
        Hide
        Steve Rowe added a comment -

        Mark Miller, any reason not to backport this to 4.7.1?

        Show
        Steve Rowe added a comment - Mark Miller , any reason not to backport this to 4.7.1?
        Hide
        ASF subversion and git services added a comment -

        Commit 1581219 from Steve Rowe in branch 'dev/branches/lucene_solr_4_7'
        [ https://svn.apache.org/r1581219 ]

        SOLR-5874: Unsafe cast in CloudSolrServer's RouteException. Change RouteException to handle Throwable rather than Exception.
        SOLR-5899: CloudSolrServer's RouteResponse and RouteException should be publicly accessible.
        (merged branch_4x r1580553)

        Show
        ASF subversion and git services added a comment - Commit 1581219 from Steve Rowe in branch 'dev/branches/lucene_solr_4_7' [ https://svn.apache.org/r1581219 ] SOLR-5874 : Unsafe cast in CloudSolrServer's RouteException. Change RouteException to handle Throwable rather than Exception. SOLR-5899 : CloudSolrServer's RouteResponse and RouteException should be publicly accessible. (merged branch_4x r1580553)
        Hide
        ASF subversion and git services added a comment -

        Commit 1581220 from Steve Rowe in branch 'dev/trunk'
        [ https://svn.apache.org/r1581220 ]

        SOLR-5874,SOLR-5899: move CHANGES.txt entries to 4.7.1 section

        Show
        ASF subversion and git services added a comment - Commit 1581220 from Steve Rowe in branch 'dev/trunk' [ https://svn.apache.org/r1581220 ] SOLR-5874 , SOLR-5899 : move CHANGES.txt entries to 4.7.1 section
        Hide
        ASF subversion and git services added a comment -

        Commit 1581221 from Steve Rowe in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1581221 ]

        SOLR-5874,SOLR-5899: move CHANGES.txt entries to 4.7.1 section (merged trunk r1581220)

        Show
        ASF subversion and git services added a comment - Commit 1581221 from Steve Rowe in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1581221 ] SOLR-5874 , SOLR-5899 : move CHANGES.txt entries to 4.7.1 section (merged trunk r1581220)
        Hide
        Steve Rowe added a comment -

        Bulk close 4.7.1 issues

        Show
        Steve Rowe added a comment - Bulk close 4.7.1 issues

          People

          • Assignee:
            Mark Miller
            Reporter:
            David Arthur
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development