lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Moises <>
Subject Problem with additional Servlet Filter (SolrRequestParsers Exception)
Date Wed, 03 Dec 2014 08:47:37 GMT
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 
To make this work, the filter has to be the first one defined in the  

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.

Here is my web.xml:
<!-- My own filter here... -->

   <!-- Any path (name) registered in solrconfig.xml will be sent to 
that filter -->

Any idea how to solve this? Why does Solr have a problem now if there is 
any pre-filter defined?

Thanks a lot,

View raw message