Versions Compared

Key

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

Problem

Referring to The following warning is repeatedly logged in the catalina.out log , the following warning is repeatedly thrown: file whenever any of the gauge gadgets are rendered 

Code Block
com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://jirazh.akeles.com.sg<jira-base-url>/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

...

causes the logs to be bloated and difficult for diagnosis of real issues

Solution

This is due to a Jira issue JRASERVER-59898.

The workaround is to 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/ class 

  1. Add the following line to the <Jira installation directory>/conf/logging.

...

  1. properties 

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

Reference

...



  1. Restart Jira to reload with the new setting