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

ReaderInterceptorMBR throws NullPointerException for a fault message

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.2.7
    • None
    • JAX-RS
    • None
    • Unknown

    Description

      On the client side, if 1 or more ReaderInterceptors are registered, the ReaderInterceptorMBR will be appended to the ReaderInterceptor list onĀ org.apache.cxf.jaxrs.provider.ProviderFactory line 373, when it does so, it passes m.getExchange().getInMessage() in the constructor. If the response was an error, then getInMessage() is null, as the inMessage is set to null, and the inFaultMessage is set to the message instead. Consiquently, when the ReaderInterceptorMBR gets called, it will throw a NullPointerException on line 64, because m will be null.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mcassidygamma Martin Cassidy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment