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

Print the XMLInputFactory implementation class when throwing "Cannot create a secure XMLInputFactory"

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.0.10, 3.1.7, 3.2.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      CXF tries to set some Woodstox specific properties and if it fails throws a runtime exception with message "Cannot create a secure XMLInputFactory". It would be very helpful to know the XMLInputFactory implementation class. This can be achieved in two ways:

      • add the class name to the exception message
      • log the class name before throwing the exception

      https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/staxutils/StaxUtils.java#L323

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sergey_beryozkin Sergey Beryozkin
                Reporter:
                SvetlinZarev Svetlin Zarev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: