All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
One of the answers ( the right one ) is: "Add a filter and map it to /reports/*. In the filter get all the headers using request.getHeaderNames() and and getHeaders() method. Store the headers into the database.". There is a double "and" between "request.getHeaderNames()" and "getHeaders()".
Also i think you should be consistent and also use "request.getHeaders()" instead of only "getHeaders()".