lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan GÜnther (JIRA) <>
Subject [jira] Created: (SOLR-2230) solrj: submitting more that one stream/file via CommonsHttpSolrServer fails
Date Wed, 10 Nov 2010 15:58:15 GMT
solrj: submitting more that one stream/file via CommonsHttpSolrServer fails

                 Key: SOLR-2230
             Project: Solr
          Issue Type: Bug
          Components: clients - java
    Affects Versions: 1.4.1
            Reporter: Stephan GÜnther

If you are using an HTTP-client (CommonsHttpSolrServer) to connect to Solr, you are unable
to push more than one File/Stream over the wire. 
For example, if you call ContentStreamUpdateRequest.addContentStream()/.addFile() twice to
index both files via Tika, you get the following exception at your Solr server:

15:48:59 [ERROR] http-8983-1 [org.apache.solr.core.SolrCore] - org.apache.solr.common.SolrException:
missing content stream
	at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(
	at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(
	at org.apache.solr.core.SolrCore.execute(
	at org.apache.solr.servlet.SolrDispatchFilter.execute(
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

Seems that the POST body send by CommonsHttpSolrServer is not correct.
If you push only one file, everything works as expected.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message