dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #07763
How to disable "Invalid chunk ignored" from Tomcat ?
Hi devs,
Maybe, you have seen this Warning message from Tomcat app. Searching by
Google. Finally, i found out two ways to disable this issue. If it's
interesting you so now let's refer to and give your comment on this thread.
Thanks !
=======================================================
*The first one: *
This error gave me a problem and I spent some time trying to figure out what
it was before I was successful. So to save people time here it is.
When you call 'XT.doAjaxAction' it looks at the form and passes all of the
elements along with the request. In doing this, if you don't have a name for
all of the fields it will create a query string similar to this:
Code: eName1=&=&eName2=val
The important part to note about this is the '&=&' or '&=someValue&'. This
causes the following error.
Code: 14, 2008 9:45:12 AM org.apache.tomcat.util.http.Parameters
ProcessParameters
WARNING: Parameters: Invalid chunk ignored.
This does not actually stop any processing of the action. It just shows the
warning. If you don't want to see the error message be sure to add a value
for the 'name' parameter for all of your form elements.
=======================================================
*The second one:*
To disable this WARNINGS for org.apache.tomcat.util.http.Parameters by
adding the following line to
*tomcat / conf / logging.properties*
*org.apache.tomcat.util.http.Parameters.level=SEVERE*
One server restart and it is quiet!
=======================================================
I have just try in both of these ways.
The first one is too complicated. Result: Not working properly
The second one is easier then. Result: It's fine.
Notes: *DO NOT RECOMMENDED !*
--
God Helse !