Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6902

Problem with resource that returns Object with CXF version == 3.1.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.1.2
    • None
    • JAXB Databinding
    • None
    • Unknown

    Description

      Hello,

      We have recently migrated from 2.7 to 3.1.2 and we see a behaviour change in CXF which blocked us from making progress.

      The sample code below gives "No message body writer has been found for response class Integer" which used to work perfect in CXF 2.7

      This is just sample code only. We have in our product several rest calls which return integer/long/Object etc based on some calculations.

      @GET
      @Produces(MediaType.APPLICATION_JSON)
      @Path("/getinteger")
      public Response getInteger()

      { return Response.ok(4).build(); }

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            bandi.balaram@gmail.com Balarami Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: