lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Felix <>
Subject solrj digest authentication
Date Mon, 08 Nov 2010 19:13:17 GMT


I'm trying to use solrj to add documents in solr with use digest authentication but it displays
the following error:

org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.
ProtocolException: Unbuffered entity enclosing request can not be repeated.
        at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo
        at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo
        at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(Ab
        at org.apache.solr.client.solrj.SolrServer.add(
        at org.apache.nutch.indexer.solr.TestSolr.main(
Caused by: org.apache.commons.httpclient.ProtocolException: Unbuffered entity en
closing request can not be repeated.
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequ
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodB
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
        at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo
        ... 4 more

I already try the following but it didn't work: "httpclient.getParams().setAuthenticationPreemptive(true);"

If some body has a solution to this please let me know. Because if not I will need to use
PostMethod instead of that and I will need to translate the SolrInputDocuments to xml also.
This will be very intrusive for nutch.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message