Thanks Stephen, that was the issue. In the URL, I missed the solr part. Thanks for your help. Functionality is working fine now.
Thanks & Regards Vijay On 28 April 2015 at 13:05, Stephan Schubert <stephan.schub...@sick.de> wrote: > Hi, > > just a wild guess: you are calling /solr/update instead of > /solr/collection/update > > Regards > > Stephan > > > > Von: Vijaya Narayana Reddy Bhoomi Reddy > <vijaya.bhoomire...@whishworks.com> > An: solr-user@lucene.apache.org, > Datum: 28.04.2015 13:57 > Betreff: Expected mime type application/octet-stream but got > text/html > > > > Hi, > > I am suddenly seeing this error message when I try to index documents > using > SolrJ client. The same piece of code was working fine last time when I > indexed the documents. But now, this is the error message being thrown on > the SolrJ client. Request your urgent help as this is very high priority > for me. > > > Exception in thread "main" > org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: > Expected mime type application/octet-stream but got text/html. <html> > <head> > <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> > <title>Error 404 Not Found</title> > </head> > <body> > <h2>HTTP ERROR: 404</h2> > <p>Problem accessing /update. Reason: > <pre> Not Found</pre></p> > <hr /><i><small>Powered by Jetty://</small></i> > > </body> > </html> > > at > > org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:512) > at > > org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) > at > > org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206) > at > > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124) > at > > com.lgcgroup.solr.indexer.SolrTikaIndexer.indexBinaryDocuments(SolrTikaIndexer.java:154) > at com.lgcgroup.solr.indexer.IndexingDriver.main(IndexingDriver.java:54) > > > Thanks & Regards > Vijay > > -- > The contents of this e-mail are confidential and for the exclusive use of > the intended recipient. If you receive this e-mail in error please delete > it from your system immediately and notify us either by e-mail or > telephone. You should not copy, forward or otherwise disclose the content > of the e-mail. The views expressed in this communication may not > necessarily be the view held by WHISHWORKS. > > > > SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB > 280355 > Vorstand: Dr. Robert Bauer (Vorsitzender) - Reinhard Bösl - Dr. Mats > Gökstorp - Dr. Martin Krämer - Markus Vatter > Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger > (Vorsitzender) > -- The contents of this e-mail are confidential and for the exclusive use of the intended recipient. If you receive this e-mail in error please delete it from your system immediately and notify us either by e-mail or telephone. You should not copy, forward or otherwise disclose the content of the e-mail. The views expressed in this communication may not necessarily be the view held by WHISHWORKS.