Xerces throws SAX Security Manager could not be setup [log suppressed for 5 minutes]: org.xml.sax.SAXNotRecognizedException: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.

Solution Unverified - Updated -

Issue

  • Log shows WARNING

    [org.apache.tika.utils.XMLReaderUtils] (default task-15) SAX Security Manager could not be setup [log suppressed for 5 minutes]: org.xml.sax.SAXNotRecognizedException: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
        at org.apache.xerces.parsers.AbstractSAXParser.getProperty(AbstractSAXParser.java:2048)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.setProperty(SAXParserImpl.java:508)
        at org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:274)
        at org.apache.tika.utils.XMLReaderUtils.buildPoolParser(XMLReaderUtils.java:866)
        at org.apache.tika.utils.XMLReaderUtils.setPoolSize(XMLReaderUtils.java:654)
        at org.apache.tika.utils.XMLReaderUtils.<clinit>(XMLReaderUtils.java:151)
        at org.apache.tika.detect.XmlRootExtractor.extractRootElement(XmlRootExtractor.java:53)
        at org.apache.tika.detect.XmlRootExtractor.extractRootElement(XmlRootExtractor.java:44)
        at org.apache.tika.mime.MimeTypes.getMimeType(MimeTypes.java:212)
        at org.apache.tika.mime.MimeTypes.detect(MimeTypes.java:493)
    

Environment

  • Xerces xml parser
  • Upgrading to a new java version
  • Java 8 version 1.8.0_25 or Java 7 version 1.7.0_25 or later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content