How to fix Jersey POST request parameters warning?
Posted
by Brabster
on Stack Overflow
See other posts from Stack Overflow
or by Brabster
Published on 2010-01-06T09:14:04Z
Indexed on
2010/05/21
18:30 UTC
Read the original article
Hit count: 578
I'm building a very simple REST API using Jersey, and I've got a warning in my log files that I'm not sure about.
WARNING: A servlet POST request, to the URI http://myserver/mycontext/myapi/users/12345?action=delete, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
My webapp only has the Jersey servlet defined, mapped to /myapi/*
How can I stop these warnings?
© Stack Overflow or respective owner