com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters filling my log file

Schups February 26, 2019

26-Feb-2019 16:00:18.053 WARNING [http-nio-127.0.0.1-8080-exec-7] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://jira-tds.ourdomain.ch/rest/gadget/1.0/project/filters?projectId=10301&_=1551192997312, 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.
26-Feb-2019 16:00:20.478 WARNING [http-nio-127.0.0.1-8080-exec-14] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://jira-tds.ourdomain.ch/rest/gadget/1.0/project/reports?projectId=10301&_=1551192997313, 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.
26-Feb-2019 16:00:21.770 WARNING [http-nio-127.0.0.1-8080-exec-19] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://jira-tds.ourdomain.ch/rest/gadget/1.0/project/reports?projectId=10100&_=1551192997314, 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.

 

I keep seeing these warnings in the catalina.out log, and they are filling it in big numbers.

Strangely I can't find much about it online about it - so I am worried to have dome something wrong. Does anybody know why they appear and/or how to solve the issue?

For your information, I use the "Projects" gadget in the System Dashboard.

 

Thank you

 

 

1 answer

1 accepted

4 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 28, 2019

You haven't done anything wrong.  It is a very common warning message to see in regards to many Jira versions.  There is a suggestion ticket about this issue over in JRASERVER-59898.  

There is a workaround on that ticket that explains how you can adjust the logging level in order to avoid seeing these:

Workaround

Change the logging level for the com.sun.jersey.spi.container.servlet.WebComponent class in the conf/logging.properties file by adding this line:

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

This will prevent the Warnings from being logged.

I would expect that you would then need to save that logging.properties file AND restart Jira for these settings to take effect.

I hope this helps.

Andy

vrejbusiness September 23, 2019

nice info thx.

Suggest an answer

Log in or Sign up to answer