Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 486BC10E18 for ; Wed, 3 Dec 2014 10:43:55 +0000 (UTC) Received: (qmail 2798 invoked by uid 500); 3 Dec 2014 10:22:41 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 85858 invoked by uid 500); 3 Dec 2014 10:22:26 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 67453 invoked by uid 99); 3 Dec 2014 08:48:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2014 08:48:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of moises@shoptimax.de designates 157.56.112.132 as permitted sender) Received: from [157.56.112.132] (HELO emea01-am1-obe.outbound.protection.outlook.com) (157.56.112.132) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2014 08:48:26 +0000 Received: from DB3PR05MB185.eurprd05.prod.outlook.com (10.242.132.15) by DB3PR05MB427.eurprd05.prod.outlook.com (10.141.7.17) with Microsoft SMTP Server (TLS) id 15.1.26.15; Wed, 3 Dec 2014 08:47:42 +0000 Received: from [172.20.107.211] (83.236.210.186) by DB3PR05MB185.eurprd05.prod.outlook.com (10.242.132.15) with Microsoft SMTP Server (TLS) id 15.1.26.15; Wed, 3 Dec 2014 08:47:41 +0000 Message-ID: <547ECE29.7060500@shoptimax.de> Date: Wed, 3 Dec 2014 09:47:37 +0100 From: Stefan Moises Organization: shoptimax GmbH User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: solr-user Subject: Problem with additional Servlet Filter (SolrRequestParsers Exception) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [83.236.210.186] X-ClientProxiedBy: AM3PR05CA016.eurprd05.prod.outlook.com (10.141.192.26) To DB3PR05MB185.eurprd05.prod.outlook.com (10.242.132.15) X-Microsoft-Antispam: UriScan:;UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB185; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB185; X-Forefront-PRVS: 0414DF926F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(6009001)(189002)(199003)(99396003)(23676002)(68736005)(95666004)(107046002)(105586002)(106356001)(42186005)(40100003)(102836001)(122386002)(77096005)(15202345003)(107886001)(229853001)(110136001)(77156002)(62966003)(450100001)(15975445006)(33656002)(64126003)(83506001)(21056001)(36756003)(50466002)(74482002)(46102003)(19580395003)(87976001)(80316001)(20776003)(101416001)(4396001)(47776003)(65956001)(87266999)(65806001)(64706001)(50986999)(97736003)(54356999)(66066001)(86362001)(92726001)(92566001)(65816999)(75402003)(120916001)(31966008);DIR:OUT;SFP:1102;SCL:1;SRVR:DB3PR05MB185;H:[172.20.107.211];FPR:;SPF:None;MLV:sfv;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB185; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB427; X-OriginatorOrg: shoptimax.de X-Virus-Checked: Checked by ClamAV on apache.org Hi Folks, I have a problem with an additional servlet filter defined in my web.xml (Tomcat 7.x). In Solr 4.2.1. we've successfully used a filter for processing POST request data (basically, the filter reads the POST data, collects some parameters from it and writes it back to the request, based on this example: http://www.coderanch.com/t/484631/Tomcat/configure-Tomcat-log-POST-data) To make this work, the filter has to be the first one defined in the web.xml. But now in Solr 4.8.0, if we define that filter, Solr complains that there is a filter before it and claims that we have to remove it: null:org.apache.solr.common.SolrException: Solr requires that request parameters sent using application/x-www-form-urlencoded content-type can be read through the request input stream. Unfortunately, the stream was empty / not available. This may be caused by another servlet filter calling ServletRequest.getParameter*() before SolrDispatchFilter, please remove it. at org.apache.solr.servlet.SolrRequestParsers$FormDataRequestParser.getParameterIncompatibilityException(SolrRequestParsers.java:622) Here is my web.xml: post-data-dumper-filter filters.PostDataDumperFilter post-data-dumper-filter /* SolrRequestFilter org.apache.solr.servlet.SolrDispatchFilter SolrRequestFilter /* Any idea how to solve this? Why does Solr have a problem now if there is any pre-filter defined? Thanks a lot, Stefan