readthefuckingmanual.net

[SOLVED] The request sent by the client was syntactically incorrect (Could not find message body reader for type: interface javax.servlet.http.HttpServletRequest of content type: */*).

Error added: 2012-09-29T10:08:51Z

0 people waiting for the answer...

2 answers found.

Answer 2269 (100.0% helpful)

To add a little more detail: you can run into this problem if you're using a method parameter (such as HttpServletRequest) without the @Context attribute on the method parameter. To resolve the problem for instance, change this "myMethod(HttpServletRequest request)" to this "myMethod(@Context HttpServletRequest request)"
Permalink

Answer 2042 (50.0% helpful)

Put the @Context on the interface (or possibly the place where you've put the other annotations)
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: