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

Incorrect log message "Could not create a NamespaceMapper compatible with Marshaller class com.sun.xml.bind.v2.runtime.MarshallerImpl"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.3, 3.3.10
    • Fix Version/s: 3.4.4, 3.3.11, 3.5.0
    • Component/s: Core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      On every outgoing SOAP message, the following message is logged:

      Could not create a NamespaceMapper compatible with Marshaller class com.sun.xml.bind.v2.runtime.MarshallerImpl
      

      This is produced by https://github.com/apache/cxf/blob/25a6feb377e7b969091e64de8ae5817224d846b4/core/src/main/java/org/apache/cxf/common/spi/NamespaceClassGenerator.java#L78

      The code is missing an

      if (class == null) {
      

      around it, because the log message should not be logged if a class was found.

       

      See PR https://github.com/apache/cxf/pull/791 for a fix.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bergers Stefan Berger
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: