0

I am using jersey + spring-boot to create my web application. When a http request makes my application throw a runtime exception, the client side always gets a 404(NOT Found) error. I assume that it should return 505(Internal Error) code but why it always return 404 code. In addition, when the exception happens, I will get below log in my server side. Could you let me know what wrong with my application? How should I debug it?

o.glassfish.jersey.servlet.WebComponent  : A servlet request to the URI http://localhost:8080/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.
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
  • would you just add code, to understand ur question more? – Hareesh Mar 21 '16 at 17:55
  • Looks like you're sending url-encoded form params but trying to read the request's body in some other way - also possible it got directed to a wrong resource. Post your code – danf Mar 21 '16 at 18:30

0 Answers0