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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u171
    • Fix Version/s: None
    • Component/s: xml
    • Labels:
    • Subcomponent:

      Description

      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)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: