Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8200177

Encountering org.xml.sax.SAXNotRecognizedException after upgrade to 7u171

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 7u171
    • xml

      The following exception can be observed with JDK JAXB unmarshaller usage and old version of Apache Xerces library in classpath that doesn't support the XMLConstants.FEATURE_SECURE_PROCESSING feature.

      Feb 01, 2018 2:15:21 PM com.sun.xml.internal.bind.v2.util.XmlFactory
      createParserFactory
      SEVERE: null
      org.xml.sax.SAXNotRecognizedException:
      http://javax.xml.XMLConstants/feature/secure-processing
             at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown
      Source)
             at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(Unknown Source)
             at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
             at
      org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParserImpl(Unknown Source)
             at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(Unknown
      Source)
             at
      com.sun.xml.internal.bind.v2.util.XmlFactory.createParserFactory(XmlFactory.ja
      va:136)

            aefimov Aleksej Efimov
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: