Re: Error from server at http://localhost:8983/solr/search: Expected mime type application/octet-stream but got text/html

2020-08-27 Thread Dominique Bejean
Hi,

There were few discussions about similar issues these days. A JIRA issue
was created
https://issues.apache.org/jira/browse/SOLR-14768

Regards

Dominique


Le jeu. 27 août 2020 à 15:00, Divino I. Ribeiro Jr. <
divinoirj.ib...@gmail.com> a écrit :

> Hello everyone!
> When I run an query to Solr Server, it returns the following message:
>
> 2020-08-27 03:24:03,338 ERROR org.dspace.app.rest.utils.DiscoverQueryBuilder 
> @ divinoirj.ib...@gmail.com::Error in Discovery while setting up date facet 
> range:date facet\colon; 
> org.dspace.discovery.configuration.DiscoverySearchFilterFacet@1350bf85
> org.dspace.discovery.SearchServiceException: Error from server at 
> http://localhost:8983/solr/search: Expected mime type 
> application/octet-stream but got text/html.  
> 
> 
> Error 500 java.lang.NoClassDefFoundError: 
> org/eclipse/jetty/server/MultiParts
> 
> HTTP ERROR 500 java.lang.NoClassDefFoundError: 
> org/eclipse/jetty/server/MultiParts
> 
> URI:/solr/search/select
> STATUS:500
>
> Solr instalation cores:
>
> CWD: /opt/solr-8.6.0/server
> Instance: /var/solr/data/search
> Data: /var/solr/data/search/data
> Index: /var/solr/data/search/data/index
> Impl: org.apache.solr.core.NRTCachingDirectoryFactory
>
> Thanks!
>


Re: Expected mime type application/octet-stream but got text/html

2018-09-07 Thread Shawn Heisey

On 9/6/2018 12:29 PM, nalsrini wrote:

Here is the error message I am getting:

https://screencast.com/t/XwEjA22jX


Alexandre covered things quite well.  It looks like you're using an 
invalid URL.


Your original message shows this code:

SolrClient client = new HttpSolrClient("http://:/solr-master";);

That is not a valid URL.  It is missing the hostname, the port, and 
/solr-master is not the correct URL path.  The correct path would be 
/solr and MIGHT need to be /solr/indexname ... depending on exactly how 
the other code is written.  I prefer to use /solr and specify the 
collection name when making the requests.


Also, this is a Tomcat error page.  Is it Solr that's running in Tomcat, 
or are you running another application in Tomcat that is accessing Solr?


Running Solr in Tomcat became an unsupported configuration as of Solr 
5.0.  It is something you can do, but we don't support it.


https://wiki.apache.org/solr/WhyNoWar

Thanks,
Shawn



Re: Expected mime type application/octet-stream but got text/html

2018-09-06 Thread Alexandre Rafalovitch
Why is this http://host:port/solr-master/get? The normal URL is
http://host:port/solr//.  "get" as a handler
is fine,  can be empty for "collection1" in older
Solr. But what is "solr-master" here and where is the required "/solr"
part? What is your collection name?

So, to me, either your URL is wrong or you were trying to do a custom
URL and your troubleshooting should be focused around that first.

Regards,
   Alex.

On 6 September 2018 at 14:39, Walter Underwood  wrote:
> I thought there was a fix for this in SolrJ. This is a bug. It is getting 
> some error,
> like a 400 or 503, but instead of reporting the error, it makes a different 
> error about
> the content-type.
>
> That is just busted, but I can’t find a Jira for it.
>
> wunder
> Walter Underwood
> wun...@wunderwood.org
> http://observer.wunderwood.org/  (my blog)
>
>> On Sep 6, 2018, at 11:29 AM, nalsrini  wrote:
>>
>> Here is the error message I am getting:
>>
>> https://screencast.com/t/XwEjA22jX 
>>
>>
>>
>> --
>> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>


Re: Expected mime type application/octet-stream but got text/html

2018-09-06 Thread Walter Underwood
I thought there was a fix for this in SolrJ. This is a bug. It is getting some 
error,
like a 400 or 503, but instead of reporting the error, it makes a different 
error about
the content-type.

That is just busted, but I can’t find a Jira for it.

wunder
Walter Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/  (my blog)

> On Sep 6, 2018, at 11:29 AM, nalsrini  wrote:
> 
> Here is the error message I am getting:
> 
> https://screencast.com/t/XwEjA22jX   
> 
> 
> 
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html



Re: Expected mime type application/octet-stream but got text/html

2018-09-06 Thread nalsrini
Here is the error message I am getting:

https://screencast.com/t/XwEjA22jX   



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Expected mime type application/octet-stream but got text/html

2018-09-04 Thread Shawn Heisey

On 9/4/2018 3:22 PM, nalsrini wrote:

Hi,I use Solr 5.3 and I don't have any collection. When I execute the
following code, I got this error:Error from server at http://:/solr-master:
Expected mime type application/octet-stream but got text/html.SolrClient
client = new HttpSolrClient("http://:/solr-master";); String sorld =
client.getById("c311cda2-1edc-577f-b00c-36310499c9b0");I am wondering why
this error?thanksSrini


It means that the response was an error, which Solr formats as HTML.  
SolrJ is expecting a binary response, but that's not what it got.  The 
error *should* include the full response from the server.


If you can't get your program to display the entire error, which should 
indicate what the problem was, then look in solr.log (Solr's logfile) on 
the server to find the error message.  If you need help understanding 
it, include the entire message here.  Such error messages are typically 
many lines long.


Which specific version are you running?  Saying "Solr 5.3" is not 
specific enough.  Knowing that can be important in understanding Java 
stacktraces.


Thanks,
Shawn



Expected mime type application/octet-stream but got text/html

2018-09-04 Thread nalsrini
Hi,I use Solr 5.3 and I don't have any collection. When I execute the
following code, I got this error:Error from server at http://:/solr-master:
Expected mime type application/octet-stream but got text/html.SolrClient
client = new HttpSolrClient("http://:/solr-master";); String sorld =
client.getById("c311cda2-1edc-577f-b00c-36310499c9b0");I am wondering why
this error?thanksSrini



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Expected mime type application/octet-stream but got text/html

2018-03-05 Thread Jeff Dyke
I'm not sure where you're documents are coming from but i would find this
from a 403/404 in an S3 bucket if the permissions were not correct.

But ultimately Walters last sentence is the best next step.

On Mon, Mar 5, 2018 at 12:38 PM, Walter Underwood 
wrote:

> I presume this error is from SolrJ.
>
> SolrJ has requested responses in javabin format, so it uses that parser.
> When there is an error, often a 503 (timeout), the body of the HTTP
> response is in HTML. When that happens, this error results.
>
> This was fixed in SolrJ sometime in the 5.x releases.
>
> To figure out the error, look at the Solr logs for a non-200 response code.
>
> wunder
> Walter Underwood
> wun...@wunderwood.org
> http://observer.wunderwood.org/  (my blog)
>
> > On Mar 5, 2018, at 9:05 AM, mustafiz  wrote:
> >
> > Hi Dear,
> > I am facing exactly same issue for my dspace 6.1 but can't solving after
> 3
> > days working. as i am new on dspace. can you please help me detail how i
> can
> > get rid from it? details please.
> >
> > Thanks
> >
> >
> >
> > --
> > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>
>


Re: Expected mime type application/octet-stream but got text/html

2018-03-05 Thread Walter Underwood
I presume this error is from SolrJ.

SolrJ has requested responses in javabin format, so it uses that parser. When 
there is an error, often a 503 (timeout), the body of the HTTP response is in 
HTML. When that happens, this error results.

This was fixed in SolrJ sometime in the 5.x releases.

To figure out the error, look at the Solr logs for a non-200 response code.

wunder
Walter Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/  (my blog)

> On Mar 5, 2018, at 9:05 AM, mustafiz  wrote:
> 
> Hi Dear,
> I am facing exactly same issue for my dspace 6.1 but can't solving after 3
> days working. as i am new on dspace. can you please help me detail how i can
> get rid from it? details please.
> 
> Thanks
> 
> 
> 
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html



Re: Expected mime type application/octet-stream but got text/html

2018-03-05 Thread mustafiz
Hi Dear,
I am facing exactly same issue for my dspace 6.1 but can't solving after 3
days working. as i am new on dspace. can you please help me detail how i can
get rid from it? details please.

Thanks



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Expected mime type application/octet-stream but got text/html

2017-10-17 Thread Jason Gerlowski
At a glance, I'd guess that your SolrClient object isn't setup correctly,
probably because it has the wrong "baseURL" specified.  Solr has a
"/solr//update" URL, but the error above makes it look like
your application is reaching out to "/solr/update" which isn't a valid
endpoint.

If your SolrClient is setup with a baseUrl like "http://localhost:8983/solr";,
add a collection or core to the end of the url, such as:
"http:/localhost:8983/solr/some-valid-collection".

On Tue, Oct 17, 2017 at 2:07 AM, Shoaib  wrote:

> I have been following tutorial from below link to implement Spring data
> Solr
> http://www.baeldung.com/spring-data-solr
>
> Attached is my config file, model and repository for spring data solr.
>
> when i make any query or save my model i receive the below exception.
> my solr is working fine when i ping from browser "
> http://127.0.0.1:8983/solr/";
>
> MerchantModel model = new MerchantModel();
>
> model.setId("2");
>
> model.setLocation("31.5287,74.4121");
>
> model.setTitle("khawaja");
>
> merchantRepository.save(model);
>
> upon save i am getting the below exception
> #######################
> org.springframework.data.solr.UncategorizedSolrException: Error from
> server at http://127.0.0.1:8983/solr: Expected mime type
> application/octet-stream but got text/html. 
> 
> 
> Error 404 Not Found
> 
> HTTP ERROR 404
> Problem accessing /solr/update. Reason:
>  Not Found
> 
> 
> ; nested exception is 
> org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
> Error from server at http://127.0.0.1:8983/solr: Expected mime type
> application/octet-stream but got text/html. 
> 
> 
> Error 404 Not Found
> 
> HTTP ERROR 404
> Problem accessing /solr/update. Reason:
>  Not Found
> 
> 
> ###
>
>
>
>
>
>
>
> Regards,
>
>
>
> Khawaja MUHAMMAD Shoaib
>
> Software Engineering Department
>
> *Inov8 Limited* - *Enabling the mobile payments ecosystem since 2004*
>
> [image: Description: Description: Description: Description: Description:
> Description: cid:image002.png@01D0573A.AD54F450]
>
> GSM: +92 (322) 4001158
>
> Email:   *m.sho...@inov8.com.pk *
>
> URL: www.inov8.com.pk
>
>
>
>
>


Expected mime type application/octet-stream but got text/html

2017-10-17 Thread Shoaib
I have been following tutorial from below link to implement Spring data Solr

http://www.baeldung.com/spring-data-solr

Attached is my config file, model and repository for spring data solr.

when i make any query or save my model i receive the below exception.
my solr is working fine when i ping from browser "
http://127.0.0.1:8983/solr/";

MerchantModel model = new MerchantModel();
model.setId("2");
model.setLocation("31.5287,74.4121");
model.setTitle("khawaja");
merchantRepository.save(model);

upon save i am getting the below exception 
###
org.springframework.data.solr.UncategorizedSolrException: Error from server
at http://127.0.0.1:8983/solr: Expected mime type application/octet-stream
but got text/html. 


Error 404 Not Found

HTTP ERROR 404
Problem accessing /solr/update. Reason:
 Not Found


; nested exception is
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error
from server at http://127.0.0.1:8983/solr: Expected mime type
application/octet-stream but got text/html. 


Error 404 Not Found

HTTP ERROR 404
Problem accessing /solr/update. Reason:
 Not Found


###

 

 

 

Regards,

 



Khawaja MUHAMMAD Shoaib 


Software Engineering Department


Inov8 Limited - Enabling the mobile payments ecosystem since 2004







GSM: +92 (322) 4001158


Email:<mailto:m.sho...@inov8.com.pk> m.sho...@inov8.com.pk 


URL:  <http://www.inov8.com.pk/> www.inov8.com.pk

 

 



Re: Expected mime type application/octet-stream but got text/html

2015-12-18 Thread Andrej van der Zee
Hi,


> Fixed on erick's behalf because he had to run to a meeting...
>
> https://cwiki.apache.org/confluence/display/solr/Distributed+Requests
>
> ...i also wen't ahead to shift the examples to more emphasize using shard
> Ids since that's probably safer/cleaner for most people.
>

Thanks for the fast fix, that will help others newbies like me...

Cheers,
Andrej


Re: Expected mime type application/octet-stream but got text/html

2015-12-17 Thread Chris Hostetter
: 
: Indeed, it's a doc problem. A long time ago in a Solr far away, there
: was a bunch of effort to use the "default" collection (collection1).
: When that was changed, this documentation didn't get updated.
: 
: We'll update it in a few, thanks for reporting!

Fixed on erick's behalf because he had to run to a meeting...

https://cwiki.apache.org/confluence/display/solr/Distributed+Requests

...i also wen't ahead to shift the examples to more emphasize using shard 
Ids since that's probably safer/cleaner for most people.



-Hoss
http://www.lucidworks.com/


Re: Expected mime type application/octet-stream but got text/html

2015-12-17 Thread Erick Erickson
Andrej:

Indeed, it's a doc problem. A long time ago in a Solr far away, there
was a bunch of effort to use the "default" collection (collection1).
When that was changed, this documentation didn't get updated.

We'll update it in a few, thanks for reporting!

Erick

On Thu, Dec 17, 2015 at 1:39 AM, Andrej van der Zee
 wrote:
> It turns out that the documentation is not correct. If I specify the
> collection name after shards=, it does work as expected. So this works:
> curl "
> http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&rows=1000&shards=54.93.121.54:8986/solr/connects
> "
>
> This does not work:
> curl "
> http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&rows=1000&shards=54.93.121.54:8986/solr
> "
>
> So I guess the documentation needs an update?
>
> Cheers,
> Andrej
>
>
> On Thu, Dec 17, 2015 at 10:36 AM, Markus Jelsma 
> wrote:
>
>> Hi - looks like Solr did not start up correctly, got some errors and kept
>> Jetty running. You should find information in that node's logs.
>> M.
>>
>>
>> -Original message-----
>> > From:Andrej van der Zee 
>> > Sent: Thursday 17th December 2015 10:32
>> > To: solr-user@lucene.apache.org
>> > Subject: Expected mime type application/octet-stream but got text/html
>> >
>> > Hi,
>> >
>> > I am having troubles getting data from a particular shard, even though I
>> > follow the documentation:
>> >
>> > https://cwiki.apache.org/confluence/display/solr/Distributed+Requests
>> >
>> > This is OK:
>> >
>> >  curl "
>> >
>> http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true";
>> > {
>> >// returns correct result set
>> > }
>> >
>> > But this is NOT OK when I specify a particular shard:
>> >
>> > curl "
>> >
>> http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&shards=54.93.121.54:8986/solr
>> > "
>> >
>> > {
>> >   "responseHeader":{
>> > "status":404,
>> > "QTime":5,
>> > "params":{
>> >   "q":"*:*",
>> >   "shards":"54.93.121.54:8986/solr",
>> >   "indent":"true",
>> >   "rows":"1000",
>> >   "wt":"json"}},
>> >   "error":{
>> > "msg":"Error from server at http://54.93.121.54:8986/solr: Expected
>> > mime type application/octet-stream but got text/html.
>> \n\n> > http-equiv=\"Content-Type\" content=\"text/html;
>> > charset=UTF-8\"/>\nError 404 Not
>> > Found\n\nHTTP ERROR 404\nProblem
>> accessing
>> > /solr/select. Reason:\nNot FoundPowered
>> by
>> > Jetty://\n\n\n\n",
>> > "code":404}}
>> >
>> > Any idea?
>> >
>> > Thanks,
>> > Andrej
>> >
>>


Re: Expected mime type application/octet-stream but got text/html

2015-12-17 Thread Andrej van der Zee
It turns out that the documentation is not correct. If I specify the
collection name after shards=, it does work as expected. So this works:
curl "
http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&rows=1000&shards=54.93.121.54:8986/solr/connects
"

This does not work:
curl "
http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&rows=1000&shards=54.93.121.54:8986/solr
"

So I guess the documentation needs an update?

Cheers,
Andrej


On Thu, Dec 17, 2015 at 10:36 AM, Markus Jelsma 
wrote:

> Hi - looks like Solr did not start up correctly, got some errors and kept
> Jetty running. You should find information in that node's logs.
> M.
>
>
> -Original message-
> > From:Andrej van der Zee 
> > Sent: Thursday 17th December 2015 10:32
> > To: solr-user@lucene.apache.org
> > Subject: Expected mime type application/octet-stream but got text/html
> >
> > Hi,
> >
> > I am having troubles getting data from a particular shard, even though I
> > follow the documentation:
> >
> > https://cwiki.apache.org/confluence/display/solr/Distributed+Requests
> >
> > This is OK:
> >
> >  curl "
> >
> http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true";
> > {
> >// returns correct result set
> > }
> >
> > But this is NOT OK when I specify a particular shard:
> >
> > curl "
> >
> http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&shards=54.93.121.54:8986/solr
> > "
> >
> > {
> >   "responseHeader":{
> > "status":404,
> > "QTime":5,
> > "params":{
> >   "q":"*:*",
> >   "shards":"54.93.121.54:8986/solr",
> >   "indent":"true",
> >   "rows":"1000",
> >   "wt":"json"}},
> >   "error":{
> > "msg":"Error from server at http://54.93.121.54:8986/solr: Expected
> > mime type application/octet-stream but got text/html.
> \n\n > http-equiv=\"Content-Type\" content=\"text/html;
> > charset=UTF-8\"/>\nError 404 Not
> > Found\n\nHTTP ERROR 404\nProblem
> accessing
> > /solr/select. Reason:\nNot FoundPowered
> by
> > Jetty://\n\n\n\n",
> > "code":404}}
> >
> > Any idea?
> >
> > Thanks,
> > Andrej
> >
>


RE: Expected mime type application/octet-stream but got text/html

2015-12-17 Thread Markus Jelsma
Hi - looks like Solr did not start up correctly, got some errors and kept Jetty 
running. You should find information in that node's logs.
M.
 
 
-Original message-
> From:Andrej van der Zee 
> Sent: Thursday 17th December 2015 10:32
> To: solr-user@lucene.apache.org
> Subject: Expected mime type application/octet-stream but got text/html
> 
> Hi,
> 
> I am having troubles getting data from a particular shard, even though I
> follow the documentation:
> 
> https://cwiki.apache.org/confluence/display/solr/Distributed+Requests
> 
> This is OK:
> 
>  curl "
> http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true";
> {
>// returns correct result set
> }
> 
> But this is NOT OK when I specify a particular shard:
> 
> curl "
> http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&shards=54.93.121.54:8986/solr
> "
> 
> {
>   "responseHeader":{
> "status":404,
> "QTime":5,
> "params":{
>   "q":"*:*",
>       "shards":"54.93.121.54:8986/solr",
>   "indent":"true",
>   "rows":"1000",
>   "wt":"json"}},
>   "error":{
> "msg":"Error from server at http://54.93.121.54:8986/solr: Expected
> mime type application/octet-stream but got text/html. \n\n http-equiv=\"Content-Type\" content=\"text/html;
> charset=UTF-8\"/>\nError 404 Not
> Found\n\nHTTP ERROR 404\nProblem accessing
> /solr/select. Reason:\nNot FoundPowered by
> Jetty://\n\n\n\n",
> "code":404}}
> 
> Any idea?
> 
> Thanks,
> Andrej
> 


Expected mime type application/octet-stream but got text/html

2015-12-17 Thread Andrej van der Zee
Hi,

I am having troubles getting data from a particular shard, even though I
follow the documentation:

https://cwiki.apache.org/confluence/display/solr/Distributed+Requests

This is OK:

 curl "
http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true";
{
   // returns correct result set
}

But this is NOT OK when I specify a particular shard:

curl "
http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&shards=54.93.121.54:8986/solr
"

{
  "responseHeader":{
"status":404,
"QTime":5,
"params":{
  "q":"*:*",
  "shards":"54.93.121.54:8986/solr",
  "indent":"true",
  "rows":"1000",
  "wt":"json"}},
  "error":{
"msg":"Error from server at http://54.93.121.54:8986/solr: Expected
mime type application/octet-stream but got text/html. \n\n\nError 404 Not
Found\n\nHTTP ERROR 404\nProblem accessing
/solr/select. Reason:\nNot FoundPowered by
Jetty://\n\n\n\n",
"code":404}}

Any idea?

Thanks,
Andrej


Re: Expected mime type application/octet-stream but got text/html

2015-04-28 Thread Vijaya Narayana Reddy Bhoomi Reddy
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 
wrote:

> Hi,
>
> just a wild guess: you are calling /solr/update instead of
> /solr/collection/update
>
> Regards
>
> Stephan
>
>
>
> Von:Vijaya Narayana Reddy Bhoomi Reddy
> 
> 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. 
> 
> 
> Error 404 Not Found
> 
> 
> HTTP ERROR: 404
> Problem accessing /update. Reason:
> Not Found
> Powered by Jetty://
>
> 
> 
>
> 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.


RE: Expected mime type application/octet-stream but got text/html

2015-04-28 Thread Stephan Schubert
Hi,

just a wild guess: you are calling /solr/update instead of 
/solr/collection/update

Regards

Stephan



Von:Vijaya Narayana Reddy Bhoomi Reddy 

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. 


Error 404 Not Found


HTTP ERROR: 404
Problem accessing /update. Reason:
Not Found
Powered by Jetty://




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) 


Re: Expected mime type application/octet-stream but got text/html

2015-04-28 Thread Vijaya Narayana Reddy Bhoomi Reddy
Just to add, my solrconfig.xml is the standard one, with no modifications.
It was taken directly from the collection1 core from 4.10.2 installation.
However, in schema.xml, I have added my own fields. Hope it has got nothing
to do with schema.xml

Thanks & Regards
Vijay

  wrote:

> 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. 
> 
> 
> Error 404 Not Found
> 
> 
> HTTP ERROR: 404
> Problem accessing /update. Reason:
> Not Found
> Powered by Jetty://
>
> 
> 
>
> 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.


Expected mime type application/octet-stream but got text/html

2015-04-28 Thread Vijaya Narayana Reddy Bhoomi Reddy
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. 


Error 404 Not Found


HTTP ERROR: 404
Problem accessing /update. Reason:
Not Found
Powered by Jetty://




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.