Problem
Referring to catalina.out log, the following warning is repeatedly thrown:
com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://jirazh.akeles.com.sg/rest/gauge-admin/1.0/checkvalid?_=1560749479186, 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.
This excessive logging makes it difficult for debugging.
Solution
Change the logging level for the com.sun.jersey.spi.container.servlet.WebComponent class in the conf/logging.properties file by adding this line at the end of /opt/jira/conf/logging.properties
com.sun.jersey.spi.container.servlet.WebComponent.level = SEVERE
Reference
- https://community.atlassian.com/t5/Jira-questions/com-sun-jersey-spi-container-servlet-WebComponent/qaq-p/1018897
- https://community.atlassian.com/t5/Jira-questions/Resource-methods-consuming-the-request-body-by-other-means-will/qaq-p/452148
- https://community.atlassian.com/t5/Jira-questions/Contain-form-parameters-in-the-request-body-but-the-request-body/qaq-p/776435