rj.impl.HttpSolrClient$
> >> RemoteSolrException:
> >> > > Error
> >> > > > from server at http://localhost:8983/solr/testing: Expected mime
> >> type
> >> > > > application/octet-stream but got text/
gt; > > >
>> > > > HTTP ERROR 401
>> > > > Problem accessing /solr/testing/update. Reason:
>> > > > require authentication
>> > > >
>> > > >
>> > > >
>> > > > at
>> > > >
> org.apache.solr.client.solrj.impl.HttpSolrClient.
> > > executeMethod(HttpSolrClient.java:578)
> > > > at
> > > > org.apache.solr.client.solrj.impl.HttpSolrClient.request(
> > > HttpSolrClient.java:279)
> > > > at
> > > > org
t; > at
> > > org.apache.solr.client.solrj.impl.HttpSolrClient.request(
> > HttpSolrClient.java:268)
> > > at org.apache.solr.client.solrj.SolrRequest.process(
> > SolrRequest.java:149)
> > > at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.j
lrClient.commit(SolrClient.java:484)
> > at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:463)
> > at testing.indexing(testing.java:3063)
> > at testing.main(testing.java:329)
> >
> > Regards,
> > Edwin
> >
> >
> > On 12
8, Noble Paul <noble.p...@gmail.com> wrote:
>
>> can u paste the stacktrace here
>>
>> On Tue, Apr 11, 2017 at 1:19 PM, Zheng Lin Edwin Yeo
>> <edwinye...@gmail.com> wrote:
>> > I found from StackOverflow that we should declare it this way:
>&
il.com> wrote:
> > I found from StackOverflow that we should declare it this way:
> > http://stackoverflow.com/questions/43335419/using-
> basicauth-with-solrj-code
> >
> >
> > SolrRequest req = new QueryRequest(new SolrQuery("*:*"));//creat
can u paste the stacktrace here
On Tue, Apr 11, 2017 at 1:19 PM, Zheng Lin Edwin Yeo
<edwinye...@gmail.com> wrote:
> I found from StackOverflow that we should declare it this way:
> http://stackoverflow.com/questions/43335419/using-basicauth-with-solrj-code
>
>
>
I found from StackOverflow that we should declare it this way:
http://stackoverflow.com/questions/43335419/using-basicauth-with-solrj-code
SolrRequest req = new QueryRequest(new SolrQuery("*:*"));//create a new
request object
req.setBasicAuthCredentials(userName, password);
solrClie
Hi,
I have just set up the Basic Authentication Plugin in Solr 6.4.2 on
SolrCloud, and I am trying to modify my SolrJ code so that the code can go
through the authentication and do the indexing.
I tried using the following code from the Solr Documentation
10 matches
Mail list logo