Re: Using BasicAuth with SolrJ Code

2017-04-17 Thread Zheng Lin Edwin Yeo
http://localhost:8983/solr/testing: Expected mime > >> type > >> > > > application/octet-stream but got text/html. > >> > > > > >> > > > > >> > > > Error 401 require authentication > >> > > > > >

Re: Using BasicAuth with SolrJ Code

2017-04-17 Thread Noble Paul
e >> > > > application/octet-stream but got text/html. >> > > > >> > > > >> > > > Error 401 require authentication >> > > > >> > > > HTTP ERROR 401 >> > > > Problem accessing /solr/testing/update. Reason:

Re: Using BasicAuth with SolrJ Code

2017-04-15 Thread Zheng Lin Edwin Yeo
; > Problem accessing /solr/testing/update. Reason: > > > > require authentication > > > > > > > > > > > > > > > > at > > > > org.apache.solr.client.solrj.impl.HttpSolrClient. > > > exec

Re: Using BasicAuth with SolrJ Code

2017-04-14 Thread Noble Paul
ache.solr.client.solrj.impl.HttpSolrClient. > > executeMethod(HttpSolrClient.java:578) > > > at > > > org.apache.solr.client.solrj.impl.HttpSolrClient.request( > > HttpSolrClient.java:279) > > > at > > > org.apache.solr.client.solrj.impl.HttpSolrClient.re

Re: Using BasicAuth with SolrJ Code

2017-04-13 Thread Zheng Lin Edwin Yeo
79) > > 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.java:484) > > at or

Re: Using BasicAuth with SolrJ Code

2017-04-13 Thread Noble Paul
te: > >> can u paste the stacktrace here >> >> On Tue, Apr 11, 2017 at 1:19 PM, Zheng Lin Edwin Yeo >> wrote: >> > I found from StackOverflow that we should declare it this way: >> > http://stackoverflow.com/questions/43335419/using- >> basicauth-with-so

Re: Using BasicAuth with SolrJ Code

2017-04-12 Thread Zheng Lin Edwin Yeo
at 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.setBasicAuthCredenti

Re: Using BasicAuth with SolrJ Code

2017-04-11 Thread Noble Paul
can u paste the stacktrace here On Tue, Apr 11, 2017 at 1:19 PM, Zheng Lin Edwin Yeo 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 QueryReques

Re: Using BasicAuth with SolrJ Code

2017-04-10 Thread Zheng Lin Edwin Yeo
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

Using BasicAuth with SolrJ Code

2017-04-10 Thread Zheng Lin Edwin Yeo
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 https://cwiki.apache.org/confluence/displ