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

Nullpointer on ClientProxyImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-milestone2
    • 2.6.15, 2.7.12, 3.0.1
    • JAX-RS
    • None
    • Unknown

    Description

      @POST
      @Path("/method/

      {param1}

      /param2}")
      @Consumes(MediaType.APPLICATION_JSON)
      public void method(@PathParam("param1") String param1, @PathParam("param2") String param2, MyPojo myPojo)

      if myPojo is null, i got a NullPointerException :
      java.lang.NullPointerException
      at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:207)

      because : params[bodyIndex] is null and the method ask : params[bodyIndex].getClass()

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            cghanassia cédric ghanassia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: