Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 61278 invoked from network); 27 Nov 2010 08:11:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Nov 2010 08:11:39 -0000 Received: (qmail 84109 invoked by uid 500); 27 Nov 2010 08:11:37 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 83723 invoked by uid 500); 27 Nov 2010 08:11:37 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 83705 invoked by uid 99); 27 Nov 2010 08:11:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Nov 2010 08:11:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Nov 2010 08:11:35 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAR8BFdw006364 for ; Sat, 27 Nov 2010 08:11:15 GMT Message-ID: <20019214.331661290845475171.JavaMail.jira@thor> Date: Sat, 27 Nov 2010 03:11:15 -0500 (EST) From: "Maxim Valyanskiy (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (SOLR-2230) solrj: submitting more than one stream/file via CommonsHttpSolrServer fails In-Reply-To: <1355310.7421289404695199.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-2230?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12964= 329#action_12964329 ]=20 Maxim Valyanskiy commented on SOLR-2230: ---------------------------------------- I got the simular error message when calling SolrServer.deleteById: org.apache.solr.common.SolrException: missing_content_stream missing_content_stream request: http://127.0.0.1:8983/solr/update/javabin =09at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo= nsHttpSolrServer.java:435) =09at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo= nsHttpSolrServer.java:244) =09at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(Ab= stractUpdateRequest.java:105) =09at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:10= 6) =09at ru.org.linux.spring.SearchQueueListener.reindexMessage(SearchQueueLis= tener.java:89) is it the same problem? I use solrj 1.4.1 > solrj: submitting more than one stream/file via CommonsHttpSolrServer fai= ls > -------------------------------------------------------------------------= -- > > Key: SOLR-2230 > URL: https://issues.apache.org/jira/browse/SOLR-2230 > Project: Solr > Issue Type: Bug > Components: clients - java > Affects Versions: 1.4.1 > Reporter: Stephan G=C3=BCnther > Attachments: 0001-solrj-fix-submitting-more-that-one-stream-via-m= ultip.patch > > > If you are using an HTTP-client (CommonsHttpSolrServer) to connect to Sol= r, you are unable to push more than one File/Stream over the wire.=20 > For example, if you call ContentStreamUpdateRequest.addContentStream()/.a= ddFile() twice to index both files via Tika, you get the following exceptio= n at your Solr server: > 15:48:59 [ERROR] http-8983-1 [org.apache.solr.core.SolrCore] - org.apache= .solr.common.SolrException: missing content stream > =09at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(= ContentStreamHandlerBase.java:49) > =09at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHan= dlerBase.java:131) > =09at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.hand= leRequest(RequestHandlers.java:233) > =09at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) > =09at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilt= er.java:338) > =09at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFil= ter.java:241) > =09at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ap= plicationFilterChain.java:235) > =09at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicatio= nFilterChain.java:206) > =09at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrappe= rValve.java:233) > =09at org.apache.catalina.core.StandardContextValve.invoke(StandardContex= tValve.java:191) > =09at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve= .java:127) > =09at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve= .java:102) > =09at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineV= alve.java:109) > =09at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.j= ava:298) > =09at org.apache.coyote.http11.Http11Processor.process(Http11Processor.ja= va:857) > =09at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pro= cess(Http11Protocol.java:588) > =09at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:= 489) > =09at java.lang.Thread.run(Thread.java:619) > Seems that the POST body send by CommonsHttpSolrServer is not correct. > If you push only one file, everything works as expected. --=20 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org