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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.0.10, 3.1.7, 3.2.0
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: