Details
-
Suggestion
-
Resolution: Fixed
-
396
-
118
-
Description
NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.
Problem Definition
After installing JIRA 7 and add the TimeSince gadget to a dashboard, we get the following warnings on the log each time the TimeSince gadget is refreshed. In case we have multiple TimeSince gadgets on the dashboard these warnings generates a lot of noise on the log.
2016-02-19 15:12:07,840 http-nio-8032-exec-2 WARN admin 912x1017x1 g2ksfs 192.168.10.122 /rest/gadget/1.0/timeSince/generate [c.s.j.s.container.servlet.WebComponent] A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901927829, 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. 19-Feb-2016 15:12:12.286 WARNING [http-nio-8032-exec-14] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901932275, 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. 2016-02-19 15:12:12,286 http-nio-8032-exec-14 WARN admin 912x1142x1 g2ksfs 192.168.10.122 /rest/gadget/1.0/timeSince/generate [c.s.j.s.container.servlet.WebComponent] A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901932275, 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. 19-Feb-2016 15:12:17.076 WARNING [http-nio-8032-exec-1] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901937065, 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. 2016-02-19 15:12:17,076 http-nio-8032-exec-1 WARN admin 912x1270x1 g2ksfs 192.168.10.122 /rest/gadget/1.0/timeSince/generate [c.s.j.s.container.servlet.WebComponent] A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901937065, 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. 19-Feb-2016 15:12:24.574 WARNING [http-nio-8032-exec-24] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901944561, 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. 2016-02-19 15:12:24,574 http-nio-8032-exec-24 WARN admin 912x1402x1 g2ksfs 192.168.10.122 /rest/gadget/1.0/timeSince/generate [c.s.j.s.container.servlet.WebComponent] A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901944561, 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.
Suggested Solution
It would be great to be able to disable these WARNINGS on the log. Unfortunately it doesn't work by changing the logging level on the Logging & Profilling page for the classes: com.sun.jersey.spi.container.servlet.WebComponent & com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters
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.
Notes
Error is not triggered specifically for TimeSince gadget only
Attachments
Issue Links
- relates to
-
JRASERVER-30406 Jira logs excessive warnings regarding form parameters and servlets
-
- Closed
-
-
JRACLOUD-59898 Remove excessive log noise when loading dashboards with TimeSince gadget
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...