Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

Referring to catalina.out log, the following warning is repeatedly thrown: 

Code Block
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

Code Block
com.sun.jersey.spi.container.servlet.WebComponent.level = SEVERE

Reference