On 21 May 2012 06:05, Mansour Al Akeel <mansour.alak...@gmail.com> wrote: > Sorry, > forgot to include the url and the error message: > private static String url = "http://localhost:8080/solr/update";
As the error message indicates, the normal request handler is expecting XML. For indexing JSON, please see: http://wiki.apache.org/solr/UpdateJSON Regards, Gora