Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9197 Audit all solrconfig components and ensure that they work with the Config APIs
  3. SOLR-9359

Listener added using Config API results in ClassCastException in the logs

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0.1
    • 9.1, main (10.0)
    • config-api
    • None
    • SolrClound on Windows with ZooKeeper 3.4.8

    Description

      Adding a listener using the Config API results in an exception in the logs even if the call to the API was successful.

      Command used to add the listener:

      curl -k -u admin:admin https://solrserver:8443/solr/customer/config -H 'Content-type:application/json' -d '{ "add-listener": {"event":"firstSearcher","class":"solr.QuerySenderListener","name":"f7fb2d87bea44464af2401cf33f42b69","queries":[

      {"q":"static firstSearcher warming in solrconfig.xml"}

      ]} }'

      Result:
      {
      "responseHeader":

      { "status":0, "QTime":117}

      ,
      "WARNING":"This response format is experimental. It is likely to change in the future."}

      In the Admin UI Logging section I can see the following error:
      SolrCore null:java.lang.ClassCastException

      The log files does not provide additional information.

      Attachments

        Activity

          People

            epugh Eric Pugh
            alexandre.drouin Alex D
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5h 50m
                5h 50m