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

JSON Jackson does not handle resource returning CompletionStage<X>

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.11, 3.3.4
    • Fix Version/s: 3.3.5, 3.2.12, 3.4.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Hello,

       

      While testing to integrate the CXF Microprofile implementation in order to perform asynchronous client calls using client proxies, I encounter the Exception raised by the json provider due to the returned generic type being CompletionStage.

       

      It is clear that MicroProfileClientProxyImpl#getReturnType(Method, Message) is behaving correctly regarding the returnType, however inside the ClientProxyImpl#handleResponse(Message, Class<?>) we also compute the genericType based on the method.getGenericReturnType() which is of type CompletionStage, therefore the provider is not able to deserialize the String correctly as internally it uses the genericType.

      Do you think it could be possible to update the InjectionUtils.processGenericTypeIfNeeded  to add cases for CompletionStage in order to change the genericType returned in this case ?

       

       

        Attachments

          Activity

            People

            • Assignee:
              reta Andriy Redko
              Reporter:
              baiglin Baptiste AIGLIN

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment