jersey
  1. jersey
  2. JERSEY-1274

Jersey says no messagebodywriter was found for media type null if application/* is used

    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 a resource like this:

      @Path("/")
      public class MyResource {
          @GET
          public String getIt() {
              return "got it";
          }
      }
      

      And the following client request:

      Response r = target.request("application/*").get();
      

      Exception is logged in the server log saying no message body writer was found for media type null, and I get no entity (due to JERSEY-1273).
      According to the spec, Jersey should set the content type of the response to application/octet-stream.

        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: