jersey
  1. jersey
  2. JERSEY-1273

Jersey service returns 200-OK when no messagebodywriter was found

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-m05
    • Fix Version/s: 2.0-m06, 2.0
    • Component/s: None
    • Labels:
      None

      Description

      Consider the following resource:

      @Path("/")
      @Produces("application/xml")
      public class MyResource {
          @GET
          public SomeUnknownBean getIt() {
              return new SomeUnknownBean();
          }
      }
      

      If I make a get request to this bean, exception is logged in the server log (saying no message body writer for SomeUnknownBean was found), but the client gets 200 - OK response with no entity.

        Activity

        Show
        Martin Matula added a comment - Fixed. https://github.com/jersey/jersey/commit/ea46b516df2b0e21168b6c51aeba313a32356337

          People

          • Assignee:
            Martin Matula
            Reporter:
            Martin Matula
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: