Simple piece of code. Had been working earlier (though against a 6.4.2 
instance).

      ConcurrentUpdateSolrClient solr = new 
ConcurrentUpdateSolrClient("http://myhost:8983/solr",10,2);
       try {
            solr.deleteByQuery("*:*");
            solr.commit();
       } catch (SolrServerException | IOException ex) {
            // logger handler stuff omitted.
       }

Comes back with:
15:53:36,693 DEBUG wire:72 -  << "<head>[\n]"
15:53:36,694 DEBUG wire:72 -  << "<meta http-equiv="Content-Type" 
content="text/html;charset=utf-8"/>[\n]"
15:53:36,694 DEBUG wire:72 -  << "<title>Error 404 Not Found</title>[\n]"
15:53:36,695 DEBUG wire:72 -  << "</head>[\n]"
15:53:36,695 DEBUG wire:72 -  << "<body><h2>HTTP ERROR 404</h2>[\n]"
15:53:36,696 DEBUG wire:72 -  << "<p>Problem accessing /solr/update. 
Reason:[\n]"
15:53:36,696 DEBUG wire:72 -  << "<pre>    Not Found</pre></p>[\n]"
15:53:36,696 DEBUG wire:72 -  << "</body>[\n]"
15:53:36,697 DEBUG wire:72 -  << "</html>[\n]"

If I access http://myhost:8983/solr/update then I get that html too, but 
http://myhost:8983/solr comes up with admin page as normal so Solr appears to 
be running okay.
Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.

Reply via email to