You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adrian Woodhead <ad...@last.fm> on 2008/04/04 17:24:58 UTC
how to NOT log "WARNING: Parameters: Invalid chunk ignored." messages
Hey there,
We have a web-app which receives hundreds of requests per second, many
of the requests coming from 3rd party apps which we have no control
over. Now, it seems like some of these apps are sending us request
strings ending in && which results in a message like this in catalina.out:
WARNING: Parameters: Invalid chunk ignored.
We cannot contact the developers and have them remove the &&'s and our
log is filling up with thousands of these messages every minute. I am
aware that we can safely ignore this but it's a waste of time and space
in our log files and I would like to disable logging this. I tracked
down the class which does it and read up on tomcat logging conf and
tried adding the following line to TOMCAT_HOME/conf/logging.properties:
org.apache.tomcat.util.http.Parameters = ERROR
With no luck. I even tried modifying the JDK's logging properties in
JAVA_HOME/jre/lib/logging.properties to also contain that line. Again,
no luck. We are running tomcat 6.0.16.
How do I do this?
Regards,
Adrian
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: how to NOT log "WARNING: Parameters: Invalid chunk ignored."
messages
Posted by Adrian Woodhead <ad...@last.fm>.
OK, so I got this to work by modifying my JRE's logging.properties file
and adding this line:
org.apache.tomcat.util.http.Parameters.level = SEVERE
(ERROR is a log4j concept, SEVERE is for java logging). When I put this
exact same line just in tomcat's conf/logging.properties file it had no
effect whatsoever. So my question now is, why are the values in tomcat's
logging.properties ignored? It's much more convenient and intuitive to
configure it here rather than modifying it at the JRE level. Is this a bug?
Adrian Woodhead wrote:
> Good point, I overlooked the .level at the end (I'm so used to log4j).
> So I tried what you suggested at the end of my logging.properties in
> tomcat/conf like so:
>
> org.apache.tomcat.util.http.Parameters.level = ERROR
>
> I then restarted tomcat and I still get this in the logs:
>
> 04-Apr-2008 18:42:12 org.apache.tomcat.util.http.Parameters
> processParameters
> WARNING: Parameters: Invalid chunk ignored
>
> So that didn't seem to work I'm afraid. Anyone got any other ideas?
>
> Mark Thomas wrote:
>> Adrian Woodhead wrote:
>>> org.apache.tomcat.util.http.Parameters = ERROR
>>>
>>> With no luck. I even tried modifying the JDK's logging properties in
>>> JAVA_HOME/jre/lib/logging.properties to also contain that line.
>>> Again, no luck. We are running tomcat 6.0.16.
>>>
>>> How do I do this?
>>
>> I am only going from the docs as I don't have a Tomcat instance to
>> hand to test this with but shouldn't that be:
>>
>> org.apache.tomcat.util.http.Parameters.level = ERROR
>>
>> assuming you have a clean 6.0.16 install and are using the JULI
>> logging rather than log4j.
>>
>> Mark
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: how to NOT log "WARNING: Parameters: Invalid chunk ignored."
messages
Posted by Adrian Woodhead <ad...@last.fm>.
Good point, I overlooked the .level at the end (I'm so used to log4j).
So I tried what you suggested at the end of my logging.properties in
tomcat/conf like so:
org.apache.tomcat.util.http.Parameters.level = ERROR
I then restarted tomcat and I still get this in the logs:
04-Apr-2008 18:42:12 org.apache.tomcat.util.http.Parameters
processParameters
WARNING: Parameters: Invalid chunk ignored
So that didn't seem to work I'm afraid. Anyone got any other ideas?
Mark Thomas wrote:
> Adrian Woodhead wrote:
>> org.apache.tomcat.util.http.Parameters = ERROR
>>
>> With no luck. I even tried modifying the JDK's logging properties in
>> JAVA_HOME/jre/lib/logging.properties to also contain that line.
>> Again, no luck. We are running tomcat 6.0.16.
>>
>> How do I do this?
>
> I am only going from the docs as I don't have a Tomcat instance to
> hand to test this with but shouldn't that be:
>
> org.apache.tomcat.util.http.Parameters.level = ERROR
>
> assuming you have a clean 6.0.16 install and are using the JULI
> logging rather than log4j.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: how to NOT log "WARNING: Parameters: Invalid chunk ignored."
messages
Posted by Mark Thomas <ma...@apache.org>.
Adrian Woodhead wrote:
> org.apache.tomcat.util.http.Parameters = ERROR
>
> With no luck. I even tried modifying the JDK's logging properties in
> JAVA_HOME/jre/lib/logging.properties to also contain that line. Again,
> no luck. We are running tomcat 6.0.16.
>
> How do I do this?
I am only going from the docs as I don't have a Tomcat instance to hand to
test this with but shouldn't that be:
org.apache.tomcat.util.http.Parameters.level = ERROR
assuming you have a clean 6.0.16 install and are using the JULI logging
rather than log4j.
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org