Re: Using BasicAuth with SolrJ Code

2017-04-17 Thread Zheng Lin Edwin Yeo
rj.impl.HttpSolrClient$ > >> RemoteSolrException: > >> > > Error > >> > > > from server at http://localhost:8983/solr/testing: Expected mime > >> type > >> > > > application/octet-stream but got text/

Re: Using BasicAuth with SolrJ Code

2017-04-17 Thread Noble Paul
gt; > > > >> > > > HTTP ERROR 401 >> > > > Problem accessing /solr/testing/update. Reason: >> > > > require authentication >> > > > >> > > > >> > > > >> > > > at >> > > >

Re: Using BasicAuth with SolrJ Code

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

Re: Using BasicAuth with SolrJ Code

2017-04-14 Thread Noble Paul
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

Re: Using BasicAuth with SolrJ Code

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

Re: Using BasicAuth with SolrJ Code

2017-04-13 Thread Noble Paul
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: >&

Re: Using BasicAuth with SolrJ Code

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

Re: Using BasicAuth with SolrJ Code

2017-04-12 Thread Noble Paul
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 > > >

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