Resource methods consuming the request body by other means will not work as expected

Hi, I am getting this error.

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.

9 answers

I would open a bug with Atlassian - this looks similar to this one for Confluence. I wouldn't worry too much though - this looks like a wrong logging level and not a real problem with the system. If you don't experience any loss of functionality you can just live with it. If it's bothering you too much and Atlassian confirm that it's not really a problem, you can also permanently change the logging level for that particular package to ERROR - see here for instructions.

Give us more details - where do you see this error and under what circumstances.

I am running JIRA (server) and recently setup, But in log file i am getting this error.

WARNING [http-nio-8080-exec-24] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://test.example.com/rest/issueNav/1/issueTable/stable, 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.

Hello, I am on Jira 7.3.3 and I am having the same issue. Are there any suggestions for fix?

Any solution of this issue, I'm on 7.3.3 and facing same issue 

30-May-2018 12:30:10.649 WARNING [http-nio-80-exec-24] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://myweb.com/rest/issueNav/1/issueTable/stable, 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.
30-May-2018 12:30:17.623 WARNING [http-nio-80-exec-16] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://myweb.com/rest/issueNav/1/issueTable/stable, 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.
30-May-2018 12:30:17.657 WARNING [http-nio-80-exec-4] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://myweb.com/rest/issueNav/1/issueTable/stable, 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.

We're on 7.3.7 and we're getting this error right before the system crash. Not sure if it's related to the crash.

Found this page while investigating the cause of frequent JIRA crashes today. I'm testing some REST API calls, but cannot say yet if they are the cause. I do notice that the mentioned error message is the last entry before the JIRA process dies.

Any chance you were also working on REST API calls?

(On v7.5.1)

Like 1 person likes this

We are having the same issue in logs . Any updates from Atlassian to fix the problem? 

Atlassian JIRA Project Management Software (v7.3.8#73019-sha1:94e8771) 

Same problem here

 

23-Jul-2018 15:05:21.870 WARNING [http-nio-8080-exec-25] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://172.16.17.62:8080/rest/project-templates/1.0/templates, 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.

 

Cannot create new project using a template.

@Vivek Singh Rai@All   I also had this  problem, but fixed it,  it is not an error,  this  is problem  with your network connect, i was using  Wifi for the network which my JIRA service desk running on my  local host,   after i start using cable connection  this problem  disappears

So  it means that you have a poor network connection,  you  need to  switch to a right network in which your instance is running.

Best!

Our instance is running on Azure , so I dont think it could be a network issue. We also get these  errors before Jira crashes or perfomance gets terribly slow.

@Noni KhutaneRunning your instance  on Azure cloud  does  not guarantee that you  cannot have network issues. In  my case  after i did run my instance in  a  good network(internet ) this problem  disappeared  completely. in  case  of performance the could  be lots  of reason see trouble shooting  here  https://confluence.atlassian.com/jirakb/troubleshooting-performance-problems-336169888.html

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

448 views 0 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you