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

Potential NPE when Soap fault has no role

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.10, 2.4.7, 2.5.3, 2.6
    • 2.3.11, 2.4.8, 2.5.4, 2.6.1
    • JAX-WS Runtime
    • None
    • Unknown

    Description

      If a SoapFault does not have a "role" or "actor" defined, the JAX-WS frontend will NPE when converting that to a SOAPFault.

      Exception in thread "main" java.lang.NullPointerException
              at
      com.sun.xml.messaging.saaj.soap.impl.ElementImpl.addTextNode(ElementImpl.java:454)
              at
      com.sun.xml.messaging.saaj.soap.ver1_2.Fault1_2Impl.setFaultRole(Fault1_2Impl.java:338)
              at
      com.sun.xml.messaging.saaj.soap.ver1_2.Fault1_2Impl.setFaultActor(Fault1_2Impl.java:574)
              at
      org.apache.cxf.jaxws.JaxWsClientProxy.createSoapFault(JaxWsClientProxy.java:219)
      

      Attachments

        Activity

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

          People

            dkulp Daniel Kulp
            dkulp Daniel Kulp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment